问题处理

挂载或格式化时提示设备正忙

在格式化的时候, 报 /dev/vdb1 is apparently in use by the system

挂载的时候, 报 /dev/vdb1 is already mounted or /mnt/vdb1 busy

$ mount /dev/vdb1 /mnt/vdb1
mount: /dev/vdb1 is already mounted or /mnt/vdb1 busy
$ mkfs -t ext3 /dev/vdb1
mke2fs 1.42.9 (28-Dec-2013)
/dev/vdb1 is apparently in use by the system; will not make a filesystem here!

使用 dmsetup status 查看dm设备信息

$ dmsetup status
vg_f08a5cd7b4e31c2b93f7d6c385860882-tp_0027aec42ae3a4b5171cc7fddea50bc0: 0 2097152 linear
vg_f08a5cd7b4e31c2b93f7d6c385860882-brick_3d7dc9f1e6346efc7361d0f4ec4ddf8c: 0 4194304 thin 29184 4194303
vg_f08a5cd7b4e31c2b93f7d6c385860882-tp_3d7dc9f1e6346efc7361d0f4ec4ddf8c: 0 4194304 linear
vg_f08a5cd7b4e31c2b93f7d6c385860882-tp_3d7dc9f1e6346efc7361d0f4ec4ddf8c-tpool: 0 4194304 thin-pool 1 10/3072 57/8192 - rw no_discard_passdown queue_if_no_space -

使用 dmsetup remove_all 移除所有dm设备即可

$ dmsetup remove_all
$ dmsetup status
No devices found

MIT Licensed | Copyright © 2018-present 滇ICP备16006294号

Design by Quanzaiyu | Power by VuePress