My server's root partition was encapsulated with VxVM, I try to convert it to ZFS. I successfully de-encapsulated root. Now I try to mirror 2 root disks using ZFS. But I receive following error:
# zpool create rpool mirror c0t0d0s0 c0t1d0s0
invalid vdev specification
use '-f' to override the following errors:
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
#
#
# zpool create -f rpool mirror c0t0d0s0 c0t1d0s0
invalid vdev specification
the following errors must be manually repaired:
/dev/dsk/c0t0d0s0 is currently mounted on /. Please see umount(1M).
#
#
# zpool status rpool
cannot open 'rpool': no such pool
How I can mirror my root disk using ZFS under these circumstances?
It is unclear what you are exactly trying to achieve but it seems your root file system is currently UFS on c0t0d0s0. If that is the case, creating a ZFS pool using this very slice would quickly corrupt your file system and crash your OS.
Maybe lucreate. Use it to create a new ZFS boot environment.
I think you can use the disk you wanted to use as a mirror to your current root drive, switch to the new root disk, then use the current root disk as a mirror for the new boot environment's root disk.