Also, there is no need to go through lofi. You can directly add files
to a zpool:
# mkfile -v 100m /var/tmp/disk1
# mkfile -v 100m /var/tmp/disk2
# zpool create pool_1and2 /var/tmp/disk1 /var/tmp/disk2
I do this in demos all the time, and it's quite handy. And as George
pointed out,
By default, 'zpool import' looks only in /dev/dsk. Since you are using
/dev/lofi you will need to use 'zpool import -d /dev/lofi' to import
your pool.
Thanks,
George
sunnie wrote:
> Hey, guys
> I just do the test for use loop device as vdev for zpool
> Procedures as followings:
> 1) mkfi
Hey, guys
I just do the test for use loop device as vdev for zpool
Procedures as followings:
1) mkfile -v 100m disk1
mkfile -v 100m disk2
2) lofiadm -a disk1 /dev/lofi
lofiadm -a disk2 /dev/lofi
3) zpool create pool_1and2 /dev/lofi/1 and /dev/lofi/2
4) zpool export pool_1and