- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- New to lvm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 12:35 PM
09-07-2010 12:35 PM
regarding LVM ... Is there a command to find all unused available physical discs in all vgs
or is one vg queried at a time
what is command to be used
is there a command to pvcreate multiple discs at once
or is pvcreate done one disk at a time
what is command to be used
when i find the free disks i want to create a VG so it can be used
these steps required
i have read docs on how to expand extend etc but i need info to start from scratch..preferably step by step,
feel free to answer in multiple posts as points will be asssigned to each post,,
regards KT1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 12:40 PM
09-07-2010 12:40 PM
Re: New to lvm
>> on a test system i installed ux 11.xx
xx does matter!
You should use "vgdisplay -v ..." and "pvdisplay -v ..." to get this information.
Time to study the guides about LVM and hp-ux system administration!
http://www.hp.com/go/bsc
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 12:43 PM
09-07-2010 12:43 PM
Re: New to lvm
http://docs.hp.com/en/5992-6576/index.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 01:04 PM
09-07-2010 01:04 PM
SolutionThe manpages for 'lvm(7)' offer a very good, quick overview of LVM commands, LVM concepts and some LVM examples:
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02261079/c02261079.pdf
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 01:54 PM
09-07-2010 01:54 PM
Re: New to lvm
unfortunately the questions are not specific as i am not well versed in the subject to ask precise questions ,
I do understand that can make it a little difficult to answer thanks to all, replies just what i needed a guide with examples
regards KT1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 02:04 PM
09-07-2010 02:04 PM
Re: New to lvm
Normally this is done via a simple script:
bdf | awk -F\/ '{ print $3 }' | sort -u |while read -r vgname
do
vgdisplay -v $vgname
done
You may need to hack at this a bit, but you can easily find the values you seek.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 02:24 PM
09-07-2010 02:24 PM
Re: New to lvm
Thanks for the links,,much appreciated
As we speak i am reading Certified System Administrator by Ghori Ashgar which is good imho,,
i installed ux 11.31 on a rx2600
UX is installed on vg001 containing using one disk
I have read a few guides including the the most recent one posted by James but i cannot find answers to the queries below yes i have tried man pvcreate , and man vgdisplay etc,
but these options do not seem apparent,to me.
regarding LVM ... Is there a single command to find "all unused available physical discs in "all vgs" ?
or is one vg queried at a time i know how to query 1 vg at a time
is there a command to pvcreate multiple discs at once i know how to do one at a time
anyguide i have read so far seems to omit the above information perhaps there is no such option ?? or am I missing //misunderstanding something
regards kT1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 02:36 PM
09-07-2010 02:36 PM
Re: New to lvm
regards
KT1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 02:57 PM
09-07-2010 02:57 PM
Re: New to lvm
> UX is installed on vg001 containing using one disk
Standards dictate that the operating system boot disk in HP-UX is named 'vg00'. Use other volume groups for non-OS data. By keeping vg00 devoid of anything other than the standard HP-UX logical volumes you can easily backup and/or recover (with Ignite) and/or clone (with Ignite) your operating system.
> regarding LVM ... Is there a single command to find "all unused available physical discs in "all vgs" ?
Yes, "documentation". Aside from some more advanced methods to look for LVM metadata on a physical disk, you can't be sure of what constitutes "unused" physical volumes.
> or is one vg queried at a time i know how to query 1 vg at a time
Interrogating a volume group can show available extents within the physical volumes that comprise it but doesn't tell you about "unused" physical volumes on the server. Documentation does.
> is there a command to pvcreate multiple discs at once i know how to do one at a time
No, one 'pv_path' argument per 'pvcreate' is allowed as the manpages show. You can, however, do something as simple as:
# for DISK in c1t0d0 c1t1d0 c1t2do
> do
> pvcreate /dev/rdsk/${DISK}
> done
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 03:29 PM
09-07-2010 03:29 PM
Re: New to lvm
If you parse the output of 'bdf' you will constrain yourself to seeing only volume groups with *mounted* filesystems on their logical volumes.
A much better way to interrogate active volume groups is:
# vgdisplay
or:
# vgdisplay -v
...without any further argument.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 11:00 PM
09-07-2010 11:00 PM
Re: New to lvm
and is certainly appreciated,
regards
KT1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2010 03:57 AM
09-08-2010 03:57 AM