Skip to contentSkip to conversation

Any way to remove a PV from LV for backup?

linux-lvm bo 2 participants 2 messages Aug 30, 2002

lore
Share & tools
lore

bo

author
#0 lore raw

Hello,

The system has 4 PVs, which belongs to one VG and one LV. I want to remove a disk and replace it with new when the system consumes all of its space then start to use next PV.

Q1: Is it really possible by LVM concept?
Q2: If I have one extra PV I could use "pvmove", but I do not have.
Any way to resolve it?
Q3: Are there any way to replay each PV(backup PV) independently on
the seperate system?

Any other idea or hint?

Thanks,

Bo

#1 lore raw
Quoted 7 lines · bo

Hello,

The system has 4 PVs, which belongs to one VG and one LV. I want to remove a disk and replace it with new when the system consumes all of its space then start to use next PV.

Q1: Is it really possible by LVM concept?

Yes.

Quoted 2 lines

Q2: If I have one extra PV I could use "pvmove", but I do not have.
Any way to resolve it?

Assuming you will enough free PE's in the remaining 3 PV's, you should be able to use pvmove to do this without needing a spare disk to add to the VG. Look at the first 'EXAMPLE' in the manpage for pvmove.

Quoted 2 lines

Q3: Are there any way to replay each PV(backup PV) independently on
the seperate system?

I'm not sure what you mean by 'replay'. If you mean import the volume group and any LV's that reside on that PV, it depends on how the LV's are laid out on the PV. If the LV's are stripped across multiple PV's or if an LV happens to span multiple PV's, then no you can't. I believe its possible to recover LV's if the entire LV resides on a single PV that was removed from the VG...but off the top of my head I don't know how. I know its not as simple as doing a vgimport because it complains about the lack of the other PV's when your missing PV's that made up the VG.

-Don