Sponsored Content
Operating Systems Solaris Understanding ZFS Snapshots - why will it utilize space ? Post 303013375 by javanoob on Tuesday 20th of February 2018 12:44:45 PM
Old 02-20-2018
Understanding ZFS Snapshots - why will it utilize space ?

Hi all,

I am moving to Solaris11 and is trying to understand how ZFS snapshot works.

Chances upon this Oracle Blog and can't wrap my head around it.
https://blogs.oracle.com/solaris/understanding-the-space-used-by-zfs-v2

Hope gurus here can shed some light .

=======

Here it goes,

I understand snapshot works on copy on write mechanism, so if there isn't any changes, there wouldn't be extra space taken.

q1) Why is it that when file1 is deleted, both snap1 and snap2 isn't utilizing any space ?

Code:
bleonard@os200906:~# rm /tank/file1
bleonard@os200906:~# zpool scrub tank
bleonard@os200906:~# zfs list -t all -r tank
NAME         USED  AVAIL  REFER  MOUNTPOINT
tank         200M   784M   100M  /tank
tank@snap1    17K      -   100M  -
tank@snap2    17K      -   200M  -

Yet when using zfs list as below, it is showing that 100M is use by snapshot
(USEDSNAP - 100M)

Code:
 
 bleonard@os200906:~# zfs list -t all -o space -r tank
NAME        AVAIL   USED  USEDSNAP  USEDDS  USEDREFRESERV  USEDCHILD
tank         784M   200M      100M    100M              0       154K

So when file1 is deleted, snap1 and snap2 is not utilizing any space but 100M is used by snapshots ?...

==============

q2) However, when snap1 is deleted, snap2 will show that it is using 100M of space.. why so ?

Code:
 
 bleonard@os200906:~# zfs destroy tank@snap1
bleonard@os200906:~# zfs list -t all -r tank
NAME         USED  AVAIL  REFER  MOUNTPOINT
tank         200M   784M   100M  /tank
tank@snap2   100M      -   200M  -

SmilieSmilieSmilie
I am sure I am looking at this the wrong way...

Regards,
Noob
 

3 More Discussions You Might Find Interesting

1. Solaris

How to utilize the 2nd hard disk space in x86 solaris 5.10

I have 2 hard disks ,one hard disk(40gb) completely for windows Os,and the other(120gb) for solaris Os. In the second hard disk.I have utilised around 10gb for the solaris installation and also partitioned with the available 10gb space for the solaris x86 OS. Now i need to utilise the... (8 Replies)
Discussion started by: jayaprakash
8 Replies

2. Solaris

Recommended Patch Cluster Using ZFS Snapshots

I have a question regarding installing recommended patch clusters via ZFS snapshots. Someone wrote a pretty good blog about it here: Initial Program Load: Live Upgrade to install the recommended patch cluster on a ZFS snapshot The person's article is similar to what I've done in the past. ... (0 Replies)
Discussion started by: christr
0 Replies

3. Solaris

Permissions to run ZFS Snapshots

Hi, I work as an Oracle Technical consultant (mainly DBA related), and I have used ZFS snapshots on previous projects which has helped me a great deal. I often take snapshots before doing some dev work, and then I can roll it back if I want to start again, or if it goes pear shaped!! I have... (4 Replies)
Discussion started by: AndyG
4 Replies
install-solaris(1M)													       install-solaris(1M)

NAME
install-solaris - install the Solaris operating system SYNOPSIS
install-solaris install-solaris invokes the Solaris Install program. Depending on graphical capability and available memory at the time of invocation, install-solaris invokes either a text-based installer or a graphical installer. The following minimum requirements for physical memory dictate which features are available during installation: For SPARC machines: 128 MB Minimum physical memory for all installation types 128 MB Minimum physical memory required for windowing system 384 MB Minimum physical memory required for graphical-based installation For x86 machines: 256 MB Minimum physical memory for all installation types 256 MB Minimum physical memory required for windowing system 512 MB Minimum physical memory required for graphical-based installation In some cases, even if the minimum physical memory is present, available virtual memory after system startup can limit the number of fea- tures available. install-solaris exists only on the Solaris installation media (CD or DVD) and should be invoked only from there. Refer to the for more details. install-solaris allows installation of the operating system onto any standalone system. install-solaris loads the software available on the installation media. Refer to the for disk space requirements. Refer to the for more information on the various menus and selections. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcdrom (Solaris instal- | | |lation media) | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ pkginfo(1), install(1M), pkgadd(1M), attributes(5) It is advisable to exit install-solaris by means of the exit options in the install-solaris menus. 23 Sep 2005 install-solaris(1M)
All times are GMT -4. The time now is 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy