[OpenIndiana-discuss] how to release OS disk space?
Dang Zhiqiang
c_dddd at 163.com
Fri Apr 4 08:47:40 UTC 2014
Thank you very much.
At 2014-04-04 16:02:32,"Jim Klimov" <jimklimov at cos.ru> wrote:
>On 2014-04-04 09:52, Dang Zhiqiang wrote:
>>>> yes, rpool1 is rather very small, It's a small DOM.
>>>> but two week ago, I have more than 800M free space, and I only test
>>>> heartbeat, not create any other files.
>
>Did you try the basic Unix tools such as "du"? I.e.
>
>:; du -ks /* /usr/* /var/* /opt/*
>
>You might also try "find / -type f" with "-newer $referencefile" or
>just "-mtime $days" to see what files have changed recently.
>
>In your case I'd expect that something in /var/* gets filled up, such
>as logs, crash or cores. Or maybe the pkg cache pulled something in...
>
>Finally, it may be possible that swap and/or dump got some blocks
>allocated, which would show up as space usage in the pool. However,
>due to default reservations, that space would not have been previously
>seen as available for other datasets (with "df" or "zfs list") anyway.
>
>> # zfs list -t all rpool1
>> NAME USED AVAIL REFER MOUNTPOINT
>> rpool1 3.34G 324M 45.5K /rpool1
>
>You probably wanted to show us "zfs list -t all -r rpool1" (note "-r")?
>Here you provided only the root dataset node, which is basically empty
>(with only a few files for boot configuration).
>
>HTH,
>//Jim
>
>
>_______________________________________________
>OpenIndiana-discuss mailing list
>OpenIndiana-discuss at openindiana.org
>http://openindiana.org/mailman/listinfo/openindiana-discuss
Maybe I found something, why infolog_hival is so big?
root at host2:/var/fm/fmd# ls -lh
total 1.1G
drwxr-xr-x 3 root sys 3 2014-04-01 17:08 ckpt
-rw-r--r-- 1 root root 22K 2014-04-04 10:19 errlog
-rw-r--r-- 1 root root 333 2014-03-21 17:07 fltlog
-rw-r--r-- 1 root root 332 2014-03-21 17:07 infolog
-rw-r--r-- 1 root root 1.1G 2014-04-04 16:31 infolog_hival
drwxr-xr-x 2 root sys 2 2013-07-21 16:20 rsrc
drwxr-xr-x 2 root sys 2 2013-07-21 16:20 xprt
Other output:
root at host2:/usr# df -h
Filesystem Size Used Avail Use% Mounted on
rpool1/ROOT/openindiana-1
3.7G 3.4G 320M 92% /
swap 4.0G 364K 4.0G 1% /etc/svc/volatile
/usr/lib/libc/libc_hwcap1.so.1
3.7G 3.4G 320M 92% /lib/libc.so.1
swap 4.0G 16K 4.0G 1% /tmp
swap 4.0G 36K 4.0G 1% /var/run
rpool1/export 320M 32K 320M 1% /export
rpool1/export/home 320M 34K 320M 1% /export/home
rpool1/export/home/aaa
320M 37K 320M 1% /export/home/aaa
rpool1/export/home/dzq
320M 35K 320M 1% /export/home/dzq
rpool1/export/home/hacluster
320M 37K 320M 1% /export/home/hacluster
rpool1 320M 46K 320M 1% /rpool1
root at host2:/usr# du -sk /*
1 /bin
10367 /boot
3 /cdrom
481 /dev
255 /devices
54864 /etc
27 /export
1 /home
157275 /kernel
54521 /lib
3 /media
2 /mnt
1 /net
103625 /opt
181171 /platform
du: cannot access `/proc/2306/fd/3': No such file or directory
du: cannot access `/proc/2306/path/3': No such file or directory
2727557 /proc
46 /root
19 /rpool1
2479 /sbin
5769 /system
2 /tank
36 /tmp
1614974 /usr
1351765 /var
root at host2:/usr# du -sk /usr/*
1 /usr/adm
30 /usr/apache
11482 /usr/apache2
3277 /usr/apr
2150 /usr/apr-util
213461 /usr/bin
49 /usr/ccs
1569 /usr/ddu
2121 /usr/demo
1 /usr/dict
64 /usr/dt
2 /usr/games
36516 /usr/gnu
231 /usr/has
34820 /usr/include
1 /usr/java
102993 /usr/jdk
5304 /usr/kernel
5 /usr/kvm
507398 /usr/lib
33 /usr/local
1 /usr/mail
1 /usr/man
6 /usr/net
1 /usr/news
2 /usr/old
1 /usr/openwin
52329 /usr/perl5
3509 /usr/platform
1 /usr/preserve
10 /usr/proc
1 /usr/pub
2978 /usr/sadm
62269 /usr/sbin
100288 /usr/sfw
362606 /usr/share
1994 /usr/snadm
1 /usr/spool
1 /usr/src
1 /usr/tmp
2 /usr/ucb
104999 /usr/X11
1 /usr/X11R6
2744 /usr/xpg4
root at host2:/usr# du -sk /var/*
1333 /var/adm
8 /var/ai
500 /var/apache2
2 /var/audit
2848 /var/cache
2 /var/cores
3 /var/crash
6 /var/cron
3 /var/db
1128800 /var/fm
2 /var/games
12 /var/idmap
2 /var/inet
23 /var/installadm
5 /var/krb5
4 /var/ld
2 /var/ldap
8 /var/lib
1057 /var/log
2 /var/logadm
7 /var/lp
6 /var/mail
2 /var/news
5 /var/nfs
3 /var/ntp
2 /var/opt
214759 /var/pkg
2 /var/preserve
120 /var/run
1390 /var/sadm
26 /var/saf
5 /var/samba
21 /var/smb
32 /var/spool
756 /var/svc
2 /var/tmp
12 /var/tpm
6 /var/yp
root at host2:/usr# du -sk /opt/*
3932 /opt/DTT
99142 /opt/ha
548 /opt/install-test
2 /opt/SUNWspro
More information about the OpenIndiana-discuss
mailing list