filesystem snapshot question

From: Garrett Wollman (wollman_at_khavrinen.lcs.mit.edu)
Date: 01/19/04

  • Next message: John Kennedy: "Shuttle SB75G2"
    Date: Sun, 18 Jan 2004 23:29:14 -0500 (EST)
    To: jesse@wingnet.net
    
    

    <<On Sun, 18 Jan 2004 23:11:51 -0500, Jesse Guardiani <jesse@wingnet.net> said:

    > So when a snapshot is active on a filesystem, does
    > every disk write happen twice? Once to the real
    > filesystem and once to the snapshot with old data?

    No. Writes only happen once. If a block is part of a snapshot, a new
    block on the disk is allocated to hold the updated data.

    > Does a snapshot physically grow on the disk as
    > changes are made to the real filesystem?

    No, but the active filesystem shrinks, as blocks that were formerly
    shared with the snapshot become exclusively the property of the
    snapshot(s) which contain them.

    -GAWollman

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: John Kennedy: "Shuttle SB75G2"

    Relevant Pages

    • Re: running mksnap_ffs
      ... I got the following Filesystem: ... Filesystem Size Used Avail Capacity iused ifree %iused ... The disk was not released, ... Our experience with a semi full 1.3T volume is that the snapshot ...
      (freebsd-stable)
    • Filesystem snapshots dog slow
      ... But it seems the making a snapshot is an incredibly slow/intensive task. ... Filesystem 1024-blocks Used Avail Capacity iused ifree %iused Mounted on ... shows immense disk I/O. ... osiris# gstat -I500ms -f'ad6' ...
      (freebsd-hackers)
    • Re: Backups / Dump etc
      ... > J> dump which will automatically snapshot the mounted filesystems. ... A snapshot is an abstraction of the state of the filesystem at ... When you start the snapshot, the only thing in the snap is the ...
      (freebsd-questions)
    • mksnap_ffs, snapshot issues, again
      ... > let's try to create a snapshot of empty filesystem ... long snapshot creation would be fine if it ... tank# mount /dev/twed0 /mnt ... Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on ...
      (freebsd-current)
    • Re: Back up and restore ZFS file systems
      ... Might also be interested in Tim Foster's automatic ZFS snapshot ... then trying to unmount it The umount will fail ... (because the filesystem is in use due to it being my working ...
      (comp.unix.solaris)