linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Wrong device name after hot-swap
@ 2016-01-22 21:55 Paul van der Vlis
  2016-01-22 22:27 ` Phil Turmel
  2016-01-23 14:45 ` Wols Lists
  0 siblings, 2 replies; 5+ messages in thread
From: Paul van der Vlis @ 2016-01-22 21:55 UTC (permalink / raw)
  To: linux-raid

Hello,

I want to put bigger disks into my server. What I want to do is replace
the first disk, rebuild the raid, replace the second disk, rebuild the
raid. The machine has two disks, sda and sdb.

But, when I replace a disk, it gets a new device name. E.g. /dev/sdb
becomes /dev/sdc. After a reboot it's good again, but I prefer not to
reboot this machine!

Is there a way to get the correct device name?

When not:
Is it maybe an idea too add the wrong device name to the md-device?
mdadm /dev/md0 -a /dev/sdc1
Then replace /dev/sda what becomes /dev/sdd:
mdadm /dev/md0 -a /dev/sdd1
Then restore grub on both disks (with "--recheck" ??)
But what will happen after a reboot later? Will the md-device be
restored with the old names?

With regards,
Paul van der Vlis.

-- 
Paul van der Vlis Linux systeembeheer Groningen
https://www.vandervlis.nl/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-23 14:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-22 21:55 Wrong device name after hot-swap Paul van der Vlis
2016-01-22 22:27 ` Phil Turmel
2016-01-22 23:15   ` Paul van der Vlis
2016-01-23  0:51     ` Phil Turmel
2016-01-23 14:45 ` Wols Lists

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).