Paritions to install Ubuntu
Gabriel Dragffy
dragffy at yandex.ru
Sun Mar 11 12:19:00 UTC 2007
Dimitri Mallis wrote:
> ok well i figured out eventually how to make snapshots...
>
> i resized music to 50G then ran this command
>
> dimitri at OuZo:~$ sudo lvcreate -L10G -s -n rootBackup /dev/ursus250/lvRoot
> Incorrect metadata area header checksum
> Logical volume "rootBackup" created
>
> but i want to know if there is a way to *not* specify the size of the
> backup, so i will make a back up that is the right size with out using
> 10G (im only using about 1.3G of my / partition anyway, but this will
> soon change.)
>
> then how would i restore form this snapshot?
>
I think that your understanding of the way LVM works is a little
misplaced. A snapshot must have a size specified, because when it is
first created it occupies no space, as you make changes on the original
logical volume those changes are recorded on to the snapshot partition
(in a reverse fashion). Thus the snapshot doesn't contain backup data,
it merely contains the data needed to revert the original partition back
to it's state when you took the snapshot.
The advantage with the snapshots is that with most backup tools you can
only backup from a partition that isn't online. With LVM you can make a
snapshot of an online LVM, and then, keeping the snapshot offline, make
a backup of the snapshot LVM. So for example, you could make a snapshot
of root /, and then use 'partimage' to make a backup, but using the
offline snapshot.
> also how can i fix this error? > Incorrect metadata area header checksum <
>
> thanks
>
Dunno about that, I have always hoped that I wouldn't run in to an error
like that, hope you can find the fix and then post the solution here, if
someone doesn't do that any way.
More information about the ubuntu-users
mailing list