[CentOS] Re: Freeing pv space for snapshots

Sun Jan 7 05:53:20 UTC 2007
Paul <unix at bikesn4x4s.com>

On Sat, January 6, 2007 6:21 pm, Scott Silva wrote:
> Johnny Hughes spake the following on 1/6/2007 1:05 AM:
>> On Fri, 2007-01-05 at 11:25 -0800, Scott Silva wrote:
>> <snip>
>>>> Right, if you can't unmount there are several options ... we have a
>>>> rescue mode on CD-1, the DVD, or the Single Server CD ... also we have
>>>> the live CD.
>>>> The OS you boot to needs LVM2 and all the EXT3 tools ... personally I
>>>> recommend the LiveCD ... that was one of it's main purposes.  It is
>>>> much
>>>> more full featured than the rescue mode on the other CDs.
>>> What would be nice, if it already isn't in the live cd, would be a
>>> command or
>>> binary to look for and mount the existing installations like the rescue
>>> mode
>>> does. If this is already there, then pardon me, as I haven't seen it.
>>> A lot of us know how to walk through and do this, but many people do
>>> not.
>> While the LiveCD does not mount the devices in /mnt/sysimage ... it can
>> automount all partitions.
>> If you start it with the command:
>> linux automount
>> You end up with all your partitions mounted in /mnt/ by their name.
> But does that mount LV's in LVM? Or do you still need to use LVM commands
> to
> activate LV's?

After I booted up on the CentOS 4.4 live CD, the LV's where both there, I
just needed to mount them.  And BTW, I tried the snapshot thing, it worked
flawlessly.  I tarred a backup then removed the LV of the snapshot.  Now
my next step is to see if I can actually restore the whole system on my
test box.  I also tarred the hda1 which is mounted as /boot.  If this all
goes well, I won't ever have to bring the system down for DD backups