linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label
@ 2005-02-14 18:17 Andrew Morton
  2005-02-14 19:10 ` Guy
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2005-02-14 18:17 UTC (permalink / raw)
  To: linux-raid; +Cc: aspanke



Begin forwarded message:

Date: Mon, 14 Feb 2005 05:29:22 -0800
From: bugme-daemon@osdl.org
To: bugme-new@lists.osdl.org
Subject: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label


http://bugme.osdl.org/show_bug.cgi?id=4211

           Summary: md configuration destroys disk GPT label
    Kernel Version: 2.4.18-e.31smp
            Status: NEW
          Severity: high
             Owner: io_md@kernel-bugs.osdl.org
         Submitter: aspanke@gmail.com


Distribution: RedHat Advanced Server 2.1

Hardware Environment: NEC System, 4 CPU IA-64, 8 GB RAM, 
                      direct connected FC disks

Software Environment: OS + Oracle installation

Problem Description: 
md configuration based on complete disks instead of partitions destroys the GPT
label of the used disks

Steps to reproduce:
Setup a Software Raid, raid level 0 or 1, based on complete disks,

raiddev /dev/md0
        raid-level      0
        nr-raid-disks   2
        persistent-superblock 1
        chunk-size      16
        device          /dev/sdb
        raid-disk       0
        device          /dev/sdc
        raid-disk       1

create the raiddevice, create a free choosable filesystem, I worked with ext2,
and put some I/O load on the filesystem. 
After umounting raiddevice, try to print the partition table using 'parted', you
will get 

[root@rumil /]# parted /dev/sdb print
Primary GPT is invalid, using alternate GPT.
Error: This disk contains a valid Alternate GUID Partition Table but the Primary
GPT and Protective MBR are invalid.  This generally means that the disk had GPT
partitions on it, but then a legacy partition editing tool was used to change
the partition table stored in the MBR.
Which data is valid,  GPT or MBR?
Yes will assume that the GPT information is correct, and will rewrite the PMBR
and Primary GPT.
No will assume that the MBR is correct, and erase the GPT information.
Ignore will assume that the MBR is correct, but not change the disk.
Yes No Ignore ? 

The same setup works fine, if I am using partitions instead of the hole disk ...

raiddev /dev/md0
        raid-level      0
        nr-raid-disks   2
        persistent-superblock 1
        chunk-size      16
        device          /dev/sdb1
        raid-disk       0
        device          /dev/sdc1
        raid-disk       1

[root@rumil /]# parted /dev/sdb print
Disk geometry for /dev/sdb: 0.000-34688.000 megabytes
Disk label type: GPT
Minor    Start       End     Filesystem  Name                  Flags
1          0.017  34687.500  ext2                              lba


Regards
 Alex

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

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

* RE: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label
  2005-02-14 18:17 Fw: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label Andrew Morton
@ 2005-02-14 19:10 ` Guy
  2005-02-15  0:36   ` Neil Brown
  2005-02-16  4:11   ` Matt Domsch
  0 siblings, 2 replies; 4+ messages in thread
From: Guy @ 2005-02-14 19:10 UTC (permalink / raw)
  To: 'Andrew Morton', linux-raid; +Cc: aspanke

Maybe I am confused, but if you use the whole disk, I would expect the whole
disk could be over-written!  What am I missing?

Guy

-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Andrew Morton
Sent: Monday, February 14, 2005 1:17 PM
To: linux-raid@vger.kernel.org
Cc: aspanke@gmail.com
Subject: Fw: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT
label



Begin forwarded message:

Date: Mon, 14 Feb 2005 05:29:22 -0800
From: bugme-daemon@osdl.org
To: bugme-new@lists.osdl.org
Subject: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT
label


http://bugme.osdl.org/show_bug.cgi?id=4211

           Summary: md configuration destroys disk GPT label
    Kernel Version: 2.4.18-e.31smp
            Status: NEW
          Severity: high
             Owner: io_md@kernel-bugs.osdl.org
         Submitter: aspanke@gmail.com


Distribution: RedHat Advanced Server 2.1

Hardware Environment: NEC System, 4 CPU IA-64, 8 GB RAM, 
                      direct connected FC disks

Software Environment: OS + Oracle installation

Problem Description: 
md configuration based on complete disks instead of partitions destroys the
GPT
label of the used disks

Steps to reproduce:
Setup a Software Raid, raid level 0 or 1, based on complete disks,

raiddev /dev/md0
        raid-level      0
        nr-raid-disks   2
        persistent-superblock 1
        chunk-size      16
        device          /dev/sdb
        raid-disk       0
        device          /dev/sdc
        raid-disk       1

create the raiddevice, create a free choosable filesystem, I worked with
ext2,
and put some I/O load on the filesystem. 
After umounting raiddevice, try to print the partition table using 'parted',
you
will get 

[root@rumil /]# parted /dev/sdb print
Primary GPT is invalid, using alternate GPT.
Error: This disk contains a valid Alternate GUID Partition Table but the
Primary
GPT and Protective MBR are invalid.  This generally means that the disk had
GPT
partitions on it, but then a legacy partition editing tool was used to
change
the partition table stored in the MBR.
Which data is valid,  GPT or MBR?
Yes will assume that the GPT information is correct, and will rewrite the
PMBR
and Primary GPT.
No will assume that the MBR is correct, and erase the GPT information.
Ignore will assume that the MBR is correct, but not change the disk.
Yes No Ignore ? 

The same setup works fine, if I am using partitions instead of the hole disk
...

raiddev /dev/md0
        raid-level      0
        nr-raid-disks   2
        persistent-superblock 1
        chunk-size      16
        device          /dev/sdb1
        raid-disk       0
        device          /dev/sdc1
        raid-disk       1

[root@rumil /]# parted /dev/sdb print
Disk geometry for /dev/sdb: 0.000-34688.000 megabytes
Disk label type: GPT
Minor    Start       End     Filesystem  Name                  Flags
1          0.017  34687.500  ext2                              lba


Regards
 Alex

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

* RE: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label
  2005-02-14 19:10 ` Guy
@ 2005-02-15  0:36   ` Neil Brown
  2005-02-16  4:11   ` Matt Domsch
  1 sibling, 0 replies; 4+ messages in thread
From: Neil Brown @ 2005-02-15  0:36 UTC (permalink / raw)
  To: Guy; +Cc: 'Andrew Morton', linux-raid, aspanke

On Monday February 14, bugzilla@watkins-home.com wrote:
> Maybe I am confused, but if you use the whole disk, I would expect the whole
> disk could be over-written!  What am I missing?

I second that.

Once you do anything to a whole disk, whether make an md array out of
it, or mkfs it or anything else, you can kiss any partitioning
goodbye.

Maybe what you want to do it make an md array and then partition
that.
In 2.6 you can do that directly.  In 2.4 you would need to use LVM to
partition the array.

NeilBrown

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

* Re: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label
  2005-02-14 19:10 ` Guy
  2005-02-15  0:36   ` Neil Brown
@ 2005-02-16  4:11   ` Matt Domsch
  1 sibling, 0 replies; 4+ messages in thread
From: Matt Domsch @ 2005-02-16  4:11 UTC (permalink / raw)
  To: Guy; +Cc: 'Andrew Morton', linux-raid, aspanke

On Mon, Feb 14, 2005 at 02:10:01PM -0500, Guy wrote:
> Maybe I am confused, but if you use the whole disk, I would expect the whole
> disk could be over-written!  What am I missing?

You're right, and I added such comments (in a little more detail) to
the bugzilla entry.

Thanks,
Matt

-- 
Matt Domsch
Software Architect
Dell Linux Solutions linux.dell.com & www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com

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

end of thread, other threads:[~2005-02-16  4:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-14 18:17 Fw: [Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label Andrew Morton
2005-02-14 19:10 ` Guy
2005-02-15  0:36   ` Neil Brown
2005-02-16  4:11   ` Matt Domsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).