我的瘦LVM池已经满了,一些程序挂起:
device-mapper: thin: 253:4: reached low water mark, sending event.
device-mapper: thin: 253:4: no free space available.
INFO: task jbd2/dm-6-8:742 blocked for more than 120 seconds.
...
INFO: task java:19262 blocked for more than 120 seconds.为了获得一些空闲空间,我删除了几张薄薄的快照,但是程序没有恢复。
是否有解冻程序/fs/卷的命令?
发布于 2015-04-28 15:16:25
看来这是一种恐慌状态,如果不重新启动就无法解决。
重新启动是很棘手的:即使是reboot --force也不适合我,但是这个脚本是这样的:
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger为了防止恐慌,一些监控工具可以自动删除旧快照或调用fsfreeze,或者两者都调用,但至少在流变6.5中不存在这样的工具。
lvm2-monitor服务只能将警告打印到syslog中:
Apr 28 18:06:16 oktest-prod-lb1 lvm[789]: Thin vg_oktestlb1-pool-tpool is now 80% full.
Apr 28 18:07:26 oktest-prod-lb1 lvm[789]: Thin vg_oktestlb1-pool-tpool is now 85% full.请参见lvm.conf:
# thin_library is the library used when monitoring a thin device.
#
# "libdevmapper-event-lvm2thin.so" monitors the filling of
# pool and emits a warning through syslog when the use of
# the pool exceeds 80%. The warning is repeated when 85%, 90% and
# 95% of the pool is filled.
thin_library = "libdevmapper-event-lvm2thin.so"可以将rsyslog配置为发送电子邮件或对此类消息运行shell命令。
发布于 2015-09-16 22:58:40
只是
lvresize -L +100g oktestlb1/pool或更广泛地说:
lvresize -L +100g volgroup/poolname如果您选择不使用基于事件的自动调整大小,则应立即解除对卷的冻结。当然,你需要在你的光伏空间来做这件事。
https://unix.stackexchange.com/questions/197412
复制相似问题