- Community Home
- >
- HPE Community, Taiwan
- >
- HP-UX
- >
- 系統管理
- >
- 請問一個關於size的問題
系統管理
1752785
會員
6097
線上
108789
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 07-07-2005 12:34 PM
在 07-07-2005 12:34 PM
請問一個關於size的問題
if i want to see disk used size i always used the command du -sk or bdf
in bdf /opt/pdmcorp as below:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 169696 1912456 8% /
/dev/vg00/lvol1 298928 43992 225040 16% /stand
/dev/vg00/lvol6 4194304 696600 3470560 17% /var
/dev/vg00/lvol9 4194304 622960 3543448 15% /var/adm/crash
/dev/vg00/lvol5 2621440 1215408 1395088 47% /usr
/dev/vg00/lvol7 524288 119192 402832 23% /tmp
/dev/vgtest1/lvmtest
5120000 1849614 3072642 38% /test1
/dev/vg00/lvol4 2621440 2059152 558240 79% /opt
/dev/vg00/lvol11 10485760 4330226 5963182 42% /o9i
/dev/vg00/lvol8 524288 32768 487696 6% /home
/dev/vg_wo9i/lv_wo9i01
67133440 30570608 36277248 46% /wo9i/datafile
/dev/vg_wo9i/lv_wo9i02
26214400 15466844 10579632 59% /wo9i/index
/dev/vg_wo9i/lv_wo9i03
11476992 2167088 9019654 19% /wo9i/archive
/dev/vg_wmeta/lv_wmeta
6283264 1188520 5054968 19% /opt/pdmwrg01
but in du -sk /opt/pdmwrg01
1184760 /opt/pdmwrg01
used du -sk /opt/pdmwrg01 is 1184760
used bdf /opt/pdmwrg01 is 1188520
what is the correct ? and can you tell me the different ??
in bdf /opt/pdmcorp as below:
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 2097152 169696 1912456 8% /
/dev/vg00/lvol1 298928 43992 225040 16% /stand
/dev/vg00/lvol6 4194304 696600 3470560 17% /var
/dev/vg00/lvol9 4194304 622960 3543448 15% /var/adm/crash
/dev/vg00/lvol5 2621440 1215408 1395088 47% /usr
/dev/vg00/lvol7 524288 119192 402832 23% /tmp
/dev/vgtest1/lvmtest
5120000 1849614 3072642 38% /test1
/dev/vg00/lvol4 2621440 2059152 558240 79% /opt
/dev/vg00/lvol11 10485760 4330226 5963182 42% /o9i
/dev/vg00/lvol8 524288 32768 487696 6% /home
/dev/vg_wo9i/lv_wo9i01
67133440 30570608 36277248 46% /wo9i/datafile
/dev/vg_wo9i/lv_wo9i02
26214400 15466844 10579632 59% /wo9i/index
/dev/vg_wo9i/lv_wo9i03
11476992 2167088 9019654 19% /wo9i/archive
/dev/vg_wmeta/lv_wmeta
6283264 1188520 5054968 19% /opt/pdmwrg01
but in du -sk /opt/pdmwrg01
1184760 /opt/pdmwrg01
used du -sk /opt/pdmwrg01 is 1184760
used bdf /opt/pdmwrg01 is 1188520
what is the correct ? and can you tell me the different ??
3則回覆 3
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 07-07-2005 12:50 PM
在 07-07-2005 12:50 PM
請問一個關於size的問題
Obviously there is a difference in how du and bdf behave.
This may occur if we touch open files.
"du" shows output in a positive view: it shows the number of currently allocated
blocks and counts the blocks you've just deleted as free.
"bdf" has a more negative perspective: it shows the free disk space available.
The difference is here: if a still-active process has allocated blocks (such as
for a logfile that you've just deleted), "bdf" counts these as still occupied.
This won't change until the process closes the file ("deallocates the blocks")
as it usually happens when the process terminates.
Document id: TBRIXKBRC00001367
This may occur if we touch open files.
"du" shows output in a positive view: it shows the number of currently allocated
blocks and counts the blocks you've just deleted as free.
"bdf" has a more negative perspective: it shows the free disk space available.
The difference is here: if a still-active process has allocated blocks (such as
for a logfile that you've just deleted), "bdf" counts these as still occupied.
This won't change until the process closes the file ("deallocates the blocks")
as it usually happens when the process terminates.
Document id: TBRIXKBRC00001367
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 07-08-2005 01:28 PM
在 07-08-2005 01:28 PM
請問一個關於size的問題
可以用 fuser -u /opt/pdmwrg01, 看看到底是什麼 process 還在使用
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款
© 版权所有 2024 慧与发展有限责任合伙企业