[code="java"]
# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-rootvol
29741864 24001000 4205684 86% /
/dev/mapper/VolGroup00-varvol
49580256 35801976 11219100 77% /var
/dev/mapper/VolGroup00-optvol
163087624 129386352 25288892 84% /opt
/dev/mapper/VolGroup00-homevol
19838052 8878840 9935212 48% /home
/dev/sda1 4956284 148336 4552116 4% /boot
tmpfs 4082508 0 4082508 0% /dev/shm
利用命令
# du -sh /*|sort -nr
300M /mnt
296K /tmppre_plugin_assign_detail.sql
292M /tmp
144K /dev
135M /lib
124G /opt
116M /etc
92K /hs_err_pid10402.log
48K /1.json
37M /sbin
34G /var
23M /lib64
16K /lost+found
16G /root
12K /t_1.xml
8.5M /bin
8.3G /home
8.0K /srv
8.0K /selinux
8.0K /media
7.1M /boot
7.0G /usr
4.0K /wew.xml
4.0K /wew.tpl
4.0K /test.sh
4.0K /test1.log
4.0K /t_1.tpl
4.0K /fgd.xml
4.0K /fgd.tpl
4.0K /6.tar.gz
4.0K /2012
1.9M /tmp.sql
0 /sys
0 /proc
0 /net
0 /misc
0 /eee
查看占用最大的目录
# du -sh /opt/*|sort -nr
848K /opt/lehecai_soccer_ftp
269M /opt/dell
136K /opt/lsi
106G /opt/deploy
44M /opt/jprofiler6
38M /opt/syslog-ng
36K /opt/script
16K /opt/lost+found
8.8G /opt/download
4.7G /opt/App
1.9G /opt/sphinx
1.9G /opt/mfs
[/code]
加磁盘
# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-rootvol
29741864 24001000 4205684 86% /
/dev/mapper/VolGroup00-varvol
49580256 35801976 11219100 77% /var
/dev/mapper/VolGroup00-optvol
163087624 129386352 25288892 84% /opt
/dev/mapper/VolGroup00-homevol
19838052 8878840 9935212 48% /home
/dev/sda1 4956284 148336 4552116 4% /boot
tmpfs 4082508 0 4082508 0% /dev/shm
利用命令
# du -sh /*|sort -nr
300M /mnt
296K /tmppre_plugin_assign_detail.sql
292M /tmp
144K /dev
135M /lib
124G /opt
116M /etc
92K /hs_err_pid10402.log
48K /1.json
37M /sbin
34G /var
23M /lib64
16K /lost+found
16G /root
12K /t_1.xml
8.5M /bin
8.3G /home
8.0K /srv
8.0K /selinux
8.0K /media
7.1M /boot
7.0G /usr
4.0K /wew.xml
4.0K /wew.tpl
4.0K /test.sh
4.0K /test1.log
4.0K /t_1.tpl
4.0K /fgd.xml
4.0K /fgd.tpl
4.0K /6.tar.gz
4.0K /2012
1.9M /tmp.sql
0 /sys
0 /proc
0 /net
0 /misc
0 /eee
查看占用最大的目录
# du -sh /opt/*|sort -nr
848K /opt/lehecai_soccer_ftp
269M /opt/dell
136K /opt/lsi
106G /opt/deploy
44M /opt/jprofiler6
38M /opt/syslog-ng
36K /opt/script
16K /opt/lost+found
8.8G /opt/download
4.7G /opt/App
1.9G /opt/sphinx
1.9G /opt/mfs
[/code]
加磁盘
pvdisplay
lvdisplay
lvextend -L +50G /dev/VolGroup00/optvol
resize2fs /dev/VolGroup00/optvol
df -lh