A few technical items on UFS2 and snapshots...

From: Joe Schmoe (non_secure_at_yahoo.com)
Date: 06/23/04

  • Next message: Danny Braniss: "waiting on sbwait"
    Date: Tue, 22 Jun 2004 17:28:50 -0700 (PDT)
    To: freebsd-hackers@freebsd.org
    
    

    (posted to -questions a few days back, but with no response)

    Hi - a few questions about UFS2 and snapshots:

    1. Is it dangerous to mount all 20 possible filesystem snapshots and _leave them mounted_ to use at any time ? What about
    automatically mounting all 20 snapshots at boot time ?

    2. Related to the first question, it seems like I am getting space out of nowhere ... that is, if I fill up a drive, then
    make a snapshot, then erase the drive and fill it again, then make another snapshot ... and do this 20 times, AND THEN mount
    all 20 snapshots, it seems like I now have 20x as much disk space as before (granted, most of it is read-only) ... it seems
    like I am getting something for nothing. What am I missing here ? What tradeoffs do I begin to make as I mount up more and
    more snapshots and get more and more browsable space ?

    3. When I mount a snapshot, as described in the man page, but then later mount -uw the snapshot ( to make that a writeable
    mount) and, say, touch a file or create a file in the mounted snapshot ... what exactly am I doing ? Have I corrupted the
    snapshot ? Is it still usable as a snapshot ? Where does this space end up being used at if I write a file in a
    write-enabled, mounted snapshot ?

    4. This is not related to snapshots, but is a UFS2 question ... I see that if I am doing filesystem activity, and before I
    can sync the disks, my machine crashes ... the machine sort of goes back in time when it reboots - the files or directories I
    had created no longer exist when it reboots. This is expected, I suppose, and makes sense. However, it seems like I have
    also seen the following behavior:

    write file A
    write file B
    crash
    file A exists, but B does not
    write file B
    crash
    BOTH file A and B _no longer exist_

    Is this possible ? Have I really seen that behavior, or am I remembering it wrong ? I swear that I have seen something like
    this happen ... if this is possible, can someone explain how ? It seems like it shouldn't be possible...

    Thanks!

                    
    ---------------------------------
    Do you Yahoo!?
    Yahoo! Mail is new and improved - Check it out!
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Danny Braniss: "waiting on sbwait"

    Relevant Pages

    • cannot mount lvm snapshot volume
      ... RAID-5 array, same size. ... lvscan -- 3 active logical volumes ... I want to use lvm's snapshot capability to do backups, ... I can't seem to mount ...
      (comp.os.linux.misc)
    • Re: [SLE] Re: *SPAM* Re: [SLE] LVM shapshots, udev, symlinks, and reboots -- ugliness
      ... > to mount the newly created snapshot. ... They always mount correctly. ... troubleshoot it more if I didn't see so many issues on the lvm mailing ... upgrading my 2.4.x kernel machines. ...
      (SuSE)
    • Re: Cannot mount a nfs share after doing a snapshot
      ... I have no problem mounting this nfs share from a nfs client. ... But after issuing the following command on the server: ... Is the problem that you are trying to mount your snapshot on top of the / ... I am not trying to mount the snapshot. ...
      (freebsd-stable)
    • VxVM import hardware snapshot
      ... VxVM enabled LUN and mount it back to the same host. ... Obviously the snapshot is going to be identical as the primary LUN so ... How do we go about importing the snapshot so we can mount it. ...
      (comp.arch.storage)
    • Re: A few technical items on UFS2 and snapshots...
      ... Well, right after you have taken the snapshot, it doesn't ... But as soon as you start modifying the filesystem _after_ ... automatically mount them during boot and keep ... First it takes zero space. ...
      (freebsd-hackers)