从恢复的驱动器恢复 VG 配置

从恢复的驱动器恢复 VG 配置

必须在具有三个 RAID 1 阵列的服务器上重新安装 CentOS。我在sda(300g)上安装了操作系统,并保留了sdb和sdc(它们没有被格式化或以其他方式摆弄)。

操作系统已经启动,但我已经无法挂载数据驱动器,大概是因为 vg 配置没有被继承。我没有备份 VG 配置,但看来我可能已经恢复了它dd

在下面的代码片段中,LogVol05、LogVol03 和 LogVol02 是先前安装的卷名称。

第一的,下面的配置看起来基本正常吗?

第二,如果看起来不错,我该如何将其合并到现有的 VG 配置中?

logical_volumes {
LogVol05 {
id = "ZdFwA8-lj4Y-XwD0-hFMB-iHf8-kZdo-VfJy89"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "ursula2012"
creation_time = 1378846949
segment_count = 2

segment1 {
start_extent = 0
extent_count = 471858

type = "striped"
stripe_count = 1    # linear

stripes = [
"pv1", 0
]
}
segment2 {
start_extent = 471858
extent_count = 225240

type = "striped"
stripe_count = 1    # linear

stripes = [
"pv2", 0
]
}
}
id = "Ex8O6x-y9bt-nDDZ-tqfM-L5hG-GKPM-O1YcsS"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "ursula2012"
creation_time = 1378847075
segment_count = 1

segment1 {
start_extent = 0
extent_count = 15000

type = "striped"
stripe_count = 1    # linear

stripes = [
"pv0", 0
]
}
}

LogVol03 {
id = "o2RB9c-Idd9-WGCT-54o4-e2ZZ-EtBn-q8s9Vo"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "ursula2012"
creation_time = 1378847083
segment_count = 1

segment1 {
start_extent = 0
extent_count = 15000

type = "striped"
stripe_count = 1    # linear

stripes = [
"pv0", 15000
]
}
}
LogVol02 {
id = "Szb39M-Kp37-j5di-kY9I-g2VV-SOkk-oMj1d0"
status = ["READ", "WRITE", "VISIBLE"]
flags = []
creation_host = "ursula2012"
creation_time = 1378847092
segment_count = 1

segment1 {
start_extent = 0
extent_count = 37500

type = "striped"
stripe_count = 1    # linear

stripes = [
"pv0", 30000
]
}
}
}
}
# Generated by LVM2 version 2.02.98(2)-RHEL6 (2012-10-15): Tue Sep 10 17:04:52 2013

contents = "Text Format Volume Group"
version = 1

description = ""

creation_host = "ursula2012"    # Linux ursula2012 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64
creation_time = 1378847092  # Tue Sep 10 17:04:52 2013

相关内容