ONTAP Discussions

df -h command

syedkhan
12,512 Views

I wanted to see all the comumed of volumes in an aggregate

 

i ran df -h and saw the following 

 


Filesystem                                            total             used                   availcapacity                               Mounted on
/vol/ExchMngrsDb7/                            1295GB      1252GB              43GB       97%                             /vol/ExchMngrsDb7/
/vol/ExchMngrsDb7/.snapshot        68GB        485GB            0GB       713%                       /vol/ExchMngrsDb7/.snapshot

 

What I dont Understand is the .snapshot

 

Total is 68GB 

Used is 485 How ?

Availablecap is 0GB 713 % ??

 

 

 

can any one explain me this ? 

12 REPLIES 12

GidonMarcus
12,390 Views

it's precentage from the snap reserve

 

FASNOD01DV> snap reserve oracle_backups_export_01_02
Volume oracle_backups_export_01_02: current snapshot reserve is 1% or 107374180 k-bytes.

 

FASNOD01DV> df -h oracle_backups_export_01_02
Filesystem               total       used      avail capacity  Mounted on
/vol/oracle_backups_export_01_02/    10137GB     2694GB     1407GB      86%  /vol/oracle_backups_export_01_02/
/vol/oracle_backups_export_01_02/.snapshot      102GB      194GB        0GB     190%  /vol/oracle_backups_export_01_02/.snapshot


FASNOD01DV> snap reserve oracle_backups_export_01_02 5


FASNOD01DV> df -h oracle_backups_export_01_02
Filesystem               total       used      avail capacity  Mounted on
/vol/oracle_backups_export_01_02/     9728GB     2602GB     1407GB      86%  /vol/oracle_backups_export_01_02/
/vol/oracle_backups_export_01_02/.snapshot      512GB      194GB      317GB      38%  /vol/oracle_backups_export_01_02/.snapshot

 

Gidi

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
12,376 Views

Mine shows this 

 

netappctrl1> snap reserve ExchangeMBLogs7
Volume ExchangeMBLogs7: current snapshot reserve is 10% or 125627792 k-bytes.

 

 

df -h ExchangeMBLogs7
Filesystem total used avail capacity Mounted on
/vol/ExchangeMBLogs7/ 1078GB 730GB 347GB 68% /vol/ExchangeMBLogs7/
/vol/ExchangeMBLogs7/.snapshot 119GB 401GB 0GB 335% /vol/ExchangeMBLogs7/.snapshot

 

 

I want to know how its calculating 335 % ?

GidonMarcus
12,372 Views

Hi

 

The filer calculated 10% of your 1078GB  as 119GB (or 125627792 k-bytes per the command output).
googles says that  335% of 119 is almost 400. – make sense for the snapshot you got I guess

 

i really don't see how this % figure as itself make any difference for you.
If you trying to save space – look on the snapshot themselves. if you have a deeper concern share it so we can help

 

Gidi

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
12,365 Views

I will share exactly what I need.

 

We have Snapmanager  for exchange through which we take backups and retention is " Do not Delete and Backups" but still I see only last 10 days backups,  with my knowledge I went to the volume and checked the snapshots.

 

There are 10 snapshots same as they are shown in the Snap Manager for Exchange which means if I increase more snapshot space I would see more backups in the snapmanager for exchange.

 

 

GidonMarcus
12,359 Views

Hi

 

 

Snap reserve is not about how much you allow the snapshot to grow. it's about how much you allow the data to grow (and by that. reserving space for snapshots).  

 

Two main things that might causes this:

