- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- vgreduce won't let me reduce a device
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-17-2005 03:35 AM
03-17-2005 03:35 AM
mv /etc/lvmtab /etc/lvmtab.bad
vgscan -av
it is not helpful. Please find attached messages. If you notice it, when I do pvdisplay on this device, it shows me "unavailable". I am not sure if data on the device /dev/dsk/c8t4d3 is valid or not. I just added this device by vgextend command, and now I wanted to remove it from vg01. Please let me know what I should do to remove the device from vg01.
=============================
# vgreduce /dev/vg01 /dev/dsk/c8t4d3
vgreduce: Physical volume "/dev/dsk/c8t4d3" could not be removed since some of
ts
physical extents are still in use.
# pvdisplay /dev/dsk/c8t4d3 | more
--- Physical volumes ---
PV Name /dev/dsk/c8t4d3
VG Name /dev/vg01
PV Status unavailable
Allocatable yes
VGDA 2
Cur LV 1
PE Size (Mbytes) 4
Total PE 3072
Free PE 0
Allocated PE 3072
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 03:40 AM
03-17-2005 03:40 AM
Re: vgreduce won't let me reduce a device
man vgreduce for details. (vgreduce -f vgxx)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 03:51 AM
03-17-2005 03:51 AM
Re: vgreduce won't let me reduce a device
vgreduce -f /dev/vg01
doesn't help at all, everything looks same after I did this command.
"PV STATUS unavailable" what does that tell us?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 05:09 AM
03-17-2005 05:09 AM
Re: vgreduce won't let me reduce a device
Might want to test it:
dd if=/dev/rdsk/cXtYdZ of=/dev/null bs=64k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 05:13 AM
03-17-2005 05:13 AM
Re: vgreduce won't let me reduce a device
You may have to reboot to clear this...
You could try unmounting all on that vg, then vgchange -a n /dev/vg01
Then try to vgreduce -f it...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 08:06 AM
03-17-2005 08:06 AM
Re: vgreduce won't let me reduce a device
****LOOK AT THE OPUTPUT***
:
Cur LV 1
PE Size (Mbytes) 4
Total PE 3072
Free PE 0
Allocated PE 3072
:
Cur LV is 1, & it occupies the whole disk therefore 1 LV still resids on the disk. do
# vgdisplay -v /dev/dsk/c8t4d3 | more
And this will show you which LV is still in existance, the do lvremove /dev/vg01/lvYYY; vgredce /dev/dsk/c8t4d3; usual caveats about backups should apply.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 02:21 PM
03-17-2005 02:21 PM
Re: vgreduce won't let me reduce a device
The vgreduce output has indicated that there are physical extents that are still in use. I suggest that you do an lvremove first, then a vgreduce. You need to execute pvdisplay (with the -v option) to determine which lvol/s had extents on that disk. It is necessary to have a data backup prior to doing these commands.
Good luck!
Regards,
Isralyn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 07:40 PM
03-17-2005 07:40 PM
Re: vgreduce won't let me reduce a device
vgreduce -l vg01 /dev/dsk/c8t4d3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2005 11:23 PM
03-17-2005 11:23 PM
Re: vgreduce won't let me reduce a device
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 12:12 AM
03-18-2005 12:12 AM
Re: vgreduce won't let me reduce a device
Find out what lvols are using this disk.
If need be, lvol should be removed first, then you have no problem doing the vgreduce.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2005 12:13 AM
03-18-2005 12:13 AM
SolutionYou have made a 2 disk vg but not with a mirror. futher more you have extendend your lv so data is writen over but disk.
you have to reduce the lv size too the size of one disk with lvreduce.
after that you can do a vgreduce.
make sure you make a backup of your filesystems.
grtz. Mark