Create rpool manually

Hi All;

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?

Thanks a lot.

What's the output from "zpool list" and "zfs list -t all"?

# zpool list
no pools available
# zfs list -t all
no datasets available
#

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.

Correct. My root file system is ufs now and I want to convert it to ZFS w/o loosing data. I just asked if there is a way to do that.

I don't think you can reformat your root filesystem while still using your root filesystem.

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.