- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- updating lvm configuration
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
06-13-2005 12:28 AM
06-13-2005 12:28 AM
updating lvm configuration
A hard disk has gone bad and one v.g was defined for it.this v.g is not important and i need to physicaly remove the hard disk which is still connected to the system .The ioscan does not see it after reboot.so i need to update the lvmtab file;i intend to do the following;
1-# mv /etc/lvmtab /etc/lvmtab.old
2-#vgscan -av
and check if the H.D is removed from lvmtab
3-halt the system
4-remove the faulty h.d
5-reboot
Please confirm or advice for additional steps.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 12:39 AM
06-13-2005 12:39 AM
Re: updating lvm configuration
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 12:48 AM
06-13-2005 12:48 AM
Re: updating lvm configuration
thanks for the quick response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 12:52 AM
06-13-2005 12:52 AM
Re: updating lvm configuration
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 01:01 AM
06-13-2005 01:01 AM
Re: updating lvm configuration
vgscan searches each physical volume connected to the system, looking for logical volumes ...
... it could go in error on the bad disk.
Yours step would have to be corrected
Remember to remove the entry of the bad vg in the /etc/lvmtab
You can try with
1.vgexport /dev/vg_name
and check the lvmtab.
If this work fine:
2.halt the system
3.remove the faulty h.d
4.reboot
If vgexport not work fine:
Remove the entry of the vg in the /etc/lvmtab
1.halt the system
2.remove the faulty h.d
3.reboot
4.mv /etc/lvmtab /etc/lvmtab.old
5.vgscan -av
Enrico
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 04:28 PM
06-13-2005 04:28 PM
Re: updating lvm configuration
I assume that you need to remove the PV from a VG and VG from the /etc/lvmtab:
vgremove removes from the system the last physical volume of the volume group and the definition of the volume group or groups specified by volume_group_name.
All logical volumes residing on the last physical volume must be removed by executing lvremove before executing vgremove
Before removing a volume group, two steps are necessary:
1. Remove all but one of the logical volumes belonging to the group by using lvremove command
lvremove -f /dev/vgXX/lvolx
2. Remove the physical volumes belonging to the volume group by using vgreduce
vgreduce /dev/vgXX /dev/dsk/cXdXsX
then remove the vg from the volume group
vgremove /dev/vgXX
down the server... remove the faulty HDD and power up the server
Hope if this was your requirement ... if any steps missed out ...others pls guide...
Regards,
Vinod
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2005 05:02 PM
06-13-2005 05:02 PM
Re: updating lvm configuration
I think #vgreduce will do all these stuff....updaing lvmtab, removing lvs