mdadm create size problem

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

 



Red Hat AS 2.1 mdadm 1.11
I have two devices that used to be part of a now corrupt RAID10 configuration. When I try to reuse them to create a RAID1, it only uses about 1 third of the diskspace available.
# fdisk -l /dev/sdg


Disk /dev/sdg: 255 heads, 63 sectors, 8924 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdg1             1      8924  71681998+  fd  Linux raid autodetect

# fdisk -l /dev/sdn

Disk /dev/sdn: 255 heads, 63 sectors, 8924 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdn1             1      8924  71681998+  fd  Linux raid autodetect

# mdadm --create --verbose /dev/md5 --level=1 --raid-devices=2 /dev/sdg /dev/sdn
mdadm: /dev/sdg appears to contain an ext2fs file system
size=419520K mtime=Mon May 2 17:04:04 2005
mdadm: /dev/sdn appears to contain an ext2fs file system
size=419520K mtime=Mon May 2 17:04:04 2005
mdadm: size set to 139904K
Continue creating array? n


If I try to add the --size option, even a size that is 139904K or less, it tells me the size is invalid:

# mdadm --create --verbose /dev/md5 --level=1 --raid-devices=2 /dev/sdg /dev/sdn --size=139904K
mdadm: invalid size: 139904K


I did reboot the system after fdisk'ing the devices.

Do I need to low-level format these devices to be able to reuse them?

Kind regards,

Herta

--
Herta Van den Eynde              -=- Toledo system management
K.U. Leuven - Ludit              -=- phone: +32 (0)16 322 166
                                 -=- 50°51'27" N 004°40'39" E

"I wish I were two little cats.  Then I could play together."
-
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