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

Re: LVM partition full (was:what is /command directory?)



On Mon, August 27, 2007 13:30, Douglas A. Tutty wrote:
> On Mon, Aug 27, 2007 at 07:34:15AM +0100, Richard Lyons wrote:
>> On Mon, August 27, 2007 01:44, Douglas A. Tutty wrote:
>
>> > Here there be dragons.  Remember that your initrd will be set up to
>> > start your LVM system so that it can find the root device for the
>> > kernel.  Since I've never had to tweak an initramfs it could get
>> > interesting.  So with / on LVM, lvm will be started before init even
>> > gets a chance to run anything in /etc/rc*.d.
>> >
>>
>> You are right of course.  I'll have to re-install from scratch in
>> order to get a working initrd.  And then copy back the /home and /usr
>> partitions and most of the / partition...
>>
>> Or just maybe there is a rescue boot on the netinstall disk which
>> just maybe will allow me to create a new initrd...
>
> The post-inst script of the kernel packages (and perhaps other packages)
> rebuilds the initrd.  Once you get things moved over to a non-lvm setup
> (on your spare drive), you could chroot to it from your working LVM
> setup, use aptitude to remove all the LVM packages, fix fstab, etc.
> Then run dpkg-reconfigure [kernel package name] and perhaps it would
> regenerate the initrd.  You could then add this non-lvm setup to the
> grub menu of the LVM setup.  This way you can test the new setup without
> killing the old one.
>
[...]
>
> Once you have a working non-LVM installation on the spare drive (which
> shouldn't take too long), go ahead an try the LVM resizing stuff.  Then
> decide which way you want to go and remove the one you don't want.
>

Good plan.  Thanks for clearing my head about that.  It is so much
easier when someone else lays it out...


> For moving files from the old install to the new one, I've always had
> great luck with mc (midnight commander).  I used to do this a lot before
> I switched to LVM, what with hard disks dying, needing to change which
> drive was in which box, etc. (drives are cheap but I'm cheaper).

Yes, I like mc, but usually use good old cp -a or rsync for this kind
of exercise.

-- 
richard



Reply to: