Adding virtual disks by using zfs(VOLUME/FILE):
CREATING VOLUME & FILE
# zpool create ldmpool clt50d0
# zfs create ldmpool/ldg1
# zfs create -V 10gb ldmpool/ldg1/disk0
# zfs create ldmpool/ldg1/disk1
# mkfile 10g /ldmpool/ldg1/disk1/file
CREATING VIRTUAL DISK SERVICE
# ldm add-vdsdev /dev/zvol/dsk/ldmpool/ldg1/disk0 ldg1_disk0@primary-vds0
# ldm add-vdsdev /ldmpool/ldg1/disk1/file ldg2_disk0@primary-vds0
ADDING VIRTUAL DISK TO GUEST DOMAIN
# ldm add-vdisk disk0 ldg1_disk0@primary-vds0 ldg1
# ldm add-vdisk disk1 ldg2_disk0@primary-vds0 ldg1
CREATING VOLUME & FILE
# zpool create ldmpool clt50d0
# zfs create ldmpool/ldg1
# zfs create -V 10gb ldmpool/ldg1/disk0
# zfs create ldmpool/ldg1/disk1
# mkfile 10g /ldmpool/ldg1/disk1/file
CREATING VIRTUAL DISK SERVICE
# ldm add-vdsdev /dev/zvol/dsk/ldmpool/ldg1/disk0 ldg1_disk0@primary-vds0
# ldm add-vdsdev /ldmpool/ldg1/disk1/file ldg2_disk0@primary-vds0
ADDING VIRTUAL DISK TO GUEST DOMAIN
# ldm add-vdisk disk0 ldg1_disk0@primary-vds0 ldg1
# ldm add-vdisk disk1 ldg2_disk0@primary-vds0 ldg1
No comments:
Post a Comment