My Oracle Support Banner

使用"du"和"acfs util snapinfo"获取已使用空间的巨大区别 (Doc ID 2533833.1)

Last updated on JULY 31, 2019

适用于:

Oracle Database - Enterprise Edition - 版本 12.1.0.2 和更高版本
本文档所含信息适用于所有平台

症状

acfsutil snap info显示snapshot使用了1.69TB,而"du"报告使用了235GB。

[root@test ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/xvda2             55G   35G   18G  67% /
tmpfs                  48G  1.2G   46G   3% /dev/shm
/dev/xvda1            452M   59M  371M  14% /boot
/dev/xvdb1             92G   51G   37G  59% /u01
/dev/asm/datastore-231
                     2.1T  2.0T   53G  98% /u02/app/datastore

 

 

 

 root@test datastore]# acfsutil snap info /u02/app/datastore
snapshot name:               TEST1
snapshot location:           /u02/app/datastore/.ACFS/snaps/TEST1
RO snapshot or RW snapshot:  RW
parent name:                 /u02/app/datastore
snapshot creation time:      Thu Jul 19 21:59:34 2018

snapshot name:               TEST2
snapshot location:           /u02/app/datastore/.ACFS/snaps/TEST2
RO snapshot or RW snapshot:  RW
parent name:                 /u02/app/datastore
snapshot creation time:      Mon Jul 30 14:41:38 2018

snapshot name:               TEST3
snapshot location:           /u02/app/datastore/.ACFS/snaps/TEST3
RO snapshot or RW snapshot:  RW
parent name:                 /u02/app/datastore
snapshot creation time:      Thu Jan  4 11:25:03 2018

snapshot name:               TEST4
snapshot location:           /u02/app/datastore/.ACFS/snaps/TEST4
RO snapshot or RW snapshot:  RW
parent name:                 /u02/app/datastore
snapshot creation time:      Thu Feb  8 15:30:01 2018

snapshot name:               TEST5
snapshot location:           /u02/app/datastore/.ACFS/snaps/TEST5
RO snapshot or RW snapshot:  RW
parent name:                 /u02/app/datastore
snapshot creation time:      Thu Jan  4 19:25:59 2018

   number of snapshots:  5
   snapshot space usage: 1866378080256  (   1.69 TB )

 

 

[root@test ~]# cd /u02/app/datastore/.ACFS/snaps/
[root@test snaps]# du -h --max-depth=1
4.0K ./TEST1
1.8G ./TEST2
17G ./TEST3
194G ./TEST4
23G ./TEST5
235G .

 

 

原因

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


文档内容
症状
原因
解决方案
参考

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.