[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Removing a failed PV from VG/LV



This is very useful information. I appreciate it Bryn. The link to the
presentation was also particularly valuable.

Now, having read your post, I need to ask: instead of
recovering/moving data off the partial VG, is there a way to just
shrink the existing VG by the size of the missing PV and carry on?

If I set up a loop device and did a pvcreate --uuid, then
vgcfgrestore, vgscan and finally activated the VG and fsck'd the LV,
could I then shrink the filesystem and remove the replacement loop VG?

P.S.
Using LVM2 2.02.70 here and I can't seem to pvcreate on loop:
# pvcreate /dev/loop0
Device /dev/loop0 not found (or ignored by filtering).
# ls -l /dev/loop*
brw-rw---- 1 root disk 7, 0 Sep  2 11:24 /dev/loop0
brw-rw---- 1 root disk 7, 1 Sep  2 09:31 /dev/loop1
brw-rw---- 1 root disk 7, 2 Sep  2 09:31 /dev/loop2
brw-rw---- 1 root disk 7, 3 Sep  2 09:31 /dev/loop3
brw-rw---- 1 root disk 7, 4 Sep  2 09:31 /dev/loop4
brw-rw---- 1 root disk 7, 5 Sep  2 09:31 /dev/loop5
brw-rw---- 1 root disk 7, 6 Sep  2 09:31 /dev/loop6
brw-rw---- 1 root disk 7, 7 Sep  2 09:31 /dev/loop7
# grep -w filter /etc/lvm/lvm.conf
    # A filter that tells LVM2 to only use a restricted set of devices.
    # The filter consists of an array of regular expressions.  These
    # Don't have more than one filter line active at once: only one gets used.
    filter = [ "a/.*/" ]
    # filter = [ "r|/dev/cdrom|" ]
    #filter = [ "a/loop/", "r/.*/" ]
    # filter =[ "a|loop|", "r|/dev/hdc|", "a|/dev/ide|", "r|.*|" ]
    # filter = [ "a|^/dev/hda8$|", "r/.*/" ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]