在系统上运行 zfs,我的根分区一直在缩小,似乎没有任何解释。我现在已经没有空间了,找不到所有的东西去了哪里。
一个简单的 df 显示以下内容(您可以忽略电视文件系统,我只关心根):
[root@SV02 /]# df -h
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/opus-2457409-2017-11-07-release
90G 6.6G 35G 16% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 11G 404K 11G 1% /etc/svc/volatile
objfs 0K 0K 0K 0% /system/object
bootfs 0K 0K 0K 0% /system/boot
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
/usr/lib/libc/libc_hwcap1.so.1
41G 6.6G 35G 16% /lib/libc.so.1
fd 0K 0K 0K 0% /dev/fd
swap 11G 4K 11G 1% /tmp
swap 11G 60K 11G 1% /var/run
TV05 168T 41K 11T 1% /TV05
TV05/Media05 168T 155T 11T 94% /TV05/Media05
TV05/OpenDrives 168T 1.1T 11T 9% /TV05/OpenDrives
TV08 54T 53K 2.2T 1% /TV08
TV08/Media08 54T 24T 383G 99% /TV08/Media08
TV08/MxSFX 54T 26T 383G 99% /TV08/MxSFX
TV08/RMedia04 54T 51K 383G 1% /TV08/RMedia04
rpool/export 90G 32K 35G 1% /export
rpool/export/home 90G 86K 35G 1% /export/home
rpool/export/home/open
90G 404M 35G 2% /export/home/open
rpool 90G 43K 35G 1% /rpool
使用/可用似乎不一致......
试图追踪它:
[root@SV02 /]# du -sh *
0K bin
10M boot
10M core
2.0M dev
430K devices
58M etc
405M export
0K home
141M kernel
48M lib
2K media
24K mnt
3K Mounts
0K net
1.5G opt
174M platform
3.6G proc
4K rmdisk
10M root
23K rpool
1.9M sbin
2K scripts
5.1M system
12K tmp
1.5G usr
3.1G var
好吧,那里什么都没有...以为可能是快照,但情况似乎并非如此:
[root@SV02 /]# zfs list -t all
NAME USED AVAIL REFER MOUNTPOINT
TV05 156T 11.4T 41.2K /TV05
TV05/Media05 155T 11.4T 155T /TV05/Media05
TV05/OpenDrives 1.09T 11.4T 1.09T /TV05/OpenDrives
TV08 52.1T 2.16T 53.1K /TV08
TV08/Media08 24.4T 385G 24.4T /TV08/Media08
TV08/MxSFX 25.9T 385G 25.9T /TV08/MxSFX
TV08/RMedia04 51.5K 385G 51.5K /TV08/RMedia04
rpool 55.5G 34.6G 43.5K /rpool
rpool/ROOT 38.6G 34.6G 31K legacy
rpool/ROOT/C_Backup1 1.24M 34.6G 5.61G /
rpool/ROOT/C_backup2 1.33M 34.6G 5.61G /
rpool/ROOT/napp-it-0.8l3 3.00M 34.6G 2.10G /
rpool/ROOT/napp-it-0.9e1 1.66M 34.6G 5.61G /
rpool/ROOT/nfsv4 54K 34.6G 2.11G /
rpool/ROOT/openindiana 18.3M 34.6G 2.02G /
rpool/ROOT/opus-2457044-2015-01-31-install 65.4M 34.6G 31.6G /a
rpool/ROOT/opus-2457044-2015-01-31-preinstall 1K 34.6G 5.61G /
rpool/ROOT/opus-2457044-2015-05-19-pre15 45K 34.6G 6.32G /
rpool/ROOT/opus-2457044-2016-10-03-backup 52K 34.6G 31.3G /
rpool/ROOT/opus-2457409-2016-10-04-install 15.5M 34.6G 31.7G /a
rpool/ROOT/opus-2457409-2016-10-04-preinstall 52K 34.6G 31.5G /
rpool/ROOT/opus-2457409-2017-11-07-release 38.5G 34.6G 6.57G /
rpool/ROOT/opus-2457409-2017-11-07-release@install 4.40M - 1.56G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-02-25-22:01:25 6.64M - 1.58G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-02-25-22:05:33 84.6M - 2.02G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-03-19-23:25:59 58.0M - 2.11G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-04-12-17:55:40 0 - 2.10G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-04-12-17:55:48 0 - 2.10G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-04-12-18:13:10 1.44M - 2.10G -
rpool/ROOT/opus-2457409-2017-11-07-release@2014-04-12-18:14:31 2.17M - 2.12G -
rpool/ROOT/opus-2457409-2017-11-07-release@2015-01-31-21:55:47 15.3M - 5.61G -
rpool/ROOT/opus-2457409-2017-11-07-release@2015-01-31-22:34:52 9.18M - 5.61G -
rpool/ROOT/opus-2457409-2017-11-07-release@2015-01-31-22:43:54 362K - 5.61G -
rpool/ROOT/opus-2457409-2017-11-07-release@2015-01-31-22:44:05 362K - 5.61G -
rpool/ROOT/opus-2457409-2017-11-07-release@2015-05-19-21:49:36 227M - 6.32G -
rpool/ROOT/opus-2457409-2017-11-07-release@2016-10-04-16:11:30 3.15M - 31.3G -
rpool/ROOT/opus-2457409-2017-11-07-release@2016-10-04-16:34:30 936K - 31.5G -
rpool/ROOT/opus-2457409-2017-11-07-release@2016-10-04-16:34:42 986K - 31.5G -
rpool/ROOT/opus-2457409-2017-11-07-release@2016-10-04-16:53:00 112M - 31.8G -
rpool/ROOT/pre_napp-it-0.8l3 35K 34.6G 1.58G /
rpool/ROOT/pre_napp-it-0.9e1 71K 34.6G 2.10G /
rpool/ROOT/sv02-4-10-14 70K 34.6G 2.10G /
rpool/ROOT/sv02-4-10-14-v2 4.17M 34.6G 2.12G /
rpool/dump 8.00G 34.6G 8.00G -
rpool/export 404M 34.6G 32K /export
rpool/export/home 404M 34.6G 86.5K /export/home
rpool/export/home/open 404M 34.6G 404M /export/home/open
rpool/swap 8.50G 43.0G 132M -
34 场演出,但我不知道在哪里?重新启动后它会持续存在,而且我最近没有删除任何大文件或任何东西,所以不要认为这是一个保留任何东西的过程......
答案1
根据发布的数据,这是您的根分区:
... Size Used Available Capacity Mounted on
... 90G 6.6G 35G 16% /
从您发布的内容来看,您的根分区远没有空间不足。为什么您认为空间不足?
(作为答案发布,因为注释不提供格式化代码的能力,因此强调发布数据的重要部分)
答案2
zfs list
协调和的输出总是有点困难df
。
从df
:
Filesystem Size Used Available Capacity Mounted on
rpool/ROOT/opus-2457409-2017-11-07-release
90G 6.6G 35G 16% /
此输出显示池的容量、特定“设备”(ZFS 数据集)的使用量以及池中还有多少可用空间。
从zfs list
:
NAME USED AVAIL REFER MOUNTPOINT
rpool 55.5G 34.6G 43.5K /rpool
rpool/ROOT/opus-2457409-2017-11-07-release 38.5G 34.6G 6.57G /
在这里,我们可以看到根数据集本身消耗了 6.6G(包括其所有子数据集为 38.5G),这与 中的“已使用”列相匹配df
。 34.6G匹配df
35G。 Size 来自顶级数据集,它及其所有子数据集使用了 55.5G,并且有 34.6G 可用(= 90G)。
因此,您的可用空间可以在池中任何您想要使用的地方使用。