Re: New machine, new RAID, wrong device name...

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

 



On Mon, Feb 21, 2011 at 1:23 PM, NeilBrown <neilb@xxxxxxx> wrote:
<SNIP>
>>
>> However once I've rebooted using the CD, and even though the machine
>> is once again called livecd the RAID is now called /dev/md127. I
>> assume, but don't know for sure, that something similar is happening
>> when I boot the actual installation, mdadm gives the RAID a different
>> name and it's likely not found by my new environment.
>
> If it is being assembled as md127 even though the host name is livecd, the
> implication is that the hostname is not set un after the array is assembled.
> Maybe they are done in the initrd in the wrong order?
> If you
> Â mdadm -S /dev/md127
> Â mdadm -As
> from the livecd, does it then assemble as /dev/md3?
>

It does.

>>
>> What's the right solution to changing the RAID naming in the
>> superblock so that the laptop finds it as local to 'laptop1' and
>> mounts it according the fstab?
>
> I think you are asking how to change the name recorded in the metadata.
> When booted into the livecd:
> Â mdadm -S /dev/md127
> Â mdadm -A /dev/md3 --update=homehost --homehost=laptop1 /dev/sd[ab]3
>
> should do it.
>
> NeilBrown

Thanks Neil. That looks good.

I'll now work on making sure I can actually boot the machine and sync
into Linux correctly.

I appreciate the help.

Cheers,
Mark
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux