lvreduce
I ran across this today, and wanted some clarification if I could. I am running kernel 2.4.21 and lvm 1.0.7.
I needed to resize a partition, reducing it by 1GB. As I have done in the past, went into single user mode, umounted the partition did a resize_reiserfs -s-1GB /dev/vg00/var
This went fine, then I tried to reduce the size of the lv, using lvreduce -L-1G /dev/vg00/var
lvreduce -- WARNING: Reducing active logical volume to 1 GB lvreduce -- THIS MAY DESTROY YOUR DATA (filesystem etc.) lvreduce -- do you really want to reduce "/dev/vg00/var"? [y/n]:
Isn't the -L-1G option for lvreduce supposed to reduce the lv _by_ the requested amount rather than _to_ that size? If specify -L1G, that should be an absolute value rather than a relative value.
Am I missing something here? Would this be better addressed to the Debian maintainer for the lvm tools?
Thanks,
Signature · 14 lines
--Brad ============================================================================ Bradley M. Alexander | gTLD SysAdmin, Security Engineer | storm [at] tux.org Debian/GNU Linux Developer | storm [at] debian.org ============================================================================ Key fingerprints: DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65 RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34 ============================================================================ If all you can see out of the window is ground that's going round and round and all you can hear is commotion coming from the passenger compartment, things are not at all as they should be. --Rules of the Air, #18
Bradley,
could it accidentially be, that your LV was 2GB large before ?
That'ld explain the resulting 1GB, because lvreduce shows the absolute resulting size.
Quoted 10 lines · Bradley M Alexander
I ran across this today, and wanted some clarification if I could. I am running kernel 2.4.21 and lvm 1.0.7.
I needed to resize a partition, reducing it by 1GB. As I have done in the past, went into single user mode, umounted the partition did a
resize_reiserfs-s-1GB/dev/vg00/varThis went fine, then I tried to reduce the size of the lv, using lvreduce -L-1G
/dev/vg00/var
Quoted 6 lines
lvreduce -- WARNING: Reducing active logical volume to 1 GB lvreduce -- THIS MAY DESTROY YOUR DATA (filesystem etc.) lvreduce -- do you really want to reduce "
/dev/vg00/var"? [y/n]:Isn't the -L-1G option for lvreduce supposed to reduce the lv _by_ the requested amount rather than _to_ that size?
Yes.
Quoted 2 lines
If specify -L1G, that should
be an absolute value rather than a relative value.
Correct.
Quoted 2 lines
Am I missing something here?
No.
Quoted 2 lines
Would this be better addressed to the Debian
maintainer for the lvm tools?
Well, that's Patrick Caulfield and he's on my team reading this mail as well :)
Quoted 23 lines
Thanks,
Signature · 20 lines
--Brad ============================================================================ Bradley M. Alexander | gTLD SysAdmin, Security Engineer | storm [at] tux.org Debian/GNU Linux Developer | storm [at] debian.org ============================================================================ Key fingerprints: DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65 RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34 ============================================================================ If all you can see out of the window is ground that's going round and round and all you can hear is commotion coming from the passenger compartment, things are not at all as they should be. --Rules of the Air, #18 _______________________________________________ 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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 6 lines · Heinz J . Mauelshagen
Bradley,
could it accidentially be, that your LV was 2GB large before ?
That'ld explain the resulting 1GB, because lvreduce shows the absolute resulting size.
It seems to be. te case. A few weeks ago, I was on travel, and reduced a partition, and it did not come back after reduction. I did it the same way as I always do...resize, reduce, remount. When I tried to remount, it gave me the bad filesystem error...
so I thought that might be the problem.
Thanks for clarifying.
Quoted 59 lines · Bradley M Alexander
Quoted 10 lines
I ran across this today, and wanted some clarification if I could. I am running kernel 2.4.21 and lvm 1.0.7.
I needed to resize a partition, reducing it by 1GB. As I have done in the past, went into single user mode, umounted the partition did a
resize_reiserfs-s-1GB/dev/vg00/varThis went fine, then I tried to reduce the size of the lv, using lvreduce -L-1G
/dev/vg00/varQuoted 6 lines
lvreduce -- WARNING: Reducing active logical volume to 1 GB lvreduce -- THIS MAY DESTROY YOUR DATA (filesystem etc.) lvreduce -- do you really want to reduce "
/dev/vg00/var"? [y/n]:Isn't the -L-1G option for lvreduce supposed to reduce the lv _by_ the requested amount rather than _to_ that size?
Yes.
Quoted 2 lines
If specify -L1G, that should
be an absolute value rather than a relative value.Correct.
Quoted 2 lines
Am I missing something here?
No.
Quoted 2 lines
Would this be better addressed to the Debian
maintainer for the lvm tools?Well, that's Patrick Caulfield and he's on my team reading this mail as well :)
Quoted 23 lines
Thanks,
Signature · 20 lines
--Brad ============================================================================ Bradley M. Alexander | gTLD SysAdmin, Security Engineer | storm [at] tux.org Debian/GNU Linux Developer | storm [at] debian.org ============================================================================ Key fingerprints: DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65 RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34 ============================================================================ If all you can see out of the window is ground that's going round and round and all you can hear is commotion coming from the passenger compartment, things are not at all as they should be. --Rules of the Air, #18 _______________________________________________ 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 · 11 lines
--Brad ============================================================================ Bradley M. Alexander | gTLD SysAdmin, Security Engineer | storm [at] tux.org Debian/GNU Linux Developer | storm [at] debian.org ============================================================================ Key fingerprints: DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65 RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34 ============================================================================ Those who trade liberty for security have neither.