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:26:18 +0000 Andy Smith <andy@xxxxxxxxxxxxxx> wrote:

> On Fri, Aug 29, 2014 at 02:18:12PM +1000, NeilBrown wrote:
> > Of course 'size' is in kilobytes, not sectors (which moron did that !??!?!)
> > 
> > echo 309363696 > /sys/block/md2/md/dev-sda3/size
> 
> Sorry, still no joy:
> 
> # echo 309363696 > /sys/block/md2/md/dev-sda3/size
> # cat /sys/block/md2/md/dev-sda3/size
> 309363264

Try use "/bin/echo" so you get an error message.
Also try smaller numbers.  Can you write anything larger than what is already
there?  Increasing by 64 (match the 128 sectors that mdadm wants for
new_offset) should  be enough.

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