zpool root disk mirroring - attach a disk zpool named rpool
zpool attache <pool-name> <current-device> <new-device>
zpool attach rpool c2t5000CCA07047CEB9d0 c6t5000CCA07047E089d0
2. Check the status for resilvering
zpool status rpool
3. Apply boot blocks to the second disk after resilvering is complete
installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/<new-device>
installboot -F zfs /usr/platform/`uname -i`/lib/fs/zfs/bootblk /dev/rdsk/c6t5000CCA07047E089d0
Create new zpool and zfs filesystem
1. Create a new pool name ldom1 that consists of disk c1t0d0
zpool create ldom1 c1t0d0
zpool create ldom1 c1t0d0
2. Create a new pool / zfs in same name and mount it - single command
zpool create -f -m /opt/oracle opt_oracle c1d1
3. Create new zfs in a existing pool
zfs create -o mountpoint=/opt/oracle/ora opt_oracle/ora
4. Destroy a zpool
zpool destroy opt_oracle
5. To View / List the zfs snapshots zfs list -t snap 6. Delete a a zfs snapshot ; user -R for cloned snapshot zfs destroy -R rpool/ROOT/solaris
set / unset quota in zfs filesystem
1. set zfs quota in a file system zfs set quota=50M oracle/data0011. unset zfs quota in a file system
zfs set quota=none oracle/data001
No comments:
Post a Comment