Home
Man
Search
Today's Posts
Register

Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

Removing a PV from a VG that hasn't been used

Tags
filesystem

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 02-07-2013
Removing a PV from a VG that hasn't been used

Hi all,

So, I have the following setup:

- Ubuntu 12,04
- 1 6TB physical volume (the one with data) [ext4]
- 1 13TB PV (no data... I think?) [ext4]

Here is the story...

- I created an ext4 on the 13TB PV, added the 13TB to the VG to make a 13TB volume group.
- Everything went fine and then I ran:
Code:
resize2fs /dev/volgroup/volume

And to my surprise.. I couldn't resize past 16TB ! (crap! should have checked this first!).

So, nothing happened.. Now what I want to do is remove the 13TB PV from the VG and do something else with it... but I get the following error:

Code:
sudo vgreduce -t home_volume_group /dev/sdc1
  Test mode: Metadata will NOT be updated.
  Physical volume "/dev/sdc1" still in use

How can I safely remove this PV from the VG?


Thanks a bunch!

Harold
# 2  
Old 02-07-2013
Have you tried an lvremove to remove it?
# 3  
Old 02-07-2013
No I haven't.

Excuse my ignorance... but would that do anything to the data on the logical volume? I want to keep the data on the first PV.

Are you saying i could just remove the logical volume and then recreate another one later without loss of data?

Thanks
# 4  
Old 02-28-2013
Since you already expanded the logical volume, the extents are already being used by that LVOL.
You can check that with lvdisplay -m <lvol in question>.

After resize2fs, did the mentioned filesystem increased in size (even partial?)

If yes, you will need to put the new disk inside, and use pvmove to move the extents from that disk to new one.

After that you can use vgreduce.

Can you please post the output of
lvdisplay -m LVOL
vgdisplay -v VOLUMEGROUP

Also df output would be useful.
Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Removing PATTERN from txt without removing lines and general text formatting AxeHandle UNIX for Dummies Questions & Answers 5 09-24-2014 01:12 AM
zpool hasn't expanded rudigarude Solaris 2 08-29-2012 06:01 AM
Removing Numbers Ananth12 Shell Programming and Scripting 2 04-25-2012 10:01 PM
Help in removing duplicates rkrish Shell Programming and Scripting 4 03-25-2012 12:49 PM
Removing duplicates gctex Shell Programming and Scripting 7 04-27-2011 08:50 AM
Need some help removing a character from name bbbngowc Shell Programming and Scripting 3 04-08-2011 04:01 PM
Removing ^M and the newline that follows it. Leedor Shell Programming and Scripting 7 04-02-2011 12:43 PM
removing duplicates. raju4u UNIX for Advanced & Expert Users 7 03-19-2011 08:45 PM
Help with removing \n from a string in C omega666 Programming 12 02-10-2011 01:10 AM
removing a space phil_heath Shell Programming and Scripting 5 08-18-2009 07:42 PM
removing duplicates stevie_velvet Shell Programming and Scripting 5 07-07-2008 08:42 AM
removing space surenz298 Shell Programming and Scripting 6 06-30-2008 11:41 AM
Help with removing characters like ^M chiru_h Shell Programming and Scripting 16 02-13-2007 10:07 AM
Removing duplicates giannicello Shell Programming and Scripting 12 09-14-2005 07:12 PM
removing tabs nbvcxzdz Shell Programming and Scripting 7 03-29-2005 10:49 AM


All times are GMT -4. The time now is 12:51 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password