- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can someone tell me what LVM commands update /etc/...
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
03-16-2007 04:54 AM
03-16-2007 04:54 AM
As far as i know, only vgscan/vgimport make changes to lvmtab. How about the regular LVM commands?
vgcreate, vgextend, vgreduce, vgremove, vgsync
lvcreate, lvextend, lvreduce, lvremove...
pvcreate, pvremove, pvmove
can't find any info in Man pages. Any ideas, appreciate.
Thanks,
Jeff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 04:56 AM
03-16-2007 04:56 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:03 AM
03-16-2007 05:03 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:11 AM
03-16-2007 05:11 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
Yes, I believe vgcreate should add sth. in lvmtab as lvmtab contains info about VGs/PVs. But, how about vgextend and other commands like vgcfgrestore? Thanks.
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:13 AM
03-16-2007 05:13 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:17 AM
03-16-2007 05:17 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
1. Save /etc/lvmtab to another file.
2. Remove /etc/lvmtab.
3. Use vgscan -v to recreate /etc/lvmtab.
4. NOW use vgcfgbackup(1M) to save the LVM setup.
Should vgreduce update lvmtab automatically?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:29 AM
03-16-2007 05:29 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:36 AM
03-16-2007 05:36 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
yes, vgreduce -f will remove the pv entries of the missing drives from the lvmtab file. That's what i want cuz we have no old lvmtab there and 'Cur PV' > 'Act PV' in vgdisplay. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:40 AM
03-16-2007 05:40 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:51 AM
03-16-2007 05:51 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
The 'ghost disk' case has been solved already. We do things like this,
...
# lvreduce -k -m 0 /dev/vg07/odata 0
# vgreduce -f vg07
After 'vgreduce', we got some instructions from the system like this
1. Save /etc/lvmtab to another file.
2. Remove /etc/lvmtab.
3. Use vgscan -v to recreate /etc/lvmtab.
4. NOW use vgcfgbackup(1M) to save the LVM setup.
I did that and everything is ok now. But from what i understand, 'vgreduce' should update /etc/lvmtab automatically same thing as you mentioned what 'vgcreate' did. And i want to know what LVM commands update /etc/lvmtab. Is this clear? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 05:52 AM
03-16-2007 05:52 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:06 AM
03-16-2007 06:06 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:12 AM
03-16-2007 06:12 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
vgcfgrestore, vgcreate, vgexport, vgextend, vgimport, vgreduce, vgremove, vgscan
I do not believe that any lv/pv commands modify the lvmtab file. Hope that helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:19 AM
03-16-2007 06:19 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:21 AM
03-16-2007 06:21 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
COOL! Thanks. my last question is, 'vgreduce' modifies lvmtab, why we still need to do the vgscan to re-create /etc/lvmtab following the vgreduce? And we can easily find this kinda suggstions at the very bottom of vgreduce(1M) also. Wired.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:34 AM
03-16-2007 06:34 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:36 AM
03-16-2007 06:36 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:57 AM
03-16-2007 06:57 AM
Re: Can someone tell me what LVM commands update /etc/lvmtab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2007 06:58 AM
03-16-2007 06:58 AM