Re: lvreduce - no such file or directory?
Hi Andy, On Sun, Oct 07, 2007 at 05:52:28PM +0100, Andy Hardy wrote: Wesley J. Landaker wrote: On Sunday 07 October 2007 07:46:42 Andy Hardy wrote: debian:/home/andy# lvreduce -v -r -L -50g /dev/debian/home Finding volume group debian Executing: fsadm check /dev/debian/home (null) fsadm: execlp failed: No such file or directory fsadm failed: 2 debian:/home/andy# You don't give it a device, you give it a vg and lv name, so: $ lvreduce -v -r -L -50g debian/home I get the same error. Indeed, both ways should work. But you'd better be sure you've already shrunk the *filesystem* itself, or you're going to lose all of your data. Isn't the -r (resizefs) supposed to do this? My copy of lvreduce as distributed with etch does not have this option. Try reducing the filesystem with resize2fs first, then doing lvreduce without the -r. Cheers, Andy -- http://bitfolk.com/ -- No-nonsense VPS hosting Encrypted mail welcome - keyid 0x604DE5DB signature.asc Description: Digital signature
lvreduce - no such file or directory?
Hi, I'm trying to move some space from 'home' to 'var'. But when I try to reduce home I get: debian:/home/andy# lvscan ACTIVE'/dev/debian/root' [276.00 MB] inherit ACTIVE'/dev/debian/usr' [4.77 GB] inherit ACTIVE'/dev/debian/var' [202.86 GB] inherit ACTIVE'/dev/debian/swap_1' [2.59 GB] inherit ACTIVE'/dev/debian/tmp' [392.00 MB] inherit ACTIVE'/dev/debian/home' [221.77 GB] inherit debian:/home/andy# lvdisplay /dev/debian/home --- Logical volume --- LV Name/dev/debian/home VG Namedebian LV UUIDsM2dmW-LE6N-3gtt-4dkZ-IXcN-Aceo-jj4sM7 LV Write Accessread/write LV Status available # open 1 LV Size221.77 GB Current LE 56772 Segments 1 Allocation inherit Read ahead sectors 0 Block device 254:5 debian:/home/andy# lvreduce -v -r -L -50g /dev/debian/home Finding volume group debian Executing: fsadm check /dev/debian/home (null) fsadm: execlp failed: No such file or directory fsadm failed: 2 debian:/home/andy# Ideas? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: lvreduce - no such file or directory?
On Sunday 07 October 2007 07:46:42 Andy Hardy wrote: debian:/home/andy# lvreduce -v -r -L -50g /dev/debian/home Finding volume group debian Executing: fsadm check /dev/debian/home (null) fsadm: execlp failed: No such file or directory fsadm failed: 2 debian:/home/andy# You don't give it a device, you give it a vg and lv name, so: $ lvreduce -v -r -L -50g debian/home But you'd better be sure you've already shrunk the *filesystem* itself, or you're going to lose all of your data. -- Wesley J. Landaker [EMAIL PROTECTED] xmpp:[EMAIL PROTECTED] OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2 signature.asc Description: This is a digitally signed message part.
Re: lvreduce - no such file or directory?
Wesley J. Landaker wrote: On Sunday 07 October 2007 07:46:42 Andy Hardy wrote: debian:/home/andy# lvreduce -v -r -L -50g /dev/debian/home Finding volume group debian Executing: fsadm check /dev/debian/home (null) fsadm: execlp failed: No such file or directory fsadm failed: 2 debian:/home/andy# You don't give it a device, you give it a vg and lv name, so: $ lvreduce -v -r -L -50g debian/home I get the same error. But you'd better be sure you've already shrunk the *filesystem* itself, or you're going to lose all of your data. Isn't the -r (resizefs) supposed to do this? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]