A. snap autodelete   (ther's a cmmnd as such follow by a vol name)

B. you have another job configured with less retention (like weekly one, or in another node in the DAG) that myabe deleted it.   there was also a few SME bugs with the retention. but the first option i sueggested is very likelly to what you describe..

 

if that still not the solution. need to look on /etc/ems for what deletes it. if it's point to ZAPI look on the SME backup report to see if it's coming from there or not

 

Gidi

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
12,350 Views

I have 3 backups 

 

Daily

Weekly and standard

 

 

 Daily 

 

"C:\Program Files\NetApp\SnapManager for Exchange\SMEJobLauncher.exe" new-backup -Server 'CIGEX7' -ManagementGroup 'Daily' -NoTruncateLogs $False -RetainBackups 8 -StorageGroup 'First Storage Group','Second Storage Group','Finance Storage','HR Storage','Accountant Group','Pharma Group','Sales Group' -Verify  -VerificationServer 'cigex7' -UpdateMirror  -UseMountPoint  -MountPointDir 'C:\Program Files\NetApp\SnapManager for Exchange\SnapMgrMountPoint' -BackupCopyRemoteCCRNode $False.

 

It means keep last 8 backups 

 

Weekly

 

"C:\Program Files\NetApp\SnapManager for Exchange\SMEJobLauncher.exe" new-backup -Server 'CIGEX7' -ManagementGroup 'Weekly' -NoTruncateLogs $False -RetainBackups 5 -StorageGroup 'First Storage Group','Second Storage Group','Finance Storage',''HR Storage','Accountant Group','Pharma Group','Sales Group' -Verify  -VerificationServer 'cigex7' -UpdateMirror  -UseMountPoint  -MountPointDir 'C:\Program Files\NetApp\SnapManager for Exchange\SnapMgrMountPoint' -BackupCopyRemoteCCRNode $False

 

It means keep last 5 backups 

 

 

Standard (Monthly)

 

 

"C:\Program Files\NetApp\SnapManager for Exchange\SMEJobLauncher.exe" new-backup -Server 'CIGEX7' -ManagementGroup 'Standard' -NoTruncateLogs $False -RetainBackups 13 -StorageGroup 'First Storage Group','Second Storage Group','Finance Storage','Accountant Group','Pharma Group','Sales Group' -Verify  -VerificationServer 'cigex7' -UpdateMirror  -UseMountPoint  -MountPointDir 'C:\Program Files\NetApp\SnapManager for Exchange\SnapMgrMountPoint' -BackupCopyRemoteCCRNode $False

 

It means keep last 13 backups 

 

 

 

What I am doing wrong here ?? 

 

 

Thanks once again for guiding me and helping out 

 

GidonMarcus
12,306 Views

Hi

 

Have you checked the “sanp autodelete ExchMngrsDb7” command?

by the look - these shouldn’t be clashing.  And with this configuration if you only see 10 days back ,it’s likely being deleted by chronologic process rather a controlled process like SME. 

Next place to look is EMS logs \\filer\etc$\log\ems to see what delete these.

 

Gidi

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
12,297 Views

here is what snap autodelete says

 

snapshot autodelete settings for ExchMngrsDb7:
state : off
commitment : try
trigger : volume
target_free_space : 20%
delete_order : oldest_first
defer_delete : user_created
prefix : (not specified)
destroy_list : none

 

 

EMS log doesnt shows much still I am attaching it for you in case if I am not able to see something which you can

GidonMarcus
12,287 Views

Hi

 

i don't see the file. but try serching the volume name in. every snapshot delete should be there.   (old EMS files are called EMS.0  / EMS.1 / EMS.2)

 

Gidi

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
10,881 Views

Please see the attached file in case you find any thing

 

https://ufile.io/1e213

GidonMarcus
10,879 Views

Hi

 

in that specific file only the exchsnap__cigex7_10-14-2016_18.00.52__daily SME snapshoot deleted  on 23Oct2016 06:50:58"  (9 days after, your retention for daily is 😎

so looks good. you need to check the older files for the same. zapi_snapshot_delete means it's coming from an external API (like SME using)

 

 

<LR d="23Oct2016 06:50:58" n="netappctrl1" t="1477194658" id="1474441855/79733" p="6" s="Ok" o="SMBRPCWorker08" vf="" type="0" seq="5624587" supp="1" >
<wafl_snap_delete_1
        snap_name="exchsnap__cigex7_10-14-2016_18.00.52__daily"
        type="volume"
        owner=""
        vol="ExchMngrsDb7"
        volident=""
        vendor="NetApp"
        caller_func="zapi_snapshot_delete"
        snapid="234"
        cp_count="11418997"/>
</LR>

<LR d="23Oct2016 06:51:12" n="netappctrl1" t="1477194672" id="1474441855/79735" p="6" s="Ok" o="SMBRPCWorker06" vf="" type="0" seq="5624589" >
<wafl_snap_delete_1
        snap_name="@snapmir@{06CF4E09-9F01-46B9-915E-915479A07B68}"
        type="volume"
        owner=""
        vol="ExchMngrsDb7"
        volident=""
        vendor="NetApp"
        caller_func="zapi_snapshot_delete"
        snapid="8"
        cp_count="11486141"/>
</LR>

<LR d="24Oct2016 10:07:36" n="netappctrl1" t="1477292856" id="1474441855/82750" p="6" s="Ok" o="SMBRPCWorker06" vf="" type="0" seq="5627605" supp="2" >
<wafl_snap_delete_1
        snap_name="@snapmir@{D153EB9F-2F16-40EA-8097-A243AFC08A34}"
        type="volume"
        owner=""
        vol="ExchMngrsDb7"
        volident=""
        vendor="NetApp"
        caller_func="zapi_snapshot_delete"
        snapid="11"
        cp_count="11495695"/>
</LR>

<LR d="25Oct2016 07:06:53" n="netappctrl1" t="1477368413" id="1474441855/85044" p="6" s="Ok" o="SMBRPCWorker04" vf="" type="0" seq="5629904" supp="2" >
<wafl_snap_delete_1
        snap_name="@snapmir@{8A6D2D6A-E7AA-4108-954C-5C548724D60B}"
        type="volume"
        owner=""
        vol="ExchMngrsDb7"
        volident=""
        vendor="NetApp"
        caller_func="zapi_snapshot_delete"
        snapid="14"
        cp_count="11506692"/>
</LR>

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

syedkhan
10,875 Views

Great Great Great :). Hatts offff 

 

 

1) How you came to know that its deleted   (9 days after, your retention for daily is 😎

 

2)  How Can I reserve the space ofr the snapshots ?

 

I am grateful the for the previous answer you replied and also I will mark this answered then I will open a new thread with a diff issue related with SME,  I hope you will go through and satify me.

 

Again its a great pleasure and learning with talented people like and I wish we had great chaps like you on the forums to help people unconditionally.

 

Cheers...

 

 

 

 

 

<LR d="23Oct2016 06:50:58" n="netappctrl1" t="1477194658" id="1474441855/79733" p="6" s="Ok" o="SMBRPCWorker08" vf="" type="0" seq="5624587" supp="1" >
<wafl_snap_delete_1
        snap_name="exchsnap__cigex7_10-14-2016_18.00.52__daily"
        type="volume"
        owner=""
        vol="ExchMngrsDb7"
        volident=""
        vendor="NetApp"
        caller_func="zapi_snapshot_delete"
        snapid="234"
        cp_count="11418997"/>
</LR>




 

Public