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


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Removing a PV from a VG that hasn't been used
Prev   Next
# 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 or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Removing PATTERN from txt without removing lines and general text formatting

Hi Everybody! First post! Totally noobie. I'm using the terminal to read a poorly formatted book. The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this. I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies

2. Solaris

zpool hasn't expanded

Hi Guys, I have a raidz zpool that consists of four disks. 2x2TB, 1x1TB and 1x0.75TB. Originally it was only 1x1TB, 3x0.75TB, and I had around 1.7TB of storage capacity. I've just switched out two of the 0.75TB disks for the 2x2TB ones. I did this one at a time and now the resilvering is... (2 Replies)
Discussion started by: rudigarude
2 Replies

3. Shell Programming and Scripting

removing '[20]' from a file

Hey guys, I'm using sed to remove from a file and using either of this: sed 's///g'| sed 's/''//g'| sed 's/'$(echo "")'//g'| but those are just deleting '1' from the file, could you please help me with that? (2 Replies)
Discussion started by: Johanni
2 Replies

4. Emergency UNIX and Linux Support

Removing all the duplicates

i want to remove all the duplictaes in a file.I dont want even a single entry. For the input data: 12345|12|34 12345|13|23 3456|12|90 15670|12|13 12345|10|14 3456|12|13 i need the below data in one file 15670|12|13 and the below data in another file (9 Replies)
Discussion started by: pandeesh
9 Replies

5. Programming

Help with removing \n from a string in C

void remove_new_line(char *s) { while (*s) { if (*s == '\n') { *s='\0'; } s++; } } // i tried this code for removing a \n from a string but its not working (12 Replies)
Discussion started by: omega666
12 Replies

6. Shell Programming and Scripting

Removing ^M from a file

i have a file that has ^M character at the end of each line there are atleast 150 files like this and i want to remove the special character(^M) . i want a script which does this which takes filename as an argument. Please help in this regards. (5 Replies)
Discussion started by: pgmfourms
5 Replies

7. Shell Programming and Scripting

removing duplicates

Hi I have a file that are a list of people & their credentials i recieve frequently The issue is that whne I catnet this list that duplicat entries exists & are NOT CONSECUTIVE (i.e. uniq -1 may not weork here ) I'm trying to write a scrip that will remove duplicate entries the script can... (5 Replies)
Discussion started by: stevie_velvet
5 Replies

8. UNIX for Advanced & Expert Users

Removing files

Hi, It seems someone has created files instead of actually running the commands, as below: -rw-r--r-- 1 oracle92 dba 0 Mar 2 11:19 PRIML_070302.ok -rw-r--r-- 1 oracle92 dba 557 Mar 2 11:20 PRIVH_070302.dat -rw-r--r-- 1 oracle92 dba 0 Mar 12 11:57... (2 Replies)
Discussion started by: LiquidChild
2 Replies

9. Shell Programming and Scripting

removing certain tabs

I have a tab delimited file with many lines, one for each record. each line is tab delimited with a tab before the first data field, a tab between each data field, and a tab after the last data field before it moves onto the next line. I need to remove only the preceeding tab before the first... (2 Replies)
Discussion started by: djkane
2 Replies

10. Shell Programming and Scripting

removing tabs

Hi Everyone, Im trying to write a shell script that removes a "newline character followed by a tab" throughout a file. basically it should get rid of it. Here's an example File Before The cat sat on the mat File After The cat sat on the mat This message writing screen has... (7 Replies)
Discussion started by: nbvcxzdz
7 Replies
Login or Register to Ask a Question
E4DEFRAG(8)						      System Manager's Manual						       E4DEFRAG(8)

NAME
e4defrag - online defragmenter for ext4 filesystem SYNOPSIS
e4defrag [ -c ] [ -v ] target ... DESCRIPTION
e4defrag reduces fragmentation of extent based file. The file targeted by e4defrag is created on ext4 filesystem made with "-O extent" option (see mke2fs(8)). The targeted file gets more contiguous blocks and improves the file access speed. target is a regular file, a directory, or a device that is mounted as ext4 filesystem. If target is a directory, e4defrag reduces fragmen- tation of all files in it. If target is a device, e4defrag gets the mount point of it and reduces fragmentation of all files in this mount point. OPTIONS
-c Get a current fragmentation count and an ideal fragmentation count, and calculate fragmentation score based on them. By seeing this score, we can determine whether we should execute e4defrag to target. When used with -v option, the current fragmentation count and the ideal fragmentation count are printed for each file. Also this option outputs the average data size in one extent. If you see it, you'll find the file has ideal extents or not. Note that the maximum extent size is 131072KB in ext4 filesystem (if block size is 4KB). If this option is specified, target is never defragmented. -v Print error messages and the fragmentation count before and after defrag for each file. NOTES
e4defrag does not support swap file, files in lost+found directory, and files allocated in indirect blocks. When target is a device or a mount point, e4defrag doesn't defragment files in mount point of other device. Non-privileged users can execute e4defrag to their own file, but the score is not printed if -c option is specified. Therefore, it is desirable to be executed by root user. AUTHOR
Written by Akira Fujita <a-fujita@rs.jp.nec.com> and Takashi Sato <t-sato@yk.jp.nec.com>. SEE ALSO
mke2fs(8), mount(8). e4defrag version 2.0 May 2009 E4DEFRAG(8)