From: Tomas Vanderka <tomas_vanderka@tempest.sk>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Replacing failed disk in raid volume without hot spare
Date: Wed, 18 Jul 2012 15:49:57 +0200 [thread overview]
Message-ID: <5006BF05.9090305@tempest.sk> (raw)
[-- Attachment #1: Type: text/plain, Size: 3505 bytes --]
Hello,
i created a raid6 volume over 5 disks, with only those 5 in VG. Then I removed 1 disk, rebooted and added a new one. The question is how to replace the missing device with
the new one. All is fine if I have 6th disk in VG as a hot spare, then i can just use "lvconvert --repair".
Tried all of theese, nothing seems to work
[root@lvm ~]# lvconvert --repair test/raid6
Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
Attempt to replace failed RAID images (requires full device resync)? [y/n]: y
Insufficient suitable allocatable extents for logical volume : 87 more required
Failed to allocate replacement images for test/raid6
Failed to replace faulty devices in test/raid6.
This doesn't work with or without /dev/sdg
[root@lvm ~]# lvconvert --replace raid6_rimage_0 test/raid6 /dev/sdg
Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
Cannot change VG test while PVs are missing.
Consider vgreduce --removemissing.
[root@lvm ~]# vgextend --restoremissing test /dev/sdg
Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
WARNING: PV /dev/sdg not found in VG test
No PV has been restored.
My lvm looks like this at the moment
[root@lvm ~]# pvs
Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
PV VG Fmt Attr PSize PFree
/dev/sda2 vg_lvm lvm2 a-- 7.51g 0
/dev/sdc test lvm2 a-- 1020.00m 672.00m
/dev/sdd test lvm2 a-- 1020.00m 672.00m
/dev/sde test lvm2 a-- 1020.00m 672.00m
/dev/sdf test lvm2 a-- 1020.00m 672.00m
/dev/sdg lvm2 a-- 1.00g 1.00g
unknown device test lvm2 a-m 1020.00m 672.00m
[root@lvm ~]# lvs -a -o name,lv_attr,devices test
Couldn't find device with uuid jnGEwl-EVqs-yQ0M-rUxa-gLqD-fHNU-AJUKjl.
LV Attr Devices
raid6 rwi---r- raid6_rimage_0(0),raid6_rimage_1(0),raid6_rimage_2(0),raid6_rimage_3(0),raid6_rimage_4(0)
[raid6_rimage_0] Iwi---r- unknown device(1)
[raid6_rimage_1] Iwi---r- /dev/sdc(1)
[raid6_rimage_2] Iwi---r- /dev/sdd(1)
[raid6_rimage_3] Iwi---r- /dev/sde(1)
[raid6_rimage_4] Iwi---r- /dev/sdf(1)
[raid6_rmeta_0] ewi---r- unknown device(0)
[raid6_rmeta_1] ewi---r- /dev/sdc(0)
[raid6_rmeta_2] ewi---r- /dev/sdd(0)
[raid6_rmeta_3] ewi---r- /dev/sde(0)
[raid6_rmeta_4] ewi---r- /dev/sdf(0)
I also tried doing "vgreduce --removemissing --force" but it just destroys the partial raid volume.
--
Tomas Vanderka
TEMPEST a.s.
Galvaniho 17/B, 821 04 BRATISLAVA
Phone: +421 905 571 691
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 261 bytes --]
next reply other threads:[~2012-07-18 13:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-18 13:49 Tomas Vanderka [this message]
2012-07-19 16:24 ` [linux-lvm] Replacing failed disk in raid volume without hot spare Brassow Jonathan
2012-07-19 18:38 ` Tomas Vanderka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5006BF05.9090305@tempest.sk \
--to=tomas_vanderka@tempest.sk \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.