[Bugme-new] [Bug 4211] New: md configuration destroys disk GPT label
bugme-daemon at osdl.org
bugme-daemon at osdl.org
Mon Feb 14 05:29:22 PST 2005
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 at kernel-bugs.osdl.org
Submitter: aspanke at 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 at 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 at 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.
More information about the Bugme-new
mailing list