How to add New ZFS file systems into zones.
nlxusd01:a537069> zpool create BMCpool c5t60000970000292603635533031393245d0
nlxusd01:a537069> zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
BMCpool 39.8G 98.5K 39.7G 0% ONLINE -
PRPpool 159G 1.42G 158G 0% ONLINE -
SDMpool 429G 133G 296G 30% ONLINE -
USDpool 1.17T 695G 502G 58% ONLINE -
rpool 136G 111G 25.3G 81% ONLINE -
nlxusd01:a537069> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 PRP-zone running /export/home/zones/PRP-zone native excl
3 USD-zone running /export/home/zones/USD-zone native shared
4 SDM-zone running /export/home/zones/SDM-zone native shared
- DEV-zone installed /export/home/zones/DEV-zone native shared
nlxusd01:a537069> zfs create BMCpool/SDM
nlxusd01:a537069> zfs set quota=4gb BMCpool/SDM
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/SDM
nlxusd01:a537069> zfs create BMCpool/USD
nlxusd01:a537069> zfs set quota=4gb BMCpool/USD
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/USD
nlxusd01:a537069> zfs create BMCpool/PRP
nlxusd01:a537069> zfs set quota=4gb BMCpool/PRP
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/PRP
nlxusd01:a537069> zfs list |grep -i BMCpool
BMCpool 228K 39.1G 32K /BMCpool
BMCpool/PRP 31K 4.00G 31K legacy
BMCpool/SDM 31K 4.00G 31K legacy
BMCpool/USD 31K 4.00G 31K legacy
nlxusd01:a537069> mkdir /export/home/zones/SDM-zone/root/opt/bmc
nlxusd01:a537069> mkdir /export/home/zones/USD-zone/root/opt/bmc
nlxusd01:a537069> mkdir /export/home/zones/PRP-zone/root/opt/bmc
nlxusd01:a537069> zonecfg -z SDM-zone
zonecfg:SDM-zone> add fs
zonecfg:SDM-zone:fs> set type=zfs
zonecfg:SDM-zone:fs> set special=BMCpool/SDM
zonecfg:SDM-zone:fs> set dir=/opt/bmc
zonecfg:SDM-zone:fs> end
zonecfg:SDM-zone> commit
zonecfg:SDM-zone> exit
nlxusd01:a537069> zonecfg -z USD-zone
zonecfg:USD-zone> add fs
zonecfg:USD-zone:fs> set type=zfs
zonecfg:USD-zone:fs> set special=BMCpool/USD
zonecfg:USD-zone:fs> set dir=/opt/bmc
zonecfg:USD-zone:fs> end
zonecfg:USD-zone> commit
zonecfg:USD-zone> exit
nlxusd01:a537069> zonecfg -z PRP-zone
zonecfg:PRP-zone> add fs
zonecfg:PRP-zone:fs> set type=zfs
zonecfg:PRP-zone:fs> set special=BMCpool/PRP
zonecfg:PRP-zone:fs> set dir=/opt/bmc
zonecfg:PRP-zone:fs> end
zonecfg:PRP-zone> commit
zonecfg:PRP-zone> exit
nlxusd01:a537069> mount -F zfs BMCpool/SDM /export/home/zones/SDM-zone/root/opt/bmc
nlxusd01:a537069> mount -F zfs BMCpool/USD /export/home/zones/USD-zone/root/opt/bmc
nlxusd01:a537069> mount -F zfs BMCpool/PRP /export/home/zones/PRP-zone/root/opt/bmc
nlxusd01:a537069> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 PRP-zone running /export/home/zones/PRP-zone native excl
3 USD-zone running /export/home/zones/USD-zone native shared
4 SDM-zone running /export/home/zones/SDM-zone native shared
- DEV-zone installed /export/home/zones/DEV-zone native shared
nlxusd01:a537069> zlogin PRP-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/PRP 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069> zlogin USD-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/USD 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069> zlogin SDM-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/SDM 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069>
nlxusd01:a537069> zpool create BMCpool c5t60000970000292603635533031393245d0
nlxusd01:a537069> zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
BMCpool 39.8G 98.5K 39.7G 0% ONLINE -
PRPpool 159G 1.42G 158G 0% ONLINE -
SDMpool 429G 133G 296G 30% ONLINE -
USDpool 1.17T 695G 502G 58% ONLINE -
rpool 136G 111G 25.3G 81% ONLINE -
nlxusd01:a537069> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 PRP-zone running /export/home/zones/PRP-zone native excl
3 USD-zone running /export/home/zones/USD-zone native shared
4 SDM-zone running /export/home/zones/SDM-zone native shared
- DEV-zone installed /export/home/zones/DEV-zone native shared
nlxusd01:a537069> zfs create BMCpool/SDM
nlxusd01:a537069> zfs set quota=4gb BMCpool/SDM
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/SDM
nlxusd01:a537069> zfs create BMCpool/USD
nlxusd01:a537069> zfs set quota=4gb BMCpool/USD
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/USD
nlxusd01:a537069> zfs create BMCpool/PRP
nlxusd01:a537069> zfs set quota=4gb BMCpool/PRP
nlxusd01:a537069> zfs set mountpoint=legacy BMCpool/PRP
nlxusd01:a537069> zfs list |grep -i BMCpool
BMCpool 228K 39.1G 32K /BMCpool
BMCpool/PRP 31K 4.00G 31K legacy
BMCpool/SDM 31K 4.00G 31K legacy
BMCpool/USD 31K 4.00G 31K legacy
nlxusd01:a537069> mkdir /export/home/zones/SDM-zone/root/opt/bmc
nlxusd01:a537069> mkdir /export/home/zones/USD-zone/root/opt/bmc
nlxusd01:a537069> mkdir /export/home/zones/PRP-zone/root/opt/bmc
nlxusd01:a537069> zonecfg -z SDM-zone
zonecfg:SDM-zone> add fs
zonecfg:SDM-zone:fs> set type=zfs
zonecfg:SDM-zone:fs> set special=BMCpool/SDM
zonecfg:SDM-zone:fs> set dir=/opt/bmc
zonecfg:SDM-zone:fs> end
zonecfg:SDM-zone> commit
zonecfg:SDM-zone> exit
nlxusd01:a537069> zonecfg -z USD-zone
zonecfg:USD-zone> add fs
zonecfg:USD-zone:fs> set type=zfs
zonecfg:USD-zone:fs> set special=BMCpool/USD
zonecfg:USD-zone:fs> set dir=/opt/bmc
zonecfg:USD-zone:fs> end
zonecfg:USD-zone> commit
zonecfg:USD-zone> exit
nlxusd01:a537069> zonecfg -z PRP-zone
zonecfg:PRP-zone> add fs
zonecfg:PRP-zone:fs> set type=zfs
zonecfg:PRP-zone:fs> set special=BMCpool/PRP
zonecfg:PRP-zone:fs> set dir=/opt/bmc
zonecfg:PRP-zone:fs> end
zonecfg:PRP-zone> commit
zonecfg:PRP-zone> exit
nlxusd01:a537069> mount -F zfs BMCpool/SDM /export/home/zones/SDM-zone/root/opt/bmc
nlxusd01:a537069> mount -F zfs BMCpool/USD /export/home/zones/USD-zone/root/opt/bmc
nlxusd01:a537069> mount -F zfs BMCpool/PRP /export/home/zones/PRP-zone/root/opt/bmc
nlxusd01:a537069> zoneadm list -cv
ID NAME STATUS PATH BRAND IP
0 global running / native shared
2 PRP-zone running /export/home/zones/PRP-zone native excl
3 USD-zone running /export/home/zones/USD-zone native shared
4 SDM-zone running /export/home/zones/SDM-zone native shared
- DEV-zone installed /export/home/zones/DEV-zone native shared
nlxusd01:a537069> zlogin PRP-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/PRP 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069> zlogin USD-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/USD 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069> zlogin SDM-zone df -kh /opt/bmc
Filesystem size used avail capacity Mounted on
BMCpool/SDM 4.0G 31K 4.0G 1% /opt/bmc
nlxusd01:a537069>
No comments:
Post a Comment