Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #181108

Re: SATA hotplug + mdadm raid

From deloptes <deloptes@gmail.com>
Newsgroups linux.debian.user
Subject Re: SATA hotplug + mdadm raid
Date 2017-05-18 23:30 +0200
Message-ID <tIB9D-y5-1@gated-at.bofh.it> (permalink)
References <tIwMG-5iy-27@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Sam Smith wrote:

> But I still need to swap the first drive (sda) and I don't really want
> to have to reboot this time. So what can I do to ensure that once I pull
> the old drive and put in the new one that it comes back up as "sda"? Or
> does that even matter? (seems like it would..)

As Andy Smith wrote mdadm is using the metadata particularly UUID

blkid /dev/md4
/dev/md4: UUID="b426722d-ec49-4c6b-a638-5941f24debfd" TYPE="swap"


Watch out that you update your mdadm.conf file 

man mdadm.conf

and don't forget to update initrd after changing if you boot from raid,
because it is using the conf file to assemble the disks at boot time.

regards

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

SATA hotplug + mdadm raid Sam Smith <debian@net153.net> - 2017-05-18 18:50 +0200
  Re: SATA hotplug + mdadm raid Dan Ritter <dsr@randomstring.org> - 2017-05-18 19:40 +0200
    Re: SATA hotplug + mdadm raid Sam Smith <debian@net153.net> - 2017-05-18 22:00 +0200
  Re: SATA hotplug + mdadm raid Andy Smith <andy@strugglers.net> - 2017-05-18 19:40 +0200
  Re: SATA hotplug + mdadm raid deloptes <deloptes@gmail.com> - 2017-05-18 23:30 +0200

csiph-web