- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvmpvg file missing
Operating System - HP-UX
1761309
Members
4031
Online
108901
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО04-01-2003 01:28 PM
тАО04-01-2003 01:28 PM
lvmpvg file missing
I recently did a vgxport, rebuilt the box and then did a vgimport. I went to extend a filesystem today and it errored saying it couldn't find the /etc/lvmpvg file. I restored it from the backup I did before beginning the rebuild but when I tried to do the lvextend again I got a different error saying that the lmvtab and the lvmpvg files did not match. I can't seem to find a way to recreate the lvmpvg file. anyone know?
just hit enter, what could it hurt?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2003 01:46 PM
тАО04-01-2003 01:46 PM
Re: lvmpvg file missing
You should be able to recreate /etc/lvmpvg by hand. See "man lvmpvg" for further details. I tested this on my system that does not have lvmpvg defined and it seems to work.
# vgdisplay -v vg01
..
PVName /dev/dsk/c2t11d0
PVStatus available
..
PVName /dev/dsk/c2t12d0
PVStatus available
...
Now I hand edit /etc/lvmpvg from scratch.
# cd /etc
# vi lvmpvg
VG vg01
PVG pvg1
/dev/dsk/c2t11d0
PVG pvg2
/dev/dsk/c2t12d0
If you run "vgdisplay -v vg01" again the pvg definition would be shown in the output.
# vgdisplay -v vg01
..
PVName /dev/dsk/c2t11d0
PVStatus available
..
PVName /dev/dsk/c2t12d0
PVStatus available
...
Now I hand edit /etc/lvmpvg from scratch.
# cd /etc
# vi lvmpvg
VG vg01
PVG pvg1
/dev/dsk/c2t11d0
PVG pvg2
/dev/dsk/c2t12d0
If you run "vgdisplay -v vg01" again the pvg definition would be shown in the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2003 06:22 PM
тАО04-01-2003 06:22 PM
Re: lvmpvg file missing
It is possible to recreate the /etc/lvmpvg file from lvmtab. Order the disks as they appear in lvmtab and you should be OK. Don't worry about lvmtab being binary.
Been there, and its just the ordering.
Been there, and its just the ordering.
Support Fatherhood - Stop Family Law
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2003 06:36 PM
тАО04-01-2003 06:36 PM
Re: lvmpvg file missing
Hi,
If your logical volume(s) were created with PVG-Strict option, then it would look for the corresponding configuration in /etc/lvmpvg file. As mentioned before, you can manually update the /etc/lvmpvg file. If you restored it from the backup, make sure the order is the same as listed in 'strings /etc/lvmtab' or the device files are correct in it. When a box is rebuilt, most of the times, the controller numbers (cx) get changed and the device files may not match the old ones.
-Sri
If your logical volume(s) were created with PVG-Strict option, then it would look for the corresponding configuration in /etc/lvmpvg file. As mentioned before, you can manually update the /etc/lvmpvg file. If you restored it from the backup, make sure the order is the same as listed in 'strings /etc/lvmtab' or the device files are correct in it. When a box is rebuilt, most of the times, the controller numbers (cx) get changed and the device files may not match the old ones.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP