Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Physical Disk layout

Status
Not open for further replies.

dloverm

Technical User
Oct 1, 2007
5
US
Forgive me all - I come from an AIX background and am fairly new to some of Solaris' offerings.

Is there an easy way to map out every physical drive in the server and show what filesystem is on each slice of the drive? The examples show me that metastat can show this, but the command is not displaying the filesystems attached to the device when I run it. Not sure if I am missing something here or not - but just trying to plan for a live upgrade here soon and am trying to understand the systems I have a little better.

Thank you in advance
 
Hi - personally I find the information presented in metatool (the graphical interface to Solaris Volume Manager or whatever it's aclled these days) is more easily read than that presented by metastat. You will need an X Windows app like Exceed to use this, however.

I want to be good, is that not enough?
 
Thanks for the direction. I am trying to get solstice going here - it was installed but never setup and configured so I am having some struggles with that as well.

In the meantime - further information for all. I can see all my defined disks - all my slices and prtvtoc shows me that some slices have been defined - but it shows them as "unassigned" when I can also easily see they are assigned to different filesystems. The Mount Directory always shows as empty (not sure why) and I am just not finding what I need to tie it all together.

Any help would be appreciated.

Thank you,
 
A useful command to start with:
df -kh

If your disks are mirrored, try metastat

And of course the format command. Do a:
format
0
p
p
Format brings up the program.
0 is zer0 to select the disk you want to view
p is print
p is print

You can tell exactly what you have on the disk from this by slice. Do not ever try to put anything on slice 2

hope this helps
 
Thank you - that gets me part of what I want. Using this I wrote a handy little script called "lsfs" (ok - so I took the name from my old AIX days) which basically will look at a filesystem and tell me what physical disks it is on (primary and mirror) (or striped if it is striped) and then display slice information as well.

But now I am looking to build an "lspv" emulation which will look at the physical disk and show me a layout of what is on each slice of the disk (if anything). I was expecting prtvtoc to show me this, metastat gives me "some" detail but in all honesty - Im shocked at how difficult it is just to be able to see what an admin has layed out where.

this is kinda ridiculous.
 
I have noticed that prtvtoc will only print out the "mount directory" information for filesystems I have defined on my system that are not setup for logging. Also these are the same filesystems that are listed only in /etc/mnttab and not in /etc/vfstab. Does anyone know of any bugs with prtvtoc as it is related to filesystem logging or with the vfstab file? If I could get this to work for me - that would resolve a great number of obstacles for me.

Thank you,
 
Ok - I made another script - an "lspv" knockoff from the AIX world again - and am using it.

thank you all for your suggestions and help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top