About basics on Solaris zones read this previous post Solaris 10 Zones
Since long time two questions about solaris 10 zones haunting my mind, here I am keeping those with answers.
- When I logged into a Zone how would I know the details of Global Zone details (IP/hostname) on which it is running? If u can provide me the command, I will be happier?
Answer : you can't find out
why would you need to know?
The whole point of zones (or containers as they are sometimes called) is that they "contain" you within your zone and do not give visibility or access to the other zones including the global one. Also you should not login to the global zone - it is not a test server and should not be used
A system admin can give u the details if you request, which generally not happens in work enviropnment due to following reasons.
(1) it would only encourage people to login to the global zone if they knew what it is called
(2) He has the option to move zones between servers so this info could become out of date
- How can I know the type of file system the zone is of (I mean how can I know the Zone type a sparse zone or Whole root zone) being logged into one zone. Any command for this at least?
Answer : You can not easily - If you have root access to the zone and can modify /usr, /lib, /platform, or /sbin (not recommended to touch any of them) then you are NOT in a sparse zone.
You can assume form this point forward that if you ask for a zone to be built then it will be full root by default. Of course we will still build sparse ones .
Do not confuse the term "type of file system the zone is of" with "zone type". All zones sit on a ZFS file system
- Last but not the least : I am using a Solaris machine, Now I am intrested to know whether it is a Zone or normal server ??? what is the command ?I don't know it is a zone or physical server ?
Answer : tricky one - Try running /usr/sbin/prtdiag
If it runs (even as non root) you are on a physical
prtdiag can only be run in the global zone
The thing is it is also possible the create a zone that has some properties of a sparse and some of a full root. To be honest the only difference really is the fact that some filesystems are mounted read-only from the global and some are full copies
so the only way to tell is the method I metioned
Another trick that will indicate if you are in a zone or physical machine is to cat /etc/vfstab
on a zone there are no entries for /
Another one is "df -k" - physcial will show root as coming from something like /dev/dsk/c1t0d0s0 whereas a zone will show it being mounted from "/"
yeah 3 easy checks for physical vs zone - there are many more I'm sure.
However sparse vs full root really only goes back to check if /usr, /bin, /platform, and /sbin are writable as root - either through trying it on the zone as root or going to the global zone and typing "zonecfg -z zonename info"
2 comments to "Solaris 10 Zones Vs Solaris 10 physical server"
Powered by WidgetsForFree
- ► 2013 (19)
- ► 2011 (18)
- ► 2010 (35)
- ► 2009 (73)
- Mayhem in Mumbai - Nov 26, 2008 to Nov 29, 2008
- where is ldd installed in HP unix?
- Customs in work ..found in eenadu daily
- How to replace esacape(\n \t) charecters and ' cha...
- Facing error like this ? : bad interpreter: No suc...
- Educational blog Award ... For making everyone aro...
- Acts can win the hearts ...Friend
- where can I find pmon, smon ...oracle services in ...
- If love becomes marriage ?? ( ప్రెమే పెళ్ళయుతే ?? ...
- Harivarasanam ... song meaning and Mp3 downlaod
- How to see hardware details like name and type of ...
- Solaris 10 Zones Vs Solaris 10 physical server
- Ayyappa Deeksha - Required things - Total ayyappa ...
- యువతా!!! బ్లాగ్ అంటె?( Youth!!! blog means? ) - In...
- ▼ November (14)
My Blog List
- Airtel and vodafone GPRS settings for pocket PC phones
- Andhra 2 America
- Ayyappa Deeksha required things
- Blogs I watch !
- Captions for your bike
- DB2 FAQs
- Deepavali Vs The Goddes of sleep
- ETV - Dhee D2 D3
- Evolution of smoking in India Women
- How to make credit card payments?
- Java-J2EE interview preparation
- My SQL FAQs
- My Travelogues
- Old is blod - New is italic
- Online pay methids for credit cards
- Oracle FAQs
- Smoking in Indian Women
- Technology Vs Humans
- Twitter feeds for all Telugu stars on single page.
- Unix FAQs
- Unix best practices
- init 0, init 1, init 2 ..
- mCheck Application jar or jad download