From: Jean-Philippe Villeneuve <jeepii@globetrotter.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Backup of ROOT Partition.
Date: Wed, 16 Jul 2008 17:03:21 -0400 [thread overview]
Message-ID: <487E6219.7030507@globetrotter.net> (raw)
In-Reply-To: <486B8550.6070605@globetrotter.net>
I tried the folowing recipe:
http://tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html with the folowing
script:
/****************************/
#!/bin/sh
BAKLVMNAME=sysbackup
lvcreate -L592M -s -n $BAKLVMNAME /dev/VolGroup00/LogVol00
mount /dev/VolGroup00/$BAKLVMNAME /mnt/sysbackup/ -o ro
cd /mnt/sysbackup
time tar -cjvpf /mnt/serveur/backSysVol.bz2 *
cd ..
umount /mnt/sysbackup
lvremove -f /dev/VolGroup00/$BAKLVMNAME
/****************************/
I get the folowing error:
Rounding up size to full physical extent 608.00 MB
Insufficient free extents (1) in volume group VolGroup00: 19 required
It works find if I do it with -L20M.
How do I change the LogicalVolumeSize?
according to 'df' I have plenty of space for data.
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
35G 6.0G 27G 19% /
/dev/md0 677G 270G 373G 42% /mnt/serveur
/dev/sda1 190M 26M 155M 15% /boot
tmpfs 374M 0 374M 0% /dev/shm
Am I missing something?
Jean-Philippe Villeneuve wrote:
>
> Bryan Kadzban wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: RIPEMD160
>>
>> Jean-Philippe Villeneuve wrote:
>>
>>> I would like to know if I can backup all my system partitions(ROOT
>>> included) using a snapshot?
>>>
>>
>> Depends on what you mean by "backup [...] using a snapshot".
>>
>> If you mean taking a snapshot, then mounting it somewhere and pointing
>> your backup software to that mount point, then unmounting and deleting
>> the snapshot after the backup is done, then yes, it should work fine.
>>
> This is exactly what I want to do. I just want the latest
> configuration, users files etc. I realy don't need files at a specific
> date with tons of backups.
>
> Than you all for the fast and acurate answers.
>
> Jean-Philippe
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
next prev parent reply other threads:[~2008-07-16 21:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-30 21:06 [linux-lvm] Backup of ROOT Partition Jean-Philippe Villeneuve
2008-07-01 8:19 ` Alessandro Ferrari
2008-07-01 11:03 ` Bryan Kadzban
2008-07-01 11:13 ` Dan Shearer
2008-07-01 16:48 ` Bryan Kadzban
2008-07-02 13:40 ` Jean-Philippe Villeneuve
2008-07-16 21:03 ` Jean-Philippe Villeneuve [this message]
2008-07-16 22:22 ` Bryan Kadzban
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=487E6219.7030507@globetrotter.net \
--to=jeepii@globetrotter.net \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox