Re: new drive is 4 sectors shorter, can it be used for swraid5 array?

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

 



On Fri, Mar 18, 2022 at 05:30:07PM +0500, Roman Mamedov wrote:
> Check "Used Dev Size" in "mdadm --detail" of your array. I suppose that is how
> much (at least) it actually needs from any new member to be suitable for the
> array.
 
Thank you, it indeed uses a bit less than what was available on the
first drives, so it looks like I'm set
     Used Dev Size : 5860390400 (5588.90 GiB 6001.04 GB)
5860521536-5860390400
131136

> If you find it needs more than the size of sdk1, as an emergency measure you
> could wipe off the partition table and add the entire sdk as the array member.

Yeah, I thought of that, just don't really like it, and not sure if
mdadm -can looks for raw drives in addition to partitions

> However there should not be such size difference in the first place, check
> your dmesg if drive detection messages report "HPA", and/or check with "hdparm
> -N" if there's this HPA enabled, cutting off a portion of the drive at the end.
 

[622993.224113] scsi 11:0:0:0: Direct-Access     Seagate  FA GoFlex Desk   0307 PQ: 0 ANSI: 6
[622993.255658] sd 11:0:0:0: Attached scsi generic sg14 type 0
[622993.273983] sd 11:0:0:0: [sdk] 1465130645 4096-byte logical blocks: (6.00 TB/5.46 TiB)
[622993.300108] sd 11:0:0:0: [sdk] Write Protect is off
[622993.315060] sd 11:0:0:0: [sdk] Mode Sense: 43 00 00 00
[622993.316103] sd 11:0:0:0: [sdk] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[622993.392979] sd 11:0:0:0: [sdk] Attached SCSI disk
gargamel:/dev# hdparm -N /dev/sdk
/dev/sdk:
 max sectors   = 11721045168/11721045168, HPA is disabled

On Fri, Mar 18, 2022 at 01:07:49PM -0500, Roger Heflin wrote:
> From the above your partition table seems to be starting at 1044.  There
> are reasons to attempt to start on a boundary, but using a value like 1024
> instead of 1044 should also work just fine and that will give you 20 more
> sectors.

normal fdisk won't allow that, but I forgot that I can go in expert mode
and force the first sector to a value the regular tool won't allow by
default.

Thanks all for the answers and suggestions.

Marc
-- 
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
 
Home page: http://marc.merlins.org/                       | PGP 7F55D5F27AAF9D08



[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