- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: removing the PV...
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
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
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-04-2010 07:32 AM
тАО06-04-2010 07:32 AM
removing the PV...
can anybody tell the steps to goahead ?
Thanks in advance!!!!!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2010 07:34 AM
тАО06-04-2010 07:34 AM
Re: removing the PV...
umount file systems involved.
lvremove the logical volumes
when pvdisplay shows no extents in use, vgreduce to remove the physical volume from the volume group.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2010 10:01 AM
тАО06-04-2010 10:01 AM
Re: removing the PV...
#lvreduce -m if mirror
#lvremove if lv with out mirror
#vgreduce
#pvremove...
Enjoy ...
Regards,
Sooraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2010 05:50 PM
тАО06-04-2010 05:50 PM
Re: removing the PV...
1. whether PV is in use or not
2 how many LV's under that particular VG
3. Do you want to remove the LV and free up the PV or not
Simple step is check all these details using vgdispplay -v
then find out the PV Name from the output and see the Total PE and Free PE under that particular PV. if Total PE and Free PE matches then its not in use and you can go ahead and use vgreduce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2010 06:22 PM
тАО06-04-2010 06:22 PM
Re: removing the PV...
First confirm that disk is free which you want to remove from the vg_name.
if disk is not free then use pvmove to move the PE from disk to another disk.
once disk is freed !!!!
and gather the information related to disk from stroage point like ID that should be given to storage team to mask it.
vgreduce vg_name
then you can rmsf to remove hardware_path information from ioscan
rmsf -a /dev/dsk/c?t?d?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-04-2010 06:26 PM
тАО06-04-2010 06:26 PM
Re: removing the PV...
There are 2 major things need to check
1.Is it a good disk
2.Or its a bad disk
Which you want to remove from VG.
If its a good disk then you need to check these below steps.
1.Check this disk belongs to which VG from
#strings /etc/lvmtab => look for your disk
2.Do vgdisplay and find out what are the lv is belongs to this vg.
#vgdisplay -v vgname
3.Check lvs are mirrored or not if mirrored then need to break the mirror
#lvreduce -m 0 lvname pvname
4.If not mirrored than lvremove command
#lvremove -A n lvname
5.Last check pvdisplay -v pvname if extents are not in use then
#vgreduce vgname pvname
If your disk is bad then check this below link
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad_WP.pdf
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-05-2010 08:37 PM
тАО06-05-2010 08:37 PM
Re: removing the PV...
Check the below links:
http://www.idevelopment.info/data/Unix/Linux/LINUX_ManagingPhysicalLogicalVolumes.shtml
http://docs.hp.com/en/B2355-90672/ch03s10.html
http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1275798980780+28353475&threadId=10691
Rgds-Kranti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2010 01:25 AM
тАО06-06-2010 01:25 AM
Re: removing the PV...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2010 02:14 AM
тАО06-06-2010 02:14 AM
Re: removing the PV...
>> how to remove the physical volume from the vg
To remove physical volumes from the LVM volume group, you need to use the
vgreduce command. Check the following link for details of vgreduce command-
http://docs.hp.com/en/B3921-90010/vgreduce.1M.html
Hope this helps.
Regards,
Murali