Operating System - HP-UX
1825777 Members
2174 Online
109687 Solutions
New Discussion

Re: Need to map out logical volumes

 
SOLVED
Go to solution
Andy Stout
Frequent Advisor

Need to map out logical volumes

I'm trying to map out my logical volumes to actual directories on my server. I think BDF/pvdisplay/lvdisplay/vgdisplay gets me most of what I want. The only question is - how do I know what exactly is in "/" my lvol3 is listed as that and I want to know what directories are included.
4 REPLIES 4
GGA
Trusted Contributor

Re: Need to map out logical volumes

are u mean what directoris and files in / ?
cd /
ls
or u mean
vgdisplay vg00 ?
lvdisplay /dev/vg00/lvol?

regards gga
john kingsley
Honored Contributor
Solution

Re: Need to map out logical volumes

Run "ls -F /" This will identify all the directories in /. Then look at your output from bdf. Ignore directories listed in the output from bdf. Those will be separate filesystems that will are included with other lvols.
Bill Hassell
Honored Contributor

Re: Need to map out logical volumes

/ is the top level directory and as such, there will be mountpoints as well as files and directories that are part of / (and therefore lvol3). This command:

ll /

will show all the files and directories at the top. Just subtract the mountpoints shown in bdf or mount -p, just pipe into awk to show field 2:

mount -p | awk '{print $2}'

Anything in / that is not part of the above list is in /.


Bill Hassell, sysadmin
Andy Stout
Frequent Advisor

Re: Need to map out logical volumes

Thanks everyone - I think I've got the info I need.