You are not logged in.
Hi Folks,
I'm currently syncing two 1 TB drives after following the Wiki RAID article and have a few "issues".
I partitioned one drive to GPT (single partition) and copied the table to the second but I also formatted them both to ext4. When I created the array I got this
mdadm --create --verbose /dev/md/dpb_array --level=raid1 --metadata=1.2 --raid-devices=2 /dev/sda /dev/sdc
mdadm: /dev/sda appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sda but will be lost or
meaningless after creating array
mdadm: /dev/sdc appears to be part of a raid array:
level=raid0 devices=0 ctime=Thu Jan 1 01:00:00 1970
mdadm: partition table exists on /dev/sdc but will be lost or
meaningless after creating array
mdadm: size set to 976631360K
Continue creating array? y
mdadm: array /dev/md/dpb_array started.Will this be problematic?
The Wiki mentions aligning the partitions to the cylinder will create optimized disk alignment. I took the default from gdisk (2048) instead of the first sector (34) and set the end to -100M. I ended up with this
First sector: 2048 (at 1024.0 KiB)
Last sector: 1953320334 (at 931.4 GiB)
Partition size: 1953318287 sectors (931.4 GiB)
Attribute flags: 0000000000000000
Partition name: 'Linux RAID'Is this acceptable?
As for partition type the Wiki mentions "da" type to denote Non-FS data and "fd" for Linux RAID auto, suggesting "da" is the safer option. However, gdisk only offers "fd00 Linux RAID" as far as I can make out. So what does "fd00" equate to in regards to the Wiki instructions? Is there no "da" option with GPT?
Any advice would be greatly appreciated as I've found the whole process a little confusing. Thanks.
Last edited by fabertawe (2012-10-15 17:48:22)
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
Update: Syncing has finished...
$ cat /proc/mdstat
Personalities : [raid1]
md127 : active raid1 sdc[1] sda[0]
976631360 blocks super 1.2 [2/2] [UU]
unused devices: <none>and I've updated /etc/mdadm.conf but I'm unable to format the array. Gparted says there's no partition table! What now?
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
Gparted says there's no partition table!
mdadm: partition table exists on /dev/sd[ab] but will be lost or
meaningless after creating arrayYou can't say you weren't warned...
The wiki suggests you use partitions, ie.
mdadm --create --verbose /dev/md/dpb_array --level=raid1 --metadata=1.2 --raid-devices=2 /dev/sda1 /dev/sdc1(disclaimer: I think this is what the wiki is suggesting... but it's not entirely clear so I could be mistaken)
rather than the entire drive, ie.
mdadm --create --verbose /dev/md/dpb_array --level=raid1 --metadata=1.2 --raid-devices=2 /dev/sda /dev/sdcas the components of the RAID.
It is also possible to create a RAID-array directly on the raw disks (without partitions), but not recommended because it can cause problems when swapping a failed disk.
Maybe that's where you should start.
Last edited by alphaniner (2012-10-15 20:16:53)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
mdadm: partition table exists on /dev/sd[ab] but will be lost or meaningless after creating arrayYou can't say you weren't warned...
Uh oh....
The wiki suggests you use partitions, ie.
mdadm --create --verbose /dev/md/dpb_array --level=raid1 --metadata=1.2 --raid-devices=2 /dev/sda1 /dev/sdc1(disclaimer: I think this is what the wiki is suggesting... but it's not entirely clear so I could be mistaken)
This is what's known as a schoolboy error
Ok, back to the drawing board and start again. It only took two and a half hours to sync. What an idiot.
Just one other question.... man mdadm says a chunk size for RAID-1 is irrelevant, so does this mean the volume alignment for striping is also not important as no striping is involved? I probably just answered that myself.
Thanks very much alphaniner, I appreciate it.
Edit: Well I finally got it up and running and I'm monitoring it with a cron job (zenity pop up and log).
Last edited by fabertawe (2012-10-17 10:31:16)
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline