Showing results for 
Search instead for 
Do you mean 

hpux commands

SOLVED
Go to Solution
Super Advisor

hpux commands

Dear Sirs,

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 ?

Thanks,
Shiv


11 REPLIES
Honored Contributor [Founder]

Re: hpux commands

# vgdisplay
# lvdisplay
# mount
# bdf

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Esteemed Contributor [Founder]

Re: hpux commands

Shiv,

vgdisplay -v vgname
lvdisplay -v 7dev/vgname/lvolname
ioscan -fnCdisk

commands can be use...
Our greatest duty in this life is to help others. And please, if you can't
Esteemed Contributor [Founder]

Re: hpux commands

opps i forgot to tell about pvdisplay command
for to see PV;
for ex;
pvdisplay -v /dev/dsk/c#txdy

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Esteemed Contributor [Founder]

Re: hpux commands

All the commands what you need is here
see my attachment.
Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Regular Advisor

Re: hpux commands

hi shivkumar

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


#fstyp /dev/vg01/lv0l2

this is the command which gives out of the file system which you are using.

bye bye
Honored Contributor [Founder]

Re: hpux commands

Hi Shiv

1. For physical volume display use pvdisplay -v pv path

2. For logical volume display use lvdisplay -v lvol name

Regards
Mahesh
Honored Contributor [Founder]

Re: hpux commands

hi shiv,

just in case u need to know more about LVM:

http://docs.hp.com/en/B2355-90697/lvm.7.html

regards.
what you do not see does not mean you should not believe
Frequent Advisor [Founder]

Re: hpux commands

pvdisplay for physical volume

lvdisplay for logical volume

bdf shows all file systems on the system expect swap
Respected Contributor [Founder]

Re: hpux commands

If you have added new disks you will need to do ioscan , then insf -e in order to see the new ones.

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.
Honored Contributor [Founder]

Re: hpux commands

Hi,

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.


HTH,
Devender
Impossible itself mentions "I m possible"
Honored Contributor [Founder]

Re: hpux commands

You can use sam to do this as,

sam -> Disks and file systems.

hth.
Easy to suggest when don't know about the problem!