Cannot use filesystem while sending a snapshot


 
Thread Tools Search this Thread
Operating Systems Solaris Cannot use filesystem while sending a snapshot
# 1  
Old 08-21-2011
Cannot use filesystem while sending a snapshot

I've got a Solaris 11 Express installed on my machine. I have created a raidz2 zpool named shares and a simple one-disc zpool named backup. I have made a script that would send a daily snapshot of shares to backup.

I use these commands

zfs snapshot shares@DDMMRRRRHHMM
zfs send -i shares@.... shares@DDMMRRRRHHMM | zfs receive -F backup

It works quite fine, but for one important issue. If i make a change to the shares filesystem while sending the snapshot, the snapshot is not send properly.

I currently unmount the filesystem before and mount it back again after the transfer completes, but that is unfortunatelly an unacceptable situation.

Thanks in advance for all replys,
Dusan
# 2  
Old 08-21-2011
What if you remount it read-only? It will still be available but shouldn't cause trouble for the snapshot.
# 3  
Old 08-21-2011
Thanks for your reply. There is an SVN repository on the filesystem that I might need to work with, so I'd prefer letting in mounted read/write if that's possible.
# 4  
Old 08-21-2011
Please elaborate about:
Quote:
If i make a change to the shares filesystem while sending the snapshot, the snapshot is not send properly.
# 5  
Old 08-22-2011
Thanks for your reply.

Theoretically, there should be no reason for the snapshot beeing sent to get corrupted. Even though the represented filesystem has been modified, the snapshot still does have all the information about what it looked like before.

Moreover, been unable to modify the system while sending the snapshot (which might be for quite a long time if there are a lot of changes) is quite annoying. That's why I want to find out if there is a solution to that problem.
# 6  
Old 08-22-2011
It would help if you describe what the problem is in the first place, i.e. what makes you conclude the snapshot sent is corrupted.
# 7  
Old 08-23-2011
I used 400 GB of space on the shares filesystem, made an initial snapshot and sent it to the backup disk. Then I observed free space decreasing on the backup filesystem and thought myself "alright, that seems ok - the snapshot being send should probably take 400 GB of the backup filesystem's space after being sent completely".

But then I made a change to the svn repository (which resides on shares) and (even though the complete snapshot could not have been transfered completely at that time) after that, the "zfs list backup" command showed only a tiny space consumed on backup.

Moreover, when I tried to send another snapshot incrementaly (e.g. with the -i option), I got an error telling me that the opening snapshot did not match the most recent snapshot on the backup fs.

Though limited by my english language skills, I did my best to describe the situation. I hope this helps. Dusan
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Snapshot analyze

Hi, Is there any tool is available for analyzing Oracle X86 snapshot output. Thanks in advance. (1 Reply)
Discussion started by: sunnybee
1 Replies

2. OS X (Apple)

Snapshot backup

Hi all: I'm trying to do the following: 1) Each monday (for every week or bi-weekly) I'll perform a full backup of my 2 Tb RAID 1 system to an external eSATA 2 Tb HDD. I'll move this HDD to a different physical place (my home i.e). 2) Each day after monday until the next backup, I want to... (3 Replies)
Discussion started by: alvgarci
3 Replies

3. AIX

Mount Filesystem in AIX Unable to read /etc/filesystem

Dear all, We are facing prolem when we are going to mount AIX filesystem, the system returned the following error 0506-307The AFopen call failed : A file or directory in the path name does not exist. But when we ls filesystems in the /etc/ directory it show -rw-r--r-- 0 root ... (2 Replies)
Discussion started by: m_raheelahmed
2 Replies

4. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

5. Solaris

zfs - get the name of the last snapshot

I have installed Solaris 11 Express on my server and want to set up automatic backuping using zfs snapshots. In the backup script I need to find out the name of the last snapshot of the given filesystem (in order to refer to it as the startpoint of an incremental backup). What is the best way to do... (4 Replies)
Discussion started by: RychnD
4 Replies

6. UNIX for Dummies Questions & Answers

hwo to find shared filesystem and local filesystem in AIX

Hi, I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local. Please tell me the commands which I can run... (2 Replies)
Discussion started by: kamranjalal
2 Replies

7. Solaris

Can not snapshot zone

For the life of me, I cannot figure out the syntax unless it's my configuration. Zone path is /zpool/zones/oracle11zone2 It is not running. -bash-3.00# zfs snapshot zpool/zones/oracle11zone2@prepatch cannot open 'zpool/zones/oracle11zone2': dataset does not exist -bash-3.00# zfs snapshot... (13 Replies)
Discussion started by: LittleLebowski
13 Replies

8. Solaris

Filesystem - error when extend the filesystem

Hi all, currently , my root filesystem already reach 90 ++% I already add more cylinder in the root partition as below Part Tag Flag Cylinders Size Blocks 0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300 1 swap wu 1 - ... (11 Replies)
Discussion started by: SmartAntz
11 Replies

9. Solaris

FS snapshot problems

Hi, I'm working with fssnap command because I would search an alternative backup metod. My server has Solaris 9 installed and following sys admin manual, I created some snapshots, this is not difficult. But the problem is here: following manual I create without problem snapshots, for example the... (1 Reply)
Discussion started by: bonovox
1 Replies
Login or Register to Ask a Question