Raw Devices in Solaris Zones

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

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.