6TB HDD, WDC WD60EFRX, Disk Wizard, RAID1

523 views
Skip to first unread message

Thomas

unread,
Jan 1, 2015, 12:08:18 PM1/1/15
to
Hi,

happy new year everybody :)

I am trying to use two WDC WD60EFRX (6TB) harddisk as RAID1. To create this setup I used the Disk Wizard with the following options:

- Data security, duplicate everything on two disks (and use an external USB disk, if available, as a spare) (raid1)
- recent, faster cleaning time, best reliability, low fragmentation, big files support (ext4)

The creation succeed (only a awk division by zero error), but I got an md0 partition *and* a 820.7GB sda3, sda4 partition?!

[root@storage]# sgdisk -p /dev/sda
Disk /dev/sda: 11721045168 sectors, 5.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 3BFC680D-E2C2-4C3D-8C54-455E042761B0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 11721045134
Partitions will be aligned on 64-sector boundaries
Total free space is 32 sectors (16.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64         1048639   512.0 MiB   8200 
   2         1048640      9999998013   4.7 TiB     FD00 
   3      9999998016     11721045134   820.7 GiB   8300 

Why is sd*3 created?

Changing the partition manually (delete sda3 and change sda2 to full space) failed:

Stopping disk sda... done.

Partitioning disk sda... failed

Could not create partition 2 from 1048640 to 11721044727
Could not change partition 2's type code to fd00!
Error encountered; not saving changes.


md0 RAID Details

/dev/md0:
        Version : 1.0
  Creation Time : Wed Dec 31 18:51:42 2014
     Raid Level : raid1
     Array Size : 4999474548 (4767.87 GiB 5119.46 GB)
  Used Dev Size : 4999474548 (4767.87 GiB 5119.46 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Thu Jan  1 18:04:28 2015
          State : active
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : storage:0  (local to host storage)
           UUID : fe9db5f0:dbd31207:83760626:bd25dee8
         Events : 13601

    Number   Major   Minor   RaidDevice State
       0       8       18        0      active sync   /dev/sdb2
       1       8        2        1      active sync   /dev/sda2

/proc/mdstat:
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4] 
md0 : active raid1 sda2[1] sdb2[0]
      4999474548 blocks super 1.0 [2/2] [UU]
      bitmap: 0/38 pages [0KB], 65536KB chunk

unused devices: 



Anybody a clue?

Thomas
screen.png
status.png

Thomas

unread,
Jan 1, 2015, 3:26:32 PM1/1/15
to
Right now I have created "One big filesystem per disk, for easy management (standard)" with the Disk Wizard and after that created the RAID1 manual. That seems to work.

md0 5588.5GB

I still have to wait for resync, 663.5min :-)

After that:

Unable to automatically fix md0, mounting Read Only: fsck 1.41.14 (22-Dec-2010)
/dev/md0: The filesystem size (according to the superblock) is 1464999561 blocks
The physical size of the device is 1464999527 blocks
Either the superblock or the partition table is likely to be corrupt!


/dev/md0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
       
(i.e., without -a or -p options)

But that was my fault imo..

[root@storage]# mke2fs -T ext4 /dev/md0

still get
EXT4-fs (md0): bad geometry: block count 1464999561 exceeds size of device (1464999527 blocks)

Solution -> https://groups.google.com/forum/#!topic/alt-f/nuGn555lzVA

Thomas

João Cardoso

unread,
Jan 6, 2015, 12:13:23 PM1/6/15
to


On Thursday, January 1, 2015 5:08:18 PM UTC, Thomas wrote:
Hi,

happy new year everybody :)

I am trying to use two WDC WD60EFRX (6TB) harddisk as RAID1. To create this setup I used the Disk Wizard with the following options:

- Data security, duplicate everything on two disks (and use an external USB disk, if available, as a spare) (raid1)
- recent, faster cleaning time, best reliability, low fragmentation, big files support (ext4)

The creation succeed (only a awk division by zero error), but I got an md0 partition *and* a 820.7GB sda3, sda4 partition?!

[root@storage]# sgdisk -p /dev/sda
Disk /dev/sda: 11721045168 sectors, 5.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 3BFC680D-E2C2-4C3D-8C54-455E042761B0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 11721045134
Partitions will be aligned on 64-sector boundaries
Total free space is 32 sectors (16.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              64         1048639   512.0 MiB   8200 
   2         1048640      9999998013   4.7 TiB     FD00 
   3      9999998016     11721045134   820.7 GiB   8300 

Why is sd*3 created?

As your two disks are identical that is a bug.
The code was tested for 5.2TB, but the world keeps running. A section of /usr/www/cgi-bin/diskwiz_proc.cgi:

# lower common size of all disks (in sectors)
minsize() {
local i
msz=9999999999 # 5.2TB

When the two disks have different capacities, the smaller one is used as the RAID capacity, and the remaining capacity in the larger disk is used as a "standard" filesystem.


Thanks
Reply all
Reply to author
Forward
0 new messages