Bug 460542 - dmraid report different device size
Summary: dmraid report different device size
Status: RESOLVED WONTFIX
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: Update Problems (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.0
: P3 - Medium : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Neil Brown
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-19 08:42 UTC by Alexander Kireev
Modified: 2009-12-09 23:27 UTC (History)
1 user (show)

See Also:
Found By: Community User
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
dmraid -n output. Opensuse 11.0 (2.84 KB, text/plain)
2009-01-14 08:29 UTC, Alexander Kireev
Details
dmraid -n output. Opensuse 11.1 installer (3.74 KB, text/plain)
2009-01-14 08:31 UTC, Alexander Kireev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kireev 2008-12-19 08:42:06 UTC
I use RAID0 array on ich9r. OpenSuse 11 installs and works well (I execute dmadm -a y during the installation).
In OpenSuse installer this doesn't work. Execution of 'modprobe dm-raid45 && dmraid -a y' was completed, but with error 'dos: partition address pas end of RAID device' and logical partitions wasn't mapped.
'dmraid -s' on working opensuse 11 and opensuse 11.1 installer is differ.
OS 11  . Size: 1953536512
OS 11.1. Size: 1953536000
Comment 1 Matthias Koenig 2009-01-13 17:21:22 UTC
Ok, I would like to know if the problem is related to the metadata interpretation or in the device size detection of the underlying block devices.

Can you please provide 
1. the output of
dmraid -n 
for both systems (as attachment)?

2. the output of
cat /sys/block/DEVICE/size
for every block device of the RAID, with DEVICE the actual block device(e.g. sda),
also for both systems.
Comment 2 Alexander Kireev 2009-01-14 08:29:58 UTC
Created attachment 264941 [details]
dmraid -n output. Opensuse 11.0

This system works fine.
Comment 3 Alexander Kireev 2009-01-14 08:31:19 UTC
Created attachment 264942 [details]
dmraid -n output. Opensuse 11.1 installer

This is made in system loaded by installer.
Comment 4 Alexander Kireev 2009-01-14 08:33:32 UTC
dmraid -n output has been added as attachements. 
Device size:
Opensuse 11.0
sda: 976773168
sdb: 976773168
Opensuse 11.1
sda: 976773168
sdb: 976773168
Comment 6 Neil Brown 2009-12-09 23:27:52 UTC
I think this is actually a bug in 11.0 which has been fixed in 11.1

Intel's specification for ich9 raid requires that the size and any array
be a whole number of megabytes.
1953536512 is 1907750 and a half megabytes which is an invalid size.
1953536000 is 1907750 megabytes exactly which is the correct size.

So to be able to use this array with the new, correct code you will need
to resize the filesystem to be slightly smaller, then resize the partition
containing it to be smaller too.

You should probably boot from the 11.0 CD into the rescue system.
Then use resize2fs to make the filesystem smaller, and fdisk or cfdisk or similar
to resize the partition.

Let us know if you need more guidance in this process.

It is unfortunate that this is need, but there isn't really any way to
avoid it.