How to delete and unmount a zfs filesystem from a Solaris Zone

Run below commands to delete filesystem (fs) from zone named zone01: # zonecfg -z zone01 zonecfg:zone01> remove fs dir=/data01 zonecfg:zone01> remove fs dir=/data02 zonecfg:zone01> commit zonecfg:zone01> exit # Now destroy the zfs filesystem from the hosts: # zfs destroy data_pool/data01/zone01 # zfs destroy data_pool/data02/zone01

Add another network in Solaris 11

If it is virtual machine then you can add new network via VMware and Check for newly added network on server, Like I got “net1” as shown below: # dladm show-phys LINK MEDIA STATE SPEED DUPLEX DEVICE net0 Ethernet up 1000 full e1000g0 net1 Ethernet unknown 0 unknown e1000g1 # Now create a new interface […]

Changing of Hostname in Solaris10 & 11

For changing hostname in Solaris 10 you need to make changes in below files and reboot server. /etc/hosts /etc/nodename /etc/hostname.e1000g0 /var/crash/ # cd /var/crash # mv old-host-name new-host-name # reboot For changing hostname in Solaris 11 List current configuration: # svccfg -s system/identity:node listprop config config application config/enable_mapping boolean true config/ignore_dhcp_hostname boolean false config/loopback astring […]

Increase swap memory in Solaris 11

Firstly, check where your swap file is, If it is a ZFS volume created during the Solaris installation then follow below steps: # top -d1 | grep -i "total swap" Memory: 126G phys mem, 93G free mem, 4096M total swap, 4095M free swap # swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 248,1 16 33554416 […]

pkg commands in Solaris 11

You can manage package management in Solaris 11 using “pkg” command which has install, update, search etc. as attributes to manage packages. # pkg list (It will show you all installed packages on server.) NAME (PUBLISHER) VERSION IFO archiver/gnu-tar 1.27.1-0.175.3.0.0.30.0 i– audio/audio-utilities 0.5.11-0.175.3.0.0.30.0 i– codec/flac 1.2.1-0.175.3.0.0.14.0 i– # pkg list | grep -i x11-info-clients (Grep […]