- 论坛徽章:
- 0
|
错误删除逻辑卷的问题
原帖由 "xichenx" 发表:
把一个逻辑卷用rm命令删除了在/dev/vg00下的设备名
没有用lvremove。
现在用pvdisply可以看到有一部分的快显示为:
00848 current ??? 00000
请问如何解决这个问题:
如果要删除该逻辑卷,释放..........
Hi,
There is way to recover your lv. I use vg02 lvol4 as my example. I don't know if you removed both the character special device and the block special device but I'll illustrate both.
as root
cd /dev/vg02
mknod lvol4 b 64 0x020004
mknod rlvol4 c 64 0x020004
chmod 640 lvol4 rlvol4
chown root:sys lvol4 rlvol4
The first 4 hex digits in the minor device number following the 0x should match all the remaining entries and the last 2 should indicate which logical volume from 01 through ff.
After you create the device files, you can then use "lvremove" to gracefully remove the lv and recover the disk space.
Hope this helps. |
|