Skip to contentSkip to conversation

snapshots

linux-lvm Robert Dyas 2 participants 2 messages Oct 18, 2001

lore
Share & tools
lore
#0 lore raw

Snapshot questions:

1)Has anyone had any luck creating a snapshot (lvcreate -L100M -s -n backup /dev/vg_master/lv_home) and then mounting it (mount -r /dev/vg_master/backup /mnt)? If so, what version of the kernel, mount tools, filesystem, etc are you using?

2) How can you use the snapshot feature to facilitate incremental or differential backups? Wouldn't the dump or other backup program have to twiddle the archive bit, but won't be able to since snapshots are readonly? Any insight here would be appreciated.

Thanks!

Rob

#1 lore raw
Quoted 4 lines · Robert Dyas

1)Has anyone had any luck creating a snapshot (lvcreate -L100M -s -n backup /dev/vg_master/lv_home) and then mounting it (mount -r /dev/vg_master/backup /mnt)? If so, what version of the kernel, mount tools, filesystem, etc are you using?

Yes, but I don't know the exact versions.

Quoted 3 lines

2) How can you use the snapshot feature to facilitate incremental or differential backups? Wouldn't the dump or other backup program have to twiddle the archive bit, but won't be able to since snapshots are readonly?

Um, "archive bit" is a severe DOS-ism, which doesn't exist in Unix. An incremental backup on Unix is based on the file modification timestamp which does not need to be changed when doing the backup.

Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert