Sometime after a reboot/crash the zonehome is unavailable.
Follow these steps to bring it back online.
zonecfg -z [ZONENAME] export > $HOME/zones/[ZONENAME].cfg
zfs set setuid=on [ZONENAME]
zfs set devices=on [ZONENAME]
zoneadm -z [ZONENAME] attach
zoneadm -z [ZONENAME] boot
Showing posts with label zones. Show all posts
Showing posts with label zones. Show all posts
09 Jan 2015
10 Nov 2014
View full zone name with the ps command.
ps -efZ truncates the zone name if its more than 8 characters.
In order to see the full zone name use the following command.
ps -eo zone,uid,pid,ppid,time,vsz,rss,comm,args
Check ps man page for all the options that can be used with the -o option.
In order to see the full zone name use the following command.
ps -eo zone,uid,pid,ppid,time,vsz,rss,comm,args
Check ps man page for all the options that can be used with the -o option.
12 Apr 2011
pools
Create new pool resources. Limit the number of cpus.
poolcfg -c discover
poolcfg -c 'create pset mypool-pset (uint pset.min=1 ; uint pset.max=2)'
poolcfg -c 'create pool mypool-pool'
poolcfg -c 'associate pool mypool-pool (pset mypool-pset)'
Create new pool resources.poolcfg -c 'create pset mypool-pset (uint pset.min=1 ; uint pset.max=2)'
poolcfg -c 'create pool mypool-pool'
poolcfg -c 'associate pool mypool-pool (pset mypool-pset)'
pooladm -c
View changes.poolladm | pg
zones: capped resources
Cap memory.
To cap the number of cpus.
zonecfg -z zone
zonecfg:zone> add capped-memory
zonecfg:zonecapped-memory> set physical=2G
zonecfg:zonecapped-memory> end
zonecfg:zone> verify
zonecfg:zone> commit
zonecfg:zone> exit
To cap the number of cpus.
zonecfg -z zone
zonecfg:zone> add dedicated-cpu
zonecfg:zone:dedicated-cpu> set ncpus=1-2
zonecfg:zone:dedicated-cpu> set importance=10
zonecfg:zone:dedicated-cpu> end zonecfg:zone:dedicated-cpu> set ncpus=1-2
zonecfg:zone:dedicated-cpu> set importance=10
zonecfg:zone> verify
zonecfg:zone> commit
zonecfg:zone> exit
04 May 2009
Zones: Change IP address
To change an IP address of an zone.
zonecfg:z> select net address=[old IP]
zonecfg:z:net> set address=[new IP]
zonecfg:z:net> end
zonecfg:z> commit
Reference: Sun Forums
zonecfg:z> select net address=[old IP]
zonecfg:z:net> set address=[new IP]
zonecfg:z:net> end
zonecfg:z> commit
Reference: Sun Forums
Subscribe to:
Posts (Atom)