- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- lvm question
-
- Forums
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- OEM Solutions
- Servers: The Right Compute
- Shifting to Software-Defined
- Telecom IQ
- Transforming IT
- Infrastructure Solutions German
- L’Avenir de l’IT
- IT e Trasformazione Digitale
- Enterprise Topics
- ИТ для нового стиля бизнеса
- Blogs
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Forums
-
Blogs
-
InformationEnglish
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 02:06 PM
05-22-2009 02:06 PM
lvm question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 02:42 PM
05-22-2009 02:42 PM
Re: lvm question
check this thread, it can help ..
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1243031985423+28353475&threadId=1254676
Thanks
Kamal
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 02:43 PM
05-22-2009 02:43 PM
Re: lvm question
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 04:59 PM
05-22-2009 04:59 PM
Re: lvm question
Remove the physical volume from the Volume group, move old /etc/lvmtab file to other location and run vgscan again to have new lvmtab in place.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 07:23 PM
05-22-2009 07:23 PM
Re: lvm question
Check the attached doc.
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 07:48 PM
05-22-2009 07:48 PM
Re: lvm question
In order to remove only one disk from lvmtab, you can simply do:
# vgreduce vgXX /dev/dsk/cxtydz
If the disk is not responding or giving trouble, you use:
# vgreduce -f vgXX <== this will reduce missing PV from a VG
If you want to remove all the disks in a VG, that is you no longer need a VG, use following command to get rid of that VG permanently:
# vgexport vgXX
See man page of above commands for more options.
Hope this helps.
Regds,
R.K.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 08:29 PM
05-22-2009 08:29 PM
Re: lvm question
Follow the below steps,
If lvm is created , then
#umount /mountpont
#lvremove -f /dev/vgxx/lvyy
#vgchange -a n /dev/vgxx
Remove physical volume /dev/dsk/cxtxdx from volume group /dev/vgxx:
#vgreduce /dev/vgxx /dev/dsk/cxtxdx
Force reduction of missing PVs from volume group: vg01
#vgreduce -f /dev/vgxx
After that check
#strings /etc/lvmtab
or,
Export the volume group /dev/vg01 into mapfile vg01.mymap. The volume group will be removed from the exporting system.
#vgexport -m vgxx.mymap /dev/vgxx
http://docs.hp.com/en/B3921-60631/vgreduce.1M.html
http://docs.hp.com/en/B2355-60103/vgexport.1M.html
Rgds//
Taifur
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-22-2009 10:29 PM
05-22-2009 10:29 PM
Re: lvm question
Please see the link
http://docs.hp.com/en/5992-4616/ch03s01.html
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2009 02:51 AM
05-23-2009 02:51 AM
Re: lvm question
You can use "vgexport" "vgreduce" or "sam" to remove physical disk.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2009 05:15 AM
05-23-2009 05:15 AM
Re: lvm question
# vgreduce /dev/
# vgexport /dev/
# cp -pi /etc/lvmtab /etc/lvmtab.old
# mv /etc/lvmtab /etc/lvmtab.16april2006
# /usr/sbin/vgscan -v
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2009 07:37 AM
05-23-2009 07:37 AM
Re: lvm question
That is part of the work that the LVM commands do.
The question was: "how do i remove a physical disk path from lvmtab file."
The answer is "remove the disk from the VG." To do this you use the vgreduce command. If everything else is working correctly, that is ALL you need to do.
If you have other problems, then other actions may be required, but that is not what was asked.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-23-2009 07:50 AM
05-23-2009 07:50 AM
Re: lvm question
I second Patrick's last response. You should familarize yourself with the side-effects of running 'vgscan' to reconstruct an 'lvmtab'. Read the WARNINGS section of the manpages!
http://www.docs.hp.com/en/B2355-60130/vgscan.1M.html
As noted, if there isn't a specific need to reconstruct the 'lvmtab' then doing so only leads to more work on your part!
Regards!
...JRF...
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2019 Hewlett Packard Enterprise Development LP