07-12-2005 05:59 PM
What is the command to view physical and logical volume on hpux 11/11i ?
How to find out which file system is being used by logical volumes ?
Solved! Go to Solution.
07-12-2005 06:21 PM
main commands are
#pvdisplay or pvdisplay -v
describe the details of hard disk (c0t0d0s0)
#vgdisplay or vgdisplay -v
every hdd befor making lv it must come under vg.
there can be multiple hdds
#lvdisplay lvdisplay -v
this the thing which is getting mounted. A lv can be there in different hdds but only in ong VG
this is the command which gives out of the file system which you are using.
07-14-2005 11:39 AM
ioscan -fnC disk will show you your disk devices.
pvdisplay -v /dev/dsk/yourdiskdevice #you will get the disk device from the ioscan -fnC
diskinfo -v /dev/rdsk/yourdiskdevice #This will show you info about your disk like vendor model size serial ect
vgdisplay -v /dev/vg?? vg?? is the volume group and this will show you the vg info, size, what disks are part of it as well as the volume groups.
lvdisplay -v /dev/vg??/lvol? This will show you details about logical volumes you have.
Bdf shows what filesystems you currently have mounted.
The /etc/fstab file has what files will be automatically mouted when your system boots.
07-14-2005 08:56 PM
From your question-
----> How to find out which file system is being used by logical volumes ?
File system is not used by logical volumes. Instead a logical volume is normally used by file system, allthough you have option of not creating a file system on a logical volume & have it work as swap logical volume or raw device for databases. Bdf will give you the details of which file system in mounted where.
The device file for logical volume and the file system contained on it will be same.
Apart from the one's listed here "swapinfo -atm" will give you the details of swap partitions.