Archive for February, 2009

Raw Devices in Solaris Zones

Posted in Solaris with tags , on February 23, 2009 by pkochummen

To check if any LUNs are being used as raw devices within Solaris Zones, the following one-liner can be used from the global.

for i in `zoneadm list | grep -v global`; do echo $i; zonecfg -z $i info | grep -i match;done

(or)

cd /<zone-root>/root/dev/rdsk; ls

Note: the first one will only work if the zonecfg has been updated to include the raw device

Solaris Zones Update On Attach

Posted in Solaris with tags , , on February 23, 2009 by pkochummen

Quick note to self:

On update on attach using Solaris zones

a) If the attach errors out saying some specific patches are not installed, add the patch numbers to

/usr/lib/brand/native/bad_patches

b) If instead of the -u (upgrade) option, the -f(force) option is specified, the following procedure can be used to update

  • Detach the zone
  • Remove the SUNWDetached.xml file
  • Attach the zone using the -u option
  • Verify the update happened by checking the update_log file at /var/sadm/install/logs