dell 420服务器突然不能上电,机房无备用设备;机房代维拆硬盘(硬盘C)后闪送至公司。(怀疑是电源故障)
非重实时服务,服务器单硬盘raid0
硬盘安装
方案1:相同硬件服务器,旁路挂载硬盘C。本文方法
要点:
a.raid卡需要导入硬盘C的raid信息
在界面找到import相关的选项导入即可
b.raid启动顺序为恢复用服务器原系统
方案2:其他服务器最好作为non-raid盘接入系统
提示:raid里注意看硬盘品牌和型号容量
硬件接入后就是软问题了
fdisk -l
Disk /dev/sdb: 299.4 GB, 299439751168 bytes, 584843264 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000f3377
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 1026047 512000 83 Linux
/dev/sdb2 1026048 33927167 16450560 82 Linux swap / Solaris
/dev/sdb3 33927168 138784767 52428800 83 Linux
/dev/sdb4 138784768 584843263 223029248 5 Extended
/dev/sdb5 138786816 584843263 223028224 83 Linux
Disk /dev/sdc: 299.4 GB, 299439751168 bytes, 584843264 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00042065
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 2099199 1048576 83 Linux
/dev/sdc2 2099200 584843263 291372032 8e Linux LVM
Disk /dev/sda: 146.8 GB, 146815733760 bytes, 286749480 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0008e102
Device Boot Start End Blocks Id System
/dev/sda1 63 286744184 143372061 83 Linux
查看是否已经识别到了硬盘
sdc为需要导出数据的硬盘
系统未安装lvm工具先安装
yum install lvm2 -y
寻找需要vg
vgscan
Reading volume groups from cache.
Found volume group "centos" using metadata type lvm2
激活vg
vgchange -ay
现在 系统下就有对应的挂载设备了
ll /dev/centos/
total 0
lrwxrwxrwx 1 root root 7 Feb 16 20:53 home -> ../dm-1
lrwxrwxrwx 1 root root 7 Feb 16 20:53 root -> ../dm-2
lrwxrwxrwx 1 root root 7 Feb 16 20:53 swap -> ../dm-0
挂载
mkdir /mnt/root
mkdir /mnt/home
mount /dev/centos/root /mnt/root
mount /dev/centos/home /mnt/home
ok 倒数据
标签:raid,bytes,dev,旁路,lvm,512,root,硬盘,size From: https://blog.51cto.com/axe999/6063957