- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script to create /etc/lvmpvg file
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
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
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
10-11-2011 09:12 AM
10-11-2011 09:12 AM
Hi everyone ..
Just wondering if anyone have a script that creates / appends the /etc/lvmpvg file for a specfic vg that is already created?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2011 10:41 AM
10-11-2011 10:41 AM
SolutionHi:
I don't have a script to create an '/etc/lvmpvg' file or its stanzas after the fact. If you are creating a volume group from scratch, simply use the '-g pvg_name' option of 'vgcreate' to form the entry. Otherwise, you can create the 'lvmpvg' by-hand after the fact from the physical volumes that comprise your volume group, using 'vgdisplay -v'.
See the manpages for 'lvmpvg(4)' and 'vgcreate(1M)' for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2011 11:56 AM
10-11-2011 11:56 AM
Re: script to create /etc/lvmpvg file
It can't really be automated, since you're the one who has to decide what disks go in which PVGs, right? Maybe it should be a feature request for the pvchange command - pvchange -g PVG1 /dev/dsk/c0t0d0, right?
/etc/lvmpvg is a very simple file to edit, though.
VG<tab>/dev/vg00
PVG<tab>GROUPNAME
/dev/dsk/c0t0d0
/dev/dsk/c0t1d0
The key is that the white space between the VG and PVG keys and their values must be a single tab. Spaces won't work.