Mailinglist Archive: opensuse (963 mails)

< Previous Next >
Re: [opensuse] create md RAID1 from old HD's ordinary partition with data plus new virgin HD's empty 0xFD partition
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Sat, 16 Apr 2011 09:13:49 +0200
  • Message-id: <iobfjc$rej$1@saturn.local.net>
Felix Miata wrote:

I want to make /dev/md7 out of sdb14 which is formatted EXT3 and is
86% full of data, plus sda14, which is identically partitioned but
virgin space on a brand new HD replacing the old sda. I've already
rebuilt /dev/md[0-7]. sdb14 was originally created using the excess of
sdb's size over the size of the old sda.

On 11.4, I tried using YaST2 to do this, but it won't let me
initialize md7 with only the old partition, and I see no clear
indication that my data on sdb14 won't be eradicated by initially
combining it with sda14 to create md7.
[snip]

Without really thinking about the --create results, I did:

mdadm --build --verbose --force -n1 /dev/md7 --level=1 /dev/sdb14

The result was "mdadm: array /dev/md7 built and started."

Fsck says /dev/md7 is clean. Mounted, things seemed to be OK, but
/proc/mdstat shows differently for md7 than for others:

md7 : active raid1 sdb14[0]
156280288 blocks super non-persistent [1/1] [U]


One issue might be that sdb14 doesn't have a superblock. --build is some
sort of special option that doesn't create persistent superblocks, I
don't think I've ever used it.



--
Per Jessen, Zürich (6.0°C)

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
References