pvextend
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
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_countand 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]
Quoted 4 lines · Alasdair G Kergon
Quoted 2 lines · Bastian Blank
it correctly, I just need to change the value of
pe_countand 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
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]
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"
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]