Re: Shrinking number of devices on a RAID-10 (near 2) array

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

 



On Fri, 29 Aug 2014 04:02:31 +0000 Andy Smith <andy@xxxxxxxxxxxxxx> wrote:

> Hi Neil,
> 
> On Fri, Aug 29, 2014 at 01:53:12PM +1000, NeilBrown wrote:
> > You need to
> >   echo 618727392 > /sys/block/md2/md/dev-sda3/size
> > and same for the other devices.
> > 
> > I looks like I need to get mdadm to be more clever when it gets -E2BIG.
> > Can you check that the above works?
> 
> Unfortunately it seems I cannot change that size:
> 
> # echo 618727392 > /sys/block/md2/md/dev-sda3/size
> # cat /sys/block/md2/md/dev-sda3/size
> 309363264
> 

Of course 'size' is in kilobytes, not sectors (which moron did that !??!?!)

echo 309363696 > /sys/block/md2/md/dev-sda3/size

NeilBrown

Attachment: signature.asc
Description: PGP signature


[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