- Create a zpool named zonepool :
zpool create -f oraclePool c0t5000C50007F554E3d0
- Create a FS namely zones in that pool
- Set a quota on files system
zfs set quota=10G zonepool/zones
- Create a ZFS volume
zfs create -V 20gb zonepool/zones
root@T5-2-SDB-1:/# zfs list -r odsRoot
NAME USED AVAIL REFER MOUNTPOINT
odsRoot 103G 30.7G 31K /odsRoot
odsRoot/zone1Root 51.6G 82.3G 16K -
odsRoot/zone2Root 51.6G 82.3G 16K -
zpool destroy zonespool
root@T5-2-SDB-1:/# zpool destroy zoneRoot
root@T5-2-SDB-1:/# zpool create -f odsRoot c0t5000CCA00089FA88d0
root@T5-2-SDB-1:/# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
odsRoot 136G 126K 136G 0% 1.00x ONLINE -
oraclePool 136G 85K 136G 0% 1.00x ONLINE -
rpool 556G 340G 216G 61% 1.00x ONLINE -
root@T5-2-SDB-1:/# zfs create -v 50G oraclePool/zone1
invalid option 'v'
For more info, run: zfs help create
root@T5-2-SDB-1:/# zfs create -V 50G oraclePool/zone1
root@T5-2-SDB-1:/# zfs create -V 50G oraclePool/zone2
root@T5-2-SDB-1:/# zfs create -V 50G odsRoot/zone1Root
root@T5-2-SDB-1:/# zfs create -V 50G odsRoot/zone2Root
root@T5-2-SDB-1:/# ^C
root@T5-2-SDB-1:/# zfs list odsRoot
NAME USED AVAIL REFER MOUNTPOINT
odsRoot 103G 30.7G 31K /odsRoot
root@T5-2-SDB-1:/# zfs list oraclePool
NAME USED AVAIL REFER MOUNTPOINT
oraclePool 103G 30.7G 31K /oraclePool
- Destroy zfs fs:
zfs destroy zonepool/zones
- List the disks of all the zpools
- List the file hierarchy
root@T5-2-SDB-1:/# zfs list -r odsRoot
NAME USED AVAIL REFER MOUNTPOINT
odsRoot 103G 30.7G 31K /odsRoot
odsRoot/zone1Root 51.6G 82.3G 16K -
odsRoot/zone2Root 51.6G 82.3G 16K -
- Destroy the zpool
zpool destroy zonespool
- Create Zvol from zpool :
ZFS volume is a dataset that represents a block device. ZFS volumes are identified as devices in the /dev/zvol/{dsk,rdsk}/pool directory.
root@T5-2-SDB-1:/# zpool destroy zoneRoot
root@T5-2-SDB-1:/# zpool create -f odsRoot c0t5000CCA00089FA88d0
root@T5-2-SDB-1:/# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
odsRoot 136G 126K 136G 0% 1.00x ONLINE -
oraclePool 136G 85K 136G 0% 1.00x ONLINE -
rpool 556G 340G 216G 61% 1.00x ONLINE -
root@T5-2-SDB-1:/# zfs create -v 50G oraclePool/zone1
invalid option 'v'
For more info, run: zfs help create
root@T5-2-SDB-1:/# zfs create -V 50G oraclePool/zone1
root@T5-2-SDB-1:/# zfs create -V 50G oraclePool/zone2
root@T5-2-SDB-1:/# zfs create -V 50G odsRoot/zone1Root
root@T5-2-SDB-1:/# zfs create -V 50G odsRoot/zone2Root
root@T5-2-SDB-1:/# ^C
root@T5-2-SDB-1:/# zfs list odsRoot
NAME USED AVAIL REFER MOUNTPOINT
odsRoot 103G 30.7G 31K /odsRoot
root@T5-2-SDB-1:/# zfs list oraclePool
NAME USED AVAIL REFER MOUNTPOINT
oraclePool 103G 30.7G 31K /oraclePool
No comments:
Post a Comment