1753270 Members
4966 Online
108792 Solutions
New Discussion юеВ

hpux commands

 
SOLVED
Go to solution
Shivkumar
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 11
H.Merijn Brand (procura
Honored Contributor
Solution

Re: hpux commands

# vgdisplay
# lvdisplay
# mount
# bdf

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Cem Tugrul
Esteemed Contributor

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
Cem Tugrul
Esteemed Contributor

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
Cem Tugrul
Esteemed Contributor

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
jayachandran.g
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
Mahesh Kumar Malik
Honored Contributor

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
Joseph Loo
Honored Contributor

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
KRS_1
Frequent Advisor

Re: hpux commands

pvdisplay for physical volume

lvdisplay for logical volume

bdf shows all file systems on the system expect swap
generic_1
Respected Contributor

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.