[linux-lvm] lvm - problem replacing failed disk
Alasdair G Kergon
agk at redhat.com
Fri Jun 16 18:43:56 UTC 2006
On Thu, Jun 15, 2006 at 03:41:20PM -0600, Steven Mosimann wrote:
> (1) Replaced the failed disk with one of the same size
> (2) Used pvcreate to make the same physical volumes on the new disk
> that were present on the failed disk. Example of the actual command I
> used was:
> pvcreate --uuid xxxxx /dev/sdb1
> where xxxxx was the pv uuid from pvdisplay
Missing the --restorefile arg there (for safety - if it was originally
created by lvm2 with default options it'll make no difference).
Missing a 'vgcfgrestore' step.
> (3) Used vgchange -a y -P to activate the volume group
No need for -P here. That's what you use if you *don't* do steps 1 and 2 etc.
Alasdair
--
agk at redhat.com
More information about the linux-lvm
mailing list