colorday
V2EX  ›  问与答

求救, Redhat 下 /tmp 目录有几个 3G 左右文件,RM 删除文件就卡死

  •  
  •   colorday · Jun 4, 2014 · 4432 views
    This topic created in 4540 days ago, the information mentioned may be changed or developed.
    删除小文件和空文件就没这个问题;

    也试过,rsync -a --delete-before --progress --stats /root/blank.txt /tmp/xxxxx

    也还是死机,只要文件大于1G 就很慢或者死机;

    服务器有做 Raid5,硬盘灯都是正常的;

    求救,没招了。。。。
    5 replies  •  2014-06-04 11:37:39 +08:00
    iCodex
    iCodex
    Jun 4, 2014❤️1
    1
    找出大文件,直接 > /tmp/xxxxx ,然后再删除。
    likuku
    likuku
    Jun 4, 2014❤️1
    2
    cat /dev/null >/tmp/xxx
    colorday
    colorday
    OP
    Jun 4, 2014
    3
    还是很慢 很慢 小文件可以 有可能文件系统有问题 ?
    rrfeng
    rrfeng
    Jun 4, 2014❤️1
    4
    rm 和 rsync --delete 没什么区别

    检查一下文件系统看看?

    新创建一个 1G 文件再删除也慢么还是特定的文件有问题?
    edwinlai
    edwinlai
    Jun 4, 2014❤️1
    5
    可能raid卡问题, 有些卡组raid5特别慢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1630 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 13:36 · PVG 21:36 · LAX 05:36 · JFK 08:36
    ♥ Do have faith in what you're doing.