hanpedro
2007-01-25, 04:47 PM CST
I added scsi hard disk (total 2) and move some folders on my fc3 machine. And erased some folder.
After "yum -y update",
[root@www var]# lvscan
Couldn't find device with uuid 'ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB'.
Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
And lvm backup is::
# Generated by LVM2: Wed Jan 24 22:20:30 2007
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing 'vgextend VolGroup00 /dev/sdb1'"
creation_host = "www.dmcatholic.org" # Linux www.dmcatholic.org 2.6.10-1.741_FC3smp #1 SMP Thu Jan 13 16:53:16 EST 2005 i686
creation_time = 1169644830 # Wed Jan 24 22:20:30 2007
VolGroup00 {
id = "4nfh7t-xCpj-5ugt-jQdH-8l9P-uv1D-f8gGVk"
seqno = 4
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 65536 # 32 Megabytes
max_lv = 0
max_pv = 0
physical_volumes {
pv0 {
id = "AQfhFK-cJD9-Lb4H-TEoU-6Ewl-WI85-BTN2Bm"
device = "/dev/sda2" # Hint only
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 1082 # 33.8125 Gigabytes
}
pv1 {
id = "ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB"
device = "/dev/sdb1" # Hint only
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 4375 # 136.719 Gigabytes
}
}
logical_volumes {
LogVol00 {
id = "8QZtZe-B5b7-D3hX-uqEe-z8pG-WfPk-0BlRc2"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 1048 # 32.75 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
LogVol01 {
id = "95eRx9-c6Re-XluX-1oGL-R3SK-UUC6-Xr4jrF"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 32 # 1024 Megabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 1048
]
}
}
}
}
But, I didn't reboot, and can see the folders on new hard disk.
pvcreate -u ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB /dev/sdb1
Will this work and restore uuid for sdb1?
After "yum -y update",
[root@www var]# lvscan
Couldn't find device with uuid 'ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB'.
Couldn't find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
And lvm backup is::
# Generated by LVM2: Wed Jan 24 22:20:30 2007
contents = "Text Format Volume Group"
version = 1
description = "Created *after* executing 'vgextend VolGroup00 /dev/sdb1'"
creation_host = "www.dmcatholic.org" # Linux www.dmcatholic.org 2.6.10-1.741_FC3smp #1 SMP Thu Jan 13 16:53:16 EST 2005 i686
creation_time = 1169644830 # Wed Jan 24 22:20:30 2007
VolGroup00 {
id = "4nfh7t-xCpj-5ugt-jQdH-8l9P-uv1D-f8gGVk"
seqno = 4
status = ["RESIZEABLE", "READ", "WRITE"]
extent_size = 65536 # 32 Megabytes
max_lv = 0
max_pv = 0
physical_volumes {
pv0 {
id = "AQfhFK-cJD9-Lb4H-TEoU-6Ewl-WI85-BTN2Bm"
device = "/dev/sda2" # Hint only
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 1082 # 33.8125 Gigabytes
}
pv1 {
id = "ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB"
device = "/dev/sdb1" # Hint only
status = ["ALLOCATABLE"]
pe_start = 384
pe_count = 4375 # 136.719 Gigabytes
}
}
logical_volumes {
LogVol00 {
id = "8QZtZe-B5b7-D3hX-uqEe-z8pG-WfPk-0BlRc2"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 1048 # 32.75 Gigabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 0
]
}
}
LogVol01 {
id = "95eRx9-c6Re-XluX-1oGL-R3SK-UUC6-Xr4jrF"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 32 # 1024 Megabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv0", 1048
]
}
}
}
}
But, I didn't reboot, and can see the folders on new hard disk.
pvcreate -u ZEvOKn-iabd-NXt6-svoz-6f0L-uA25-t61qEB /dev/sdb1
Will this work and restore uuid for sdb1?