当前位置:网站首页>How to mount the original data disk without damage after the reinstallation of proxmox ve?
How to mount the original data disk without damage after the reinstallation of proxmox ve?
2022-07-07 17:11:00 【It madman log】
Before, some customers needed remote technical support ——Proxmox VE Virtual server for , The SSD is broken ,PVE The system itself and several virtual server systems , It's all lost , Fortunately, the data is in the mechanical hard disk , The customer replaced a new solid state drive , And reinstalled PVE, But it will not mount the original data hard disk back .
According to the customer's request , He remotely controlled his computer with sunflowers , Then through his computer , Connect to PVE,fdisk-ll The command looks at the disk partition , It is found that SSD is normal PVE Partition , It should be the partition table automatically created during installation ;
The partition table is not found in the mechanical hard disk , Judging from this , This mechanical hard disk was not a direct drive , Instead, a virtual disk is created on it , Use virtual server to store data .
If you need a new physical hard disk , Then you can carry out orders :ls /dev/disk/by-id, Look at the physical hard disk
And then use qm set Command to mount the hard disk , Example :qm set 100 --sata1 /dev/disk/by-id/ata-WDC_WD5000AADS-00S9B0_WD-WCAV94178418
If the pass through physical disk already has partitions , You can also use this command to mount :qm set 100 --sata1 /dev/sdb
Now the situation is , Physical disk has no partition table , But there are previous PVE Virtual disk created , It can also be directly mounted to a new virtual machine , And the data won't be lost , An example command is as follows :
fdisk -ll, Display all disk information
qm set 100 --sata1 /dev/xxxxx, If there is more than one piece sata2、sata3, Not enough ide0、ide1……, But don't use scsi, The system may not directly recognize , Also install the driver , More trouble .
The customer's request is to retrieve the data in the virtual disk , therefore , This completes the task .
however , In fact, there is another situation , Not mentioned above , It's the original mechanical hard disk , perform fdisk -ll command , Partition table , But do not directly display virtual disks , Then you need different methods to import virtual disks , Retrieve the original data .
As shown in the figure below , The original SSD is broken , new 120G Solid state installed PVE, It is also an automatically generated partition table ; The original 2T Mechanical drive , It shows that there is a partition :sda1;
Because the situation is unknown , First, mount it directly ;
Anyway, mechanical hard disk is always used , So the editor FSTAB file , It is configured to mount automatically after startup ;
Mount it directly to the virtual server , See if there's any data ; Actually mount after ,ls Orders can be read , But the customer thinks it is more intuitive to mount to the virtual server .
After hanging it up , Start the virtual server , As a result, I only saw a few raw file , That's virtual disk , Look at the data file inside , Further operation is required ; Shut down the virtual server , Delete this disk ; use qm importdisk Command to import virtual disks for the virtual server :
Then edit the virtual machine hardware configuration , hold “ Unused disks ” Confirm to add to the virtual server ;
see local-lvm, Confirm the virtual disk information ;
Last , The virtual server starts , Check whether the virtual disk is imported correctly , Whether the data file can be accessed normally ;
Multiple virtual disks repeat qm importdisk, You can import the same virtual server , Or import the corresponding virtual server , Generally, data will not be lost .
It's worth reminding : Recommended configuration PVE colony , To improve data security and service coherence .
边栏推荐
- 掌握这套精编Android高级面试题解析,oppoAndroid面试题
- Interface oriented programming
- [Seaborn] combination chart: pairplot and jointplot
- Sator launched Web3 game "satorspace" and launched hoobi
- LeetCode 1774. The dessert cost closest to the target price is one question per day
- Notes on installing MySQL in centos7
- QML beginner
- LeetCode 1186. 删除一次得到子数组最大和 每日一题
- Pisa-Proxy SQL 解析之 Lex & Yacc
- LocalStorage和SessionStorage
猜你喜欢
skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配
Temperature sensor chip used in temperature detector
node:504报错
Sator推出Web3游戏“Satorspace” ,并上线Huobi
QT中自定义控件的创建到封装到工具栏过程(二):自定义控件封装到工具栏
How to add aplayer music player in blog
SIGGRAPH 2022最佳技术论文奖重磅出炉!北大陈宝权团队获荣誉提名
skimage学习(3)——使灰度滤镜适应 RGB 图像、免疫组化染色分离颜色、过滤区域最大值
The latest interview experience of Android manufacturers in 2022, Android view+handler+binder
字节跳动高工面试,轻松入门flutter
随机推荐
LeetCode 152. 乘积最大子数组 每日一题
[designmode] flyweight pattern
LeetCode 152. Product maximum subarray daily question
掌握这个提升路径,面试资料分享
QT中自定义控件的创建到封装到工具栏过程(二):自定义控件封装到工具栏
Sator launched Web3 game "satorspace" and launched hoobi
Sator a lancé le jeu web 3 "satorspace" et a lancé huobi
dapp丨defi丨nft丨lp单双币流动性挖矿系统开发详细说明及源码
LeetCode-SQL第一天
第九届 蓝桥杯 决赛 交换次数
skimage学习(3)——Gamma 和 log对比度调整、直方图均衡、为灰度图像着色
typescript ts基础知识之tsconfig.json配置选项
【饭谈】Web3.0到来后,测试人员该何去何从?(十条预言和建议)
LeetCode 1477. 找两个和为目标值且不重叠的子数组 每日一题
LeetCode 120. 三角形最小路径和 每日一题
最新2022年Android大厂面试经验,安卓View+Handler+Binder
Flask搭建api服务
Process from creation to encapsulation of custom controls in QT to toolbar (I): creation of custom controls
Notes on installing MySQL in centos7
LeetCode 1031. 两个非重叠子数组的最大和 每日一题