Solaris :
How to add extra disk and increase ZFS file system space
1: Request new disk from Storage
2: Scan for the new disk
3: Verify the new disk
4: Lable the new disk
5: Add the new disk to ZFS pool
6: extend the file system
-------
1: Once the new disk is provisioned, log in to the global zone and run the following command as root user:
cfgadm -al
2: Verify the new disk
echo | format | grep <LUN_ID>
where the <LUN_ID> is the storage admin provide to you
you will see the disk name
3: Lable the new disk:
format
you will see the added disk had been format
4: Add the new disk to ZFS disk pool
zpool add <zpool_name> <disk_name>
you can use command : df -h to find out the Zpool_name
command:
zlogin zone17 df -h /data/t30
or
df -h /t30
you will find below result:
Filesystem size used avail capacity Mounted On
trvst_app/t30 196G 57G 139G 30% /t30
Add the new disk into /trcst_app pool:
zpool add trcst_app c6t3747488474758DHFJFGKHHKKK (disk name)
5 Veryfication the caonfigration of the pool:
zpool status trcst_app
6: extend the file system:
Check the quato:
zfs get quota <ZFS_name>
Set the new Quato:
zfs set quota=<new_size> <zfs_name>
example:
zfs get quota trvst_app/t30
Name Property value Source
trvst1_app quota 100G local