Re: Partitions with == or \approx same size ?

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

 



On Saturday July 21, seb@xxxxxx wrote:
> 
> Hi Neil,
> 
> 
> | > Could you tell me if such a mechanism exists in mdadm?
> | > Or should I accept the "loss" of the 150 GB?
> | When you give mdadm a collection of drives to turn into a RAID array,
> | use bases the size of the array on the smallest device.
> 
> I'm sorry I don't know what "bases" are in a RAID array and I can't find
> this term in the man page. Could you elaborate?

Typo.  Should be
    It bases the size of the array ...

i.e. it works out which is the smaller device, and uses that size to
determine the size of the array.  e.g. if you are making a raid5 with
4 drives, then the array will be 3 times the size of the smallest array.

> 
> | You might want to make it a little smaller still in case you have to
> | replace a device with a slightly smaller device (it happens).  You can
> | use "--size" to reduce the used space a little further if you like.
> 
> Thanks for the pointer to --size! I had overlooked this option. The man
> page says that "If  this is not specified (as it normally is not) the
> smallest drive (or partition) sets the size". This implies that partitions
> need not have exactly the same size and 'mdadm' will still manage.

Exactly.

> 
> So I'll use 249,9GB out of 250GB, skip over the small resulting
> differences, let mdadm work its magic and when new disks will be inserted
> after a failure it will suffice to use their total space.

Again, exactly correct.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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