All of lore.kernel.org
 help / color / mirror / Atom feed
* Weird fdisk -l output
@ 2005-11-05 23:29 Derek Yeung
  2005-11-06 13:31 ` Forrest Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Derek Yeung @ 2005-11-05 23:29 UTC (permalink / raw)
  To: linux-raid



Hello!

I'm running RedHat Linux and kernel version 2.4.21-37.ELsmp, with 
raidtools: raidtools-1.00.3-8
and mdadm-1.5.0-9

At the moment I have 4 disks - sda, sdb, sdc, sdd.  They're all the same 
size (36G).  I have 3 software raid devices; md0, md1 and md9.

For some reason, fdisk -l shows the /dev/md* "doesn't contain a valid 
partition table".

/proc/mdstat says:
   md1 : active raid1 sdb1[1] sda1[0]
         104320 blocks [2/2] [UU]

   md0 : active raid1 sdb2[1] sda2[0]
         35736512 blocks [2/2] [UU]

   md9 : active raid1 sdd1[1] sdc1[0]
         35840896 blocks [2/2] [UU]

However, fdisk -l says:
   Disk /dev/md1: 36.7 GB, 36701077504 bytes
   2 heads, 4 sectors/track, 8960224 cylinders
   Units = cylinders of 8 * 512 = 4096 bytes

   Disk /dev/md1 doesn't contain a valid partition table

And this is the case only for the software raid (md*) devices.


but, fdisk -l /dev/sda says:
   Disk /dev/sda: 36.7 GB, 36703934464 bytes
   255 heads, 63 sectors/track, 4462 cylinders
   Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot    Start       End    Blocks   Id  System
   /dev/sda1   *         1        13    104391   fd  Linux raid autodetect
   /dev/sda2            14      4462  35736592+  fd  Linux raid autodetect



The system runs fine..  I don't see any impairment because of this... Any 
ideas why, and how this can be fixed?  Is this a disaster waiting to 
happen?


Many many thanks!
Derek

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Weird fdisk -l output
  2005-11-05 23:29 Weird fdisk -l output Derek Yeung
@ 2005-11-06 13:31 ` Forrest Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Forrest Taylor @ 2005-11-06 13:31 UTC (permalink / raw)
  To: Derek Yeung; +Cc: linux-raid

On Sat, 2005-11-05 at 18:29 -0500, Derek Yeung wrote:
> 
> Hello!
> 
> I'm running RedHat Linux and kernel version 2.4.21-37.ELsmp, with 
> raidtools: raidtools-1.00.3-8
> and mdadm-1.5.0-9
> 
> At the moment I have 4 disks - sda, sdb, sdc, sdd.  They're all the same 
> size (36G).  I have 3 software raid devices; md0, md1 and md9.
> 
> For some reason, fdisk -l shows the /dev/md* "doesn't contain a valid 
> partition table".
> 
> /proc/mdstat says:
>    md1 : active raid1 sdb1[1] sda1[0]
>          104320 blocks [2/2] [UU]
> 
>    md0 : active raid1 sdb2[1] sda2[0]
>          35736512 blocks [2/2] [UU]
> 
>    md9 : active raid1 sdd1[1] sdc1[0]
>          35840896 blocks [2/2] [UU]
> 
> However, fdisk -l says:
>    Disk /dev/md1: 36.7 GB, 36701077504 bytes
>    2 heads, 4 sectors/track, 8960224 cylinders
>    Units = cylinders of 8 * 512 = 4096 bytes
> 
>    Disk /dev/md1 doesn't contain a valid partition table
> 
> And this is the case only for the software raid (md*) devices.
> 
> 
> but, fdisk -l /dev/sda says:
>    Disk /dev/sda: 36.7 GB, 36703934464 bytes
>    255 heads, 63 sectors/track, 4462 cylinders
>    Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>       Device Boot    Start       End    Blocks   Id  System
>    /dev/sda1   *         1        13    104391   fd  Linux raid autodetect
>    /dev/sda2            14      4462  35736592+  fd  Linux raid autodetect
> 
> 
> 
> The system runs fine..  I don't see any impairment because of this... Any 
> ideas why, and how this can be fixed?  Is this a disaster waiting to 
> happen?

No, this is not a disaster waiting to happen--it is expected behavior.
Your md devices have no partition table, and they usually do not.  Your
sdX devices do, so that you can create multiple md devices from them.
fdisk, in fact, is simply used to manipulate the partition table on your
physical disks.  Once you have partitions on sdX, you can combine them
into your md devices.

Forrest


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-11-06 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-05 23:29 Weird fdisk -l output Derek Yeung
2005-11-06 13:31 ` Forrest Taylor

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.