hpux commands (102 Views)
Reply
Super Advisor
Shivkumar
Posts: 1,207
Registered: ‎05-22-2005
Message 1 of 12 (102 Views)
Accepted Solution

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


Please use plain text.
Honored Contributor
H.Merijn Brand (procura
Posts: 6,185
Registered: ‎10-13-1997
Message 2 of 12 (102 Views)

Re: hpux commands

# vgdisplay
# lvdisplay
# mount
# bdf

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Please use plain text.
Esteemed Contributor
Cem Tugrul
Posts: 964
Registered: ‎12-21-2003
Message 3 of 12 (102 Views)

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
Please use plain text.
Esteemed Contributor
Cem Tugrul
Posts: 964
Registered: ‎12-21-2003
Message 4 of 12 (102 Views)

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
Please use plain text.
Esteemed Contributor
Cem Tugrul
Posts: 964
Registered: ‎12-21-2003
Message 5 of 12 (102 Views)

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
Please use plain text.
Regular Advisor
jayachandran.g
Posts: 99
Registered: ‎06-23-2005
Message 6 of 12 (102 Views)

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
Please use plain text.
Honored Contributor
Mahesh Kumar Malik
Posts: 864
Registered: ‎11-29-1998
Message 7 of 12 (102 Views)

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
Please use plain text.
Honored Contributor
Joseph Loo
Posts: 1,981
Registered: ‎10-23-2000
Message 8 of 12 (102 Views)

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
Please use plain text.
Frequent Advisor
KRS_1
Posts: 56
Registered: ‎04-02-2005
Message 9 of 12 (102 Views)

Re: hpux commands

pvdisplay for physical volume

lvdisplay for logical volume

bdf shows all file systems on the system expect swap
Please use plain text.
Respected Contributor
generic_1
Posts: 533
Registered: ‎10-09-2002
Message 10 of 12 (102 Views)

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.
Please use plain text.
Honored Contributor
Devender Khatana
Posts: 2,278
Registered: ‎03-01-2004
Message 11 of 12 (101 Views)

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"
Please use plain text.
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 12 of 12 (101 Views)

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!
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation