使用parted命令建立pv不小心删除正在使用的旧pv,需要重启生效
redhat吧
全部回复
仅看楼主
level 1
光大神人 楼主
使用这个命令
parted -s -a optimal /dev/vdb mklabel gpt -- mkpart vdc1 xfs 1 -1
盘符贴错了,这是正在使用的盘,返回结果
Error: Partition(s) 1 on /dev/vdb have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
这个旧pv里还有重要数据,重启的话,就不能用了,请问有什么办法恢复?这个虚机有底层磁盘快照,如果重启,数据丢失,可以用磁盘快照恢复吗?
2023年05月07日 14点05分 1
1