Snapshot question

Cordula's Web cpghost at cordula.ws
Wed Jun 30 10:07:03 PDT 2004


[Does a snapshot change between backup and verify?]

http://docs.freebsd.org/cgi/mid.cgi?20040629135105.GB27491

Kevin A. Pieckiel wrote:
> cd /
> mksnap_ffs /var /var/.snap/backup.snap
> mdconfig -a -t vnode -f /var/.snap/backup.snap -u 6
> mount -r /dev/md6 /mnt/backup/root.var
> tar -cvf ${BACKUP_DEVICE} --totals --preserve \
>     --blocking-factor ${BACKUP_BLOCKSIZE} --block-number --multi-volume \
>     --new-volume-script ${PROGROOT}/next.sh \
>     --newer-mtime "${TIMESTAMP}" ${BACKUP_FLAGS} \
>     ${BACKUP_PATHS} >> ${LOGFILE} 2>&1
> tar --compare -f ${BACKUP_DEVICE} --blocking-factor ${BACKUP_BLOCKSIZE} \
>     --multi-volume --new-volume-script ${PROGROOT}/next.sh >> ${COMPAREFILE} 2>&1
> umount /mnt/backup/root.var
> mdconfig -d -u 6
> rm -f /var/.snap/backup.snap
> 
> Here, BACKUP_PATHS is set as follows:
> 
> BACKUP_PATHS="/mnt/backup"

Strange. I can't reproduce this bug. All snapshots I'm taking on
a very active FS are still 100% stable. Since you're mounting the
snapshot read-only, nothing _should_ change. Anyone else experiencing
this behaviour?

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



More information about the freebsd-questions mailing list