FBSD5: Was sollen diese .snap Files ? Und kann ich die löschen ?

sewin

Entwickler
Hallo,

weiss jemand für was die .snap Files in den einzelnen partitions sind ? kann ich die löschen ? weil: ich hab ne partition /data und dort stört mich diese .snap datei.


sewin
 
Die wird fuer Snapshots gebraucht (gut, ne?). Falls du die also nicht verwendest kannst du das Teil loeschen, wird eh bei Bedarf neu angelegt (z.B. background fsck oder eben snapshot). Ist aehnlich wie mit lost+found, das kann man auch getrost loeschen (solange keine wichtigen Daten drinliegen)
 
blöde frage eines blöden freebsd4-users: was ist ein snapshot ?

noch ne blöde frage eines blöden freebsd4-users: was ist ein background fsck ?
ich nehme an sowas wie ein hintergrund defragmentierungsding oder so. brauche ich das ? und kann ich das auch abschalten ? weil: ich mag es gar nicht wenn meine kiste im hintergrund "grundlos" auf der festplatte rüdelt. und eigentlich mag ich das rüdeln ansonst schon nicht.

wäre für ne kurze erklärung echt dankbar, damit ich den durchblick bekomme ;-)


sewin
 
man mount
Code:
snapshot
                     This option allows a snapshot of the specified file sys-
                     tem to be taken.  The -u flag is required with this
                     option.  Note that snapshot files must be created in the
                     file system that is being snapshotted.  You may create up
                     to 20 snapshots per file system.  Active snapshots are
                     recorded in the superblock, so they persist across
                     unmount and remount operations and across system reboots.
                     When you are done with a snapshot, it can be removed with
                     the rm(1) command.  Snapshots may be removed in any
                     order, however you may not get back all the space con-
                     tained in the snapshot as another snapshot may claim some
                     of the blocks that it is releasing.  Note that the schg
                     flag is set on snapshots to ensure that not even the root
                     user can write to them.  The unlink command makes an
                     exception for snapshot files in that it allows them to be
                     removed even though they have the schg flag set, so it is
                     not necessary to clear the schg flag before removing a
                     snapshot file.

                     Once you have taken a snapshot, there are three interest-
                     ing things that you can do with it:
 1.   Run fsck(8) on the snapshot file.  Assuming that the
                          file system was clean when it was mounted, you
                          should always get a clean (and unchanging) result
                          from running fsck on the snapshot.  This is essen-
                          tially what the background fsck process does.

                     2.   Run dump(8) on the snapshot.  You will get a dump
                          that is consistent with the file system as of the
                          timestamp of the snapshot.

                     3.   Mount the snapshot as a frozen image of the file
                          system.  To mount the snapshot /var/snapshot/snap1:

                          mdconfig -a -t vnode -f /var/snapshot/snap1 -u 4
                          mount -r /dev/md4 /mnt

                          You can now cruise around your frozen /var file sys-
                          tem at /mnt.  Everything will be in the same state
                          that it was at the time the snapshot was taken.  The
                          one exception is that any earlier snapshots will
                          appear as zero length files.  When you are done with
                          the mounted snapshot:
 umount /mnt
                          mdconfig -d -u 4

                          Further details can be found in the file at
                          /usr/src/sys/ufs/ffs/README.snapshot.

bgfsck ist sinnvoll da es den fsck bei beim starten ersetzt. Die Kiste bootet einfach duch und dann wird im Hintergrund der fsck gemacht, aber nur wenn nötig. Von daher ist Dein "grundlos" auch grundlos.
 
Hummm, kann 4.x ueberhaupt Snapshots? bgfsck geht jedenfalls nicht...

@sewin: Du kennst 'man -k' bzw. 'apropos'?
 
apropos kannte ich . man -k nicht. also wenn ich das richtig verstehe werden die .snap directories vom system nie verwendet, ausser dass ich es ausdrücklich dem system sage. denn dann lösche ich die dinger jetzt. danke mal dafür.

ach ja, rc.conf: background_fsck="NO" hab ich gefunden.

Bin nur gerade beim arbeiten, und hatte daher wenig zeit zu googeln. Also danke allerseits.


sewin
 
@ MRFixit: "FBSD5: Was sollen diese .snap Files ?"
Snapshots und bgfsck wurden erst mit der 5er eingefuehrt, imho.
 
Zurück
Oben