2018-06-12

Extend /tmp on Solaris

Need to add +2G to my /tmp in order to do Netbackup upgrade (v. 7.7.3).  Well in this case, I am getting some failure in upgrading so I decided to install it using "install_client_files sftp $CLIENT mmond"

mmond@sehp01:~$ df -h /tmp
Filesystem             Size   Used  Available Capacity  Mounted on
swap                   374M   280M        94M    75%    /tmp
mmond@sehp01:~$ sudo zfs list rpool
NAME    USED  AVAIL  REFER  MOUNTPOINT
rpool  45.0G  3.94G  76.5K  /rpool
mmond@sehp01:~$ sudo zfs create -p -V 2G rpool/swapextra
mmond@sehp01:~$ sudo swap -a /dev/zvol/dsk/rpool/swapextra
mmond@sehp01:~$ sudo swap -lh
swapfile                      dev            swaplo      blocks        free
/dev/zvol/dsk/rpool/swap      301,1              8K         10G        3.2G
/dev/zvol/dsk/rpool/swapextra 301,10             8K        2.0G        2.0G 

After the upgrade I just removed it file used to extend my /tmp.

mmond@sehp01:~$ sudo swap -d /dev/zvol/dsk/rpool/swapextra
mmond@sehp01:~$ sudo zfs destroy rpool/swapextra


No comments:

Post a Comment