by alex11561 » Tue May 12, 2009 10:54 pm
Here I am again. It finally finished creating the raid6 array. During the build DSM listed the array as 'crashed', but that didn't worry me because I hadn't formatted the volume yet. BTW, I had chosen the array device as /dev/md101 because all my previous attempts through DSM had that ID.
> cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
md101 : active raid6 sdfe[9] sdfd[8] sdfc[7] sdfb[6] sdfa[5] sde3[4] sdd3[3] sdc3[2] sdb3[1] sda3[0]
15602969600 blocks level 6, 64k chunk, algorithm 2 [10/10] [UUUUUUUUUU]
md1 : active raid1 sde2[3] sdd2[4] sda2[0] sdb2[1] sdc2[2]
522048 blocks [5/5] [UUUUU]
md0 : active raid1 sde1[3] sdd1[4] sda1[0] sdb1[1] sdc1[2]
2489920 blocks [5/5] [UUUUU]
unused devices: <none>
It appeared to build the volume Okay, so I typed 'mke2fs -L (something) -j /dev/md101' That told me that the volume was too big to format as ext3, which has a maximum size of 8TB.
> mke2fs -j /dev/md101
mke2fs 1.39 (29-May-2006)
mke2fs: Filesystem too large. No more than 2**31-1 blocks
(8TB using a blocksize of 4k) are currently supported.
'Franklin' claims the current firmware recognises a 16tb partition, which would be just right for me, so I enter 'mke2fs -L (something) -j -F /dev/md101'. The '-F' should force it to format the array anyway, though I find it suspicious that the version of mke2fs on the system is from 2006.
> mke2fs -j -F /dev/md101
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1950384128 inodes, 3900742400 blocks
25600 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3904897024
119042 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000, 3855122432
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
It reports no errors, and I reboot.
Well, after the reboot the array comes up with only 5 drives out of ten, listing only the drives on the DS509+.
> cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
md101 : active raid6 sda3[0] sdb3[1] sdc3[2] sdd3[3] sde3[4]
15602969600 blocks level 6, 64k chunk, algorithm 2 [10/5] [UUUUU_____]
md1 : active raid1 sda2[0] sdb2[1] sdc2[2] sdd2[4] sde2[3]
522048 blocks [5/5] [UUUUU]
md0 : active raid1 sda1[0] sdb1[1] sdc1[2] sdd1[4] sde1[3]
2489920 blocks [5/5] [UUUUU]
unused devices: <none>
The system still sees the DX5 partitions:
> cat /proc/partitions
major minor #blocks name
8 0 1953514584 sda
8 1 2490043 sda1
8 2 522112 sda2
8 3 1950371325 sda3
8 16 1953514584 sdb
8 17 2490043 sdb1
8 18 522112 sdb2
8 19 1950371325 sdb3
8 32 1953514584 sdc
8 33 2490043 sdc1
8 34 522112 sdc2
8 35 1950371325 sdc3
8 48 1953514584 sdd
8 49 2490043 sdd1
8 50 522112 sdd2
8 51 1950371325 sdd3
8 64 1953514584 sde
8 65 2490043 sde1
8 66 522112 sde2
8 67 1950371325 sde3
129 192 1953514584 sdfa
129 208 1953514584 sdfb
129 224 1953514584 sdfc
129 240 1953514584 sdfd
130 0 1953514584 sdfe
9 0 2489920 md0
9 1 522048 md1
9 101 15602969600 md101
mdadm refuses to add any of the drives from the DX5
> mdadm -a /dev/sdf[a-e]
mdadm: /dev/sdfa does not appear to be an md device
Okay, let's make some md devices:
> fdisk /dev/sdfa
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
The number of cylinders for this disk is set to 243201.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-243201, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-243201, default 243201):
Using default value 243201
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Same for all 5 disks on the DX5.
Then start making the array from scratch:
> mdadm --create --verbose /dev/md101 --level=6 --raid-devices=10 /dev/sd[a-e]3 /dev/sdf[a-e]1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sda3 appears to contain an ext2fs file system
size=-1591578632K mtime=Mon Jan 28 07:21:55 2030
mdadm: /dev/sda3 appears to be part of a raid array:
level=raid6 devices=10 ctime=Sun May 10 12:40:01 2009
mdadm: /dev/sdb3 appears to contain an ext2fs file system
size=-1576899584K mtime=Wed Dec 31 19:00:00 1969
mdadm: /dev/sdb3 appears to be part of a raid array:
level=raid6 devices=10 ctime=Sun May 10 12:40:01 2009
mdadm: /dev/sdc3 appears to be part of a raid array:
level=raid6 devices=10 ctime=Sun May 10 12:40:01 2009
mdadm: /dev/sdd3 appears to be part of a raid array:
level=raid6 devices=10 ctime=Sun May 10 12:40:01 2009
mdadm: /dev/sde3 appears to be part of a raid array:
level=raid6 devices=10 ctime=Sun May 10 12:40:01 2009
mdadm: size set to 1950371200K
Continue creating array? y
mdadm: array /dev/md101 started.
and this time I won't wait to format it:
> mkfs.ext3 -F /dev/md101
mke2fs 1.39 (29-May-2006)
Filesystem label=1.39-Apr132009
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1950384128 inodes, 3900742400 blocks
25600 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3904897024
119042 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000, 3855122432
Writing inode tables:
I mount it manually:
>mount -t ext3 /dev/md101 /volume1
And DSM sees it as a Raid6 volume that is checking parity consistency and has the capacity of 8 disks. It sounds like success, butwhen I check to see which disks are a part of the volume, it only shows the five disks of the DS509+. This makes me think the volume might not be there when I reboot. I won't find out until the parity check is done, which won't be for a while...