Can fssnap be used as a compression tool (Solaris 10)?


 
Thread Tools Search this Thread
Operating Systems Solaris Can fssnap be used as a compression tool (Solaris 10)?
# 1  
Old 01-02-2010
Can fssnap be used as a compression tool (Solaris 10)?

Friends, I am learning the working of fssnap command.
Suppose there is a directory named /datadir which is of size 500mb.

I had taken the snapshot by means of the following command:

Code:
#fssnap -F ufs -o bs=/snapshotdir /datadir

{ it shows the o/p as

/dev/fssnap/0 }

My question is if I look at the size of /snapshotdir/snapshot0 file it is only in few KB.
But when I mount the /dev/fssnap/0 to some temporary directory its size is of 500mb and data could also be accessed.

Please clarify how this works...Can we say that fssnap can be used as a compression tool?
sorry if this is a stupid question.
# 2  
Old 01-02-2010
fssnap is tool used to "freeze" state of filesystem, so it can be backuped. When snapshot is created it will contain image of filesystem like it was in time of creation. File you mentioned (/snapshotdir/snapshot0) contains backstore data that is needed for this purpose, like when you change some files in snapshotted filesystem, then original data is copied to the /snapshotdir/snapshot0, so it is possible to see old data when mounting /dev/fssnap/0. So when there are no changes done to filesystem, then there is no data written in /snapshotdir/snapshot0. As for mounting /dev/fssnap/0... It is mostly done by mounting unchanged data from original filesystem in read only mode, and then applying backup bits from backstore file when something changed in data after snapshot creation.
# 3  
Old 01-03-2010
thank you for your reply.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Pls. help with fssnap - Solaris

Hi, I have used Solaris but new to ZFS. I need to backup the root volume using fssnap. zpool list NAME SIZE ALLOC FREE CAP HEALTH ALTROOT pool5 808G 552G 256G 68% ONLINE - rpool 136G 20.9G 115G 15% ONLINE - zfs list NAME USED... (3 Replies)
Discussion started by: samnyc
3 Replies

2. Solaris

Question with Solaris Crash Analysis Tool with Solaris 9

Hello all. I am new hear and would like to ask a question regarding to the Solaris Crash Analysis Tool. We are analyzing the results of "thread summary" but not quite sure what the asterisk represents. Following are the items that asterisk were attached. 50* threads sleeping on a semaphore (49... (1 Reply)
Discussion started by: YuW
1 Replies

3. Solaris

Backing up using fssnap and ufsdump

Hi all! Here's my situation: I need to backup a running system before I can bring it down I've tried performing a ufsdump while it's in multi-user mode but my ufsdump fails because there is too much activity on the system. So I read that I could use fssnap to create a snapshot of (in my... (3 Replies)
Discussion started by: Keepcase
3 Replies

4. Shell Programming and Scripting

Making a fssnap of / and /var

Hello to everyboyd i have a list of filesystem that i want to do a fssnap the idea is the bakcup / /var /dbo /Free The logic is when i do a fssnap of / or /dbo or /Free the file that generetes the fssnap goes to /var but when i do a fssnap of /var goes to /(and some folder). Can anybody... (0 Replies)
Discussion started by: enkei17
0 Replies

5. Solaris

Confused about fssnap

Hello All, I am confused about the below outputs when I have tried fssnap output using diff path. bash-3.00# /usr/lib/fs/ufs/fssnap -i ============>> o/p 1 Snapshot number : 0 Block Device : /dev/fssnap/0 Raw Device :... (0 Replies)
Discussion started by: vaibhav.kanchan
0 Replies

6. Infrastructure Monitoring

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (7 Replies)
Discussion started by: naw_deepak
7 Replies

7. Solaris

Network monitoring tool for Solaris 10

Hi All, I was wondering if there is any Network Monitoring Tool for Solaris 10 to monitor a network having hybrid operating systems. I just googled it without success. Hope, experts will guide me to get it. Thanks, Deepak (0 Replies)
Discussion started by: naw_deepak
0 Replies

8. Solaris

fssnap ioctl error

For some reason when I try to take a snapshot of the root slice on a particular machine I get an ioctl 22 error. I can't seem to find much on the problem by searching the internet other than some realtime processes such as ntp that use mlock can cause this to happen. I tried running it with truss... (2 Replies)
Discussion started by: ilikecows
2 Replies

9. Solaris

NTFS Compression on Solaris

Is there something similar on Solaris to windows NTFS compression where by the OS handles compression\decompression?This applies to my college web account so I can't change the partition setup etc. Thanks, Ger. (1 Reply)
Discussion started by: gleesonger
1 Replies

10. Solaris

Solaris 8 partition - compression

Hi, Anyone know if I have a mount point /data , can it turn on compression like what the MS Windows does ???? Thanks (2 Replies)
Discussion started by: civic2005
2 Replies
Login or Register to Ask a Question