Skip to contentSkip to conversation

pvextend

linux-lvm Bastian Blank 2 participants 6 messages Jul 8, 2005 – Jul 10, 2005

lore
Share & tools
lore
#0 lore raw

Hi folks

I found some mails about a pvextend but noone implemented it. If I see it correctly, I just need to change the value of pe_count and commit the metadata, correct?

If yes, a poor mans pvextend is vi and pvcreate with the changed metadata backup.

Bastian

Signature · 2 lines
Respect is a rational process
		-- McCoy, "The Galileo Seven", stardate 2822.3
#1 lore raw
Quoted 1 line · Bastian Blank

I found some mails about a pvextend but noone implemented it. If I see

pvresize

Quoted 2 lines

it correctly, I just need to change the value of pe_count and commit the metadata, correct?

No:-)

Quoted 2 lines

If yes, a poor mans pvextend is vi and pvcreate with the changed metadata backup.

Yes.

vgcfgbackup
edit file
pvcreate --restorefile --uuid
vgcfgrestore

A pvresize command needs to implement that same sequence of commands internally. (similar to the way vgconvert works)

Alasdair

Signature · 1 line
[email protected]
#2 lore raw
Quoted 4 lines · Alasdair G Kergon
Quoted 2 lines · Bastian Blank

it correctly, I just need to change the value of pe_count and commit the metadata, correct?

No:-)

Hmm?

Quoted 2 lines

A pvresize command needs to implement that same sequence of commands internally. (similar to the way vgconvert works)

Hmm, it is not possible to change the number of PEs directly?

Bastian

Signature · 2 lines
There is an order of things in this universe.
		-- Apollo, "Who Mourns for Adonais?" stardate 3468.1
#3 lore raw
Quoted 1 line · Bastian Blank

Hmm, it is not possible to change the number of PEs directly?

Not without some tricky internal library changes.

Alasdair

Signature · 1 line
[email protected]
#4 lore raw
Quoted 3 lines · Alasdair G Kergon
Quoted 1 line · Bastian Blank

Hmm, it is not possible to change the number of PEs directly?

Not without some tricky internal library changes.

Hmm, why is this tricky?

Bastian

Signature · 2 lines
There's coffee in that nebula!
		-- Capt. Kathryn Janeway, Star Trek: Voyager, "The Cloud"
#5 lore raw
Quoted 1 line · Bastian Blank

Hmm, why is this tricky?

The device size is stored in two places, the format2 label as well as the VG metadata, and there's no interface for updating the first (atomically/recoverably remember) once the PV is part of a VG.

Alasdair

Signature · 1 line
[email protected]