[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] pvscan showing 0 free on all PV's.



Hi.

>df shows how much free space there is on the *filesystem*. Even if the >filesystem isn't full, it can occupy the entire lvm, which occupies the entire >volume group. If you have only one filesystem on the lvm, then you may or may >not have a problem, depending on what filesystem you are using. If you are >using ext2 or ext3, then you can probably do an ext2resize to shrink it, followed >by an lvreduce to reduce the size of the partition that the filesystem lives on, but >*DANGER* *DANGER* *DANGER*. Reducing the size of an existing >filesystem is inherently dangerous, so back up, tread with caution, and don't >blame me when a meteorite flattens your house. If you are using reiserfs, jfs, or >xfs, you are probably out of luck, as these filesystems don't currently support >reduction.


So what I should do is the following:

Lets say the 200GB disc is 6000 PE's big.

e2fsadm -v -l -6076 /dev/vol1/lv_vol

This should make the lvm 200GB smaler.

Then after that I do

pvmove /dev/hdh1

That should then move the content of hdh1 to the other drives ?

Sorry, but I am a bit lost here.

All I want to do is to get the 200GB out of the lvm.

I am running ext2 and there is just that lvm on the system and a small 6GB system disc.

Best regards

Rene Olsen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]