[Veritas-bu] Backing up ZFS snapshots
2007-03-08 14:33:42
Subject: |
[Veritas-bu] Backing up ZFS snapshots |
From: |
Eric.Johnson at mtsallstream.com (Johnson, Eric) |
Date: |
Thu, 8 Mar 2007 14:33:42 -0500 |
You can control whether the .zfs directory for snapshots is visible or
not woth the "zfs set snapdir=visible <filesyste>" option. From the zfs
manpage:
snapdir=hidden | visible
Controls whether the ".zfs" directory is hidden or visi-
ble in the root of the file system as discussed in the
"Snapshots" section. The default value is "hidden".
Eric
-----Original Message-----
From: Alexander Skwar [mailto:listen at alexander.skwar.name]
Sent: Thursday, March 08, 2007 10:28 AM
To: veritas-bu at mailman.eng.auburn.edu
Subject: [Veritas-bu] Backing up ZFS snapshots
Hello.
On one of the servers which are backed up with NBU 6.0 MP4,
we're using Solaris 10 and also ZFS. To keep the backup window
as short as possible, I'm creating ZFS snapshots just before
the backup policy gets run. I do that "manually" with a script,
eg. like this: "zfs snapshot pool/Teamcenter at backup". This
creates a snapshot, which is accessible over
/pool/Teamcenter/.zfs/snapshot/backup.
The .zfs directory is completely invisible:
askwar at winds06 /opt $ sudo zfs snapshot pool/Teamcenter at backup
askwar at winds06 /opt $ ls -la /pool/Teamcenter/
total 116
drwxr-xr-x 22 root root 22 Feb 27 14:33 .
drwxr-xr-x 5 root sys 5 Mar 8 17:15 ..
drwxr-xr-x 2 root root 12 Nov 14 15:51 TT_DB
drwxrwxr-x 21 dev1 pdmusers 62 Jan 11 20:11 dev1
[...]
askwar at winds06 /opt $ ls -la /pool/Teamcenter/.zfs
total 3
dr-xr-xr-x 3 root root 3 Jan 12 18:50 .
drwxr-xr-x 22 root root 22 Feb 27 14:33 ..
dr-xr-xr-x 2 root root 2 Jan 12 18:50 snapshot
How do you guys actually backup ZFS snapshots? I don't really
want to go the route of having to add
/pool/Teamcenter/.zfs/snapshot/backup
to the Backup Selections of a policy, as this would mean, that
the Backup Selections would have to be updated, when a new
zfs is created. I don't like this.
How do you do that?
Alexander Skwar
|
|
|