[linux-lvm] problem
Alasdair G Kergon
agk at uk.sistina.com
Wed Jan 8 17:09:02 UTC 2003
Procedure to follow:
vgcfgbackup -P -f /tmp/vgbackup rootvg
Edit the backup file as follows:
Add "WRITE" to the status line and remove "PARTIAL"
e.g.
status = ["RESIZEABLE", "PARTIAL", "READ"]
becomes
status = ["RESIZEABLE", "READ", "WRITE"]
Remove the whole PV section for your "unknown device"
- referenced as "pv1" in this example.
pv1 {
id = "TBCgjx-ne5X-4fHP-aHqe-dKJR-Vwnb-kjDhWQ"
device = "unknown device" # Hint only
status = ["ALLOCATABLE"]
pe_start = 128
pe_count = 5 # 20 Megabytes
}
Remove the whole LV section for any LVs that refer to the pv you
removed above (pv1 here referenced inside "stripes") e.g.
tmp {
id = "4eTLYv-PTDr-FXvv-58Xk-Q4Th-p8yi-GeKCHr"
status = ["READ", "WRITE", "VISIBLE"]
segment_count = 1
segment1 {
start_extent = 0
extent_count = 3 # 12 Megabytes
type = "striped"
stripe_count = 1 # linear
stripes = [
"pv1", 0
]
}
}
Write the metadata back to disk:
vgcfgrestore -f /tmp/vgbackup rootvg
Alasdair
--
agk at uk.sistina.com
More information about the linux-lvm
mailing list