LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2012, 12:03 PM   #1
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Rep: Reputation: 7
Problems formatting MDADM array


Hey all, I just created a 2TB RAID10 array using four 1TB hard disks (my first ever attempt). Everything went fine until I tried formatting the array. When I run:

Code:
mkfs -t ext4 /dev/md10
I get the following warning:

Code:
root@MAbackup:/home/jobee# mkfs -t ext4 /dev/md10
mke2fs 1.41.12 (17-May-2010)
/dev/md10 alignment is offset by 512 bytes.
This may result in very poor performance, (re)-partitioning suggested.
Re-partitioning didn't help at all so I did some Googling and saw that changing the starting sector so that it's evenly divisible by 8 should fix it. Well, when I try to change the beginning sector I get the following error:

Code:
Command (m for help): x

Expert command (m for help): b
Partition number (1-4): 1
Partition 1 has no data area

Expert command (m for help):
I have no idea what I'm doing and the few tutorials I've watched haven't been helpful. Can anyone point me to a tutorial that will help me get this working? I think my problem is with fdisk but could it be with mdadm?

Thanks,

Joe B
 
Old 11-05-2012, 12:09 PM   #2
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Here's something else I just found:

Code:
root@MAbackup:/home/jobee# fdisk /dev/md10

The device presents a logical sector size that is smaller than
the physical sector size. Aligning to a physical sector (or optimal
I/O) size boundary is recommended, or performance may be impacted.

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
         switch off the mode (command 'c') and change display units to
         sectors (command 'u').

Command (m for help):
I need the 2TB size because I'm running a backup for another device and I need to match its size with my array. Have I hit a size limitation?

Thanks,

Joe B
 
Old 11-07-2012, 01:19 PM   #3
jbruyet
Member
 
Registered: Feb 2011
Location: North Central Washington
Distribution: Debian, OpenSUSE, Kali, Ubuntu
Posts: 178

Original Poster
Rep: Reputation: 7
Ok, well, I tried another recommendation:

Code:
root@MAbackup:/home/jobee# echo "128,," | sfdisk -uS /dev/md10
And now I get an even larger offset when I run mkfs:

Code:
root@MAbackup:/home/jobee# mkfs -t ext4 /dev/md10p1
mke2fs 1.41.12 (17-May-2010)
/dev/md10p1 alignment is offset by 459264 bytes.
This may result in very poor performance, (re)-partitioning suggested.
I see too that my original md10 has been changed to md10p1. Hmmm. Then I tried using "512" to replace the "128" in the sfdisk command and that drops me to an offset of 262656 bytes. I've even used a spreadsheet to try to find something that would give me a 0 byte offset but no joy. I thought I was close until I saw this error message:

Code:
sfdisk: I don't like these partitions - nothing changed.
(If you really want this, use the --force option.)
Yes, I'm stumbling around but I need to get this working. Am I going to have to live with the 512 byte offset? How much of a performance hit will I take? At this point I'll take pretty much any ideas, suggestions or recommendations.

Thanks,

Joe B

Last edited by jbruyet; 11-07-2012 at 03:44 PM. Reason: fixed typo
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mdadm: only give one device per ARRAY line: /dev/md/:raid and array laughing_man77 Linux - Hardware 4 03-23-2012 04:05 PM
ca't assembl mdadm array seaking1 Linux - Software 0 02-15-2009 04:21 AM
Problems with mdadm array superblock seaking1 Linux - Hardware 1 01-19-2009 10:24 PM
mdadm (get my array working again) dadriver Linux - Software 1 01-20-2006 06:56 PM
mdadm problems with growing an existing array mjcramer Fedora 2 07-11-2005 08:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration