Re: how do i fix these RAID5 arrays?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Roger, et al --

...and then Roger Heflin said...
...
% 
% Based on those messages The re-add would be expected to work fine.  it

Sure enough, it did:

  diskfarm:~ # mdadm -D /dev/md5[123456] | egrep '^/dev|Stat|Size'
  /dev/md51:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State
  /dev/md52:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State
  /dev/md53:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State
  /dev/md54:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State
  /dev/md55:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State
  /dev/md56:
	  Array Size : 4881773568 (4.55 TiB 5.00 TB)
       Used Dev Size : 1627257856 (1551.87 GiB 1666.31 GB)
	       State : clean 
	  Chunk Size : 512K
      Number   Major   Minor   RaidDevice State

That's a great first step.  Whew!  And the little arrays are even the right
size:

  diskfarm:~ # fdisk -l /dev/md51
  Disk /dev/md51: 4.6 TiB, 4998936133632 bytes, 9763547136 sectors
  Units: sectors of 1 * 512 = 512 bytes
  Sector size (logical/physical): 512 bytes / 4096 bytes
  I/O size (minimum/optimal): 524288 bytes / 1572864 bytes

Yay.  But ...  The striped device never grew:

  diskfarm:~ # parted /dev/md50 p free
  Model: Linux Software RAID Array (md)
  Disk /dev/md50: 20.0TB
  Sector size (logical/physical): 512B/4096B
  Partition Table: gpt
  Disk Flags: 
  
  Number  Start   End     Size    File system  Name         Flags
	  17.4kB  3146kB  3128kB  Free Space
   1      3146kB  20.0TB  20.0TB  xfs          10Traid50md
	  20.0TB  20.0TB  3129kB  Free Space

Even though I think I'm gonna go with md linear instead of learning
something else, which means I'll rebuild the striped top layer, which
means I should get the whole 30T, I'm curious as to why I don't see it
now.  It appears that one cannot grow

  diskfarm:~ # mdadm --grow /dev/md50 --size max
  mdadm: Cannot set device size in this type of array.

a striped array.  Soooo ...  What to do?  More to the point, what will I
need to do when I add the next 10T drive?


% appears that the machine was shutdown wrong and/or crashed and kicked
...
% something goes wrong you always need to check messages and see what
% the underlying issue is/was.
[snip]

Thanks.  That's what had me confused ... :-/


Thanks again & HAND

:-D
-- 
David T-G
See http://justpickone.org/davidtg/email/
See http://justpickone.org/davidtg/tofu.txt




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux