pvscan showing 0 free on all PV's.
Hi.
Quoted 1 line
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
Quoted 5 lines · Rene Olsen
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
yup,
Quoted 5 lines
This should make the lvm 200GB smaler.
Then after that I do
pvmove
/dev/hdh1
Not yet. e2fsadm reduced the size of the filesystem. But you need to then reduce the sze of the lvm with:
lvreduce -l 6076 /dev/vol1/lv_vol
Then use the pvmove command.
-Tupshin
Quoted 12 lines · Tupshin Harper
Quoted 5 lines · Rene Olsen
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_volyup,
Quoted 2 lines
This should make the lvm 200GB smaler.
Quoted 8 lines
Quoted 3 lines
Then after that I do
pvmove
/dev/hdh1Not yet. e2fsadm reduced the size of the filesystem. But you need to then reduce the sze of the lvm with:
lvreduce -l 6076/dev/vol1/lv_vol
Then use the pvmove command.
No need to lvreduce after running e2fsadm.
e2fsadm extends/reduces an unmounted ext[23] and grows/shrinks the Logical Volume as well (unless a not automatically fixible fsck error occurs).
Quoted 9 lines
-Tupshin
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-