Installing Ubuntu 12.04.1 x64 with Fake RAID 1 partitions not fully recognized

Bug #1063429 reported by Arkadius
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dmraid (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi

I had:

- Software:

Dual boot with
  + Windows XP
  + Ubuntu 10.04 LTS x32

- Hardware
  - Fake RAID 1 (mirroring) with 2x1 TB:

Partition 1 - Windows
Partition 2 - SWAP
Partition 3 - / (root)
Partition 4 - Extended
Partition 5 - /home
Partition 6 - /data

    arek@domek:/var/log/installer$ sudo fdisk -l

    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000de1b9

       Device Boot Start End Blocks Id System
    /dev/sda1 * 63 524297339 262148638+ 7 HPFS/NTFS/exFAT
    /dev/sda2 524297340 528506369 2104515 82 Linux swap / Solaris
    /dev/sda3 528506370 570468149 20980890 83 Linux
    /dev/sda4 570468150 1953118439 691325145 5 Extended
    /dev/sda5 570468213 675340469 52436128+ 83 Linux
    /dev/sda6 675340533 1953118439 638888953+ 83 Linux

    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000de1b9

       Device Boot Start End Blocks Id System
    /dev/sdb1 * 63 524297339 262148638+ 7 HPFS/NTFS/exFAT
    /dev/sdb2 524297340 528506369 2104515 82 Linux swap / Solaris
    /dev/sdb3 528506370 570468149 20980890 83 Linux
    /dev/sdb4 570468150 1953118439 691325145 5 Extended
    /dev/sdb5 570468213 675340469 52436128+ 83 Linux
    /dev/sdb6 675340533 1953118439 638888953+ 83 Linux

    arek@domek:/var/log/installer$ ls -l /dev/mapper/
    total 0
    crw------- 1 root root 10, 236 Oct 7 20:17 control
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha -> ../dm-0
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha1 -> ../dm-1
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha2 -> ../dm-2
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha3 -> ../dm-3
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha4 -> ../dm-4
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha5 -> ../dm-5
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 pdc_jhjbcaha6 -> ../dm-6

I wanted to upgrade from 10.04 x32 to 12.04 x64 using FRESH installation.
So, run installation of Ubuntu 12.04.1 x64 LTS using alternate CD.

 During the installation I selected manual partitioning and to:
 - Use and Format / (root)
 - Use and Format SWAP
 - Use and Keep data on /home
 - Use and Keep data on /data

After I clicked "Continue" I get error creating and formatting SWAP partition.

I go to terminal with Alt + F2 (?) and hit enter.
I discovered that there was visible RAID as only disk with NO partitions.
Something like this:

    arek@domek:/var/log/installer$ ls -l /dev/mapper/
    lrwxrwxrwx 1 root root 7 Oct 7 20:17 /dev/mapper/pdc_jhjbcaha -> ../dm-0

    arek@domek:/var/log/installer$ ls -l /dev/dm*
    brw-rw---- 1 root disk 252, 0 Oct 7 20:17 /dev/dm-0

So I switched to log console Alt+F3 (?) and saw errors like below:

    Oct 7 14:02:45 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
    Oct 7 14:02:45 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
    Oct 7 14:02:45 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
    Oct 7 14:02:45 anna-install: Installing dmraid-udeb
    Oct 7 14:02:45 anna[12599]: DEBUG: retrieving dmraid-udeb 1.0.0.rc16-4.1ubuntu8
    Oct 7 14:02:49 anna[12599]: DEBUG: retrieving libdmraid1.0.0.rc16-udeb 1.0.0.rc16-4.1ubuntu8
    Oct 7 14:02:49 anna[12599]: DEBUG: retrieving kpartx-udeb 0.4.9-3ubuntu5
    Oct 7 14:02:49 disk-detect: Serial ATA RAID disk(s) detected.
    Oct 7 14:02:55 disk-detect: Enabling dmraid support.
    Oct 7 14:02:55 disk-detect: RAID set "pdc_jhjbcaha" was activated
    Oct 7 14:02:55 HERE --> dmraid-activate: ERROR: Cannot retrieve RAID set information for pdc_jhjbcaha
    Oct 7 14:02:56 check-missing-firmware: /dev/.udev/firmware-missing does not exist, skipping
    Oct 7 14:02:56 check-missing-firmware: /run/udev/firmware-missing does not exist, skipping
    Oct 7 14:02:56 check-missing-firmware: no missing firmware in /dev/.udev/firmware-missing /run/udev/firmware-missing
    Oct 7 14:02:57 main-menu[428]: DEBUG: resolver (libnewt0.52): package doesn't exist (ignored)
    Oct 7 14:02:57 main-menu[428]: DEBUG: resolver (ext2-modules): package doesn't exist (ignored)
    Oct 7 14:02:57 main-menu[428]: INFO: Menu item 'partman-base' selected
    Oct 7 14:02:57 kernel: [ 316.512999] NTFS driver 2.1.30 [Flags: R/O MODULE].
    Oct 7 14:02:57 kernel: [ 316.523221] Btrfs loaded
    Oct 7 14:02:57 kernel: [ 316.534781] JFS: nTxBlock = 8192, nTxLock = 65536
    Oct 7 14:02:57 kernel: [ 316.554749] SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
    Oct 7 14:02:57 kernel: [ 316.555336] SGI XFS Quota Management subsystem
    Oct 7 14:02:58 md-devices: mdadm: No arrays found in config file or automatically
    Oct 7 14:02:58 partman: No matching physical volumes found
    Oct 7 14:02:58 partman: No volume groups found
    Oct 7 14:02:58 partman: Reading all physical volumes. This may take a while...
    Oct 7 14:02:58 partman-lvm: No volume groups found
    Oct 7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
    Oct 7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
    Oct 7 14:02:58 partman: Error running 'tune2fs -l /dev/mapper/pdc_jhjbcaha'
    Oct 7 14:06:11 HERE --> partman: mkswap: can't open '/dev/mapper/pdc_jhjbcaha2': No such file or directory
    Oct 7 14:07:28 init: starting pid 401, tty '/dev/tty2': '-/bin/sh'
    Oct 7 14:15:00 net/hw-detect.hotplug: Detected hotpluggable network interface eth0
    Oct 7 14:15:00 net/hw-detect.hotplug: Detected hotpluggable network interface lo

As You can see there are 2 errors

    Oct 7 14:02:55 dmraid-activate: ERROR: Cannot retrieve RAID set information for pdc_jhjbcaha

and

    Oct 7 14:06:11 partman: mkswap: can't open '/dev/mapper/pdc_jhjbcaha2': No such file or directory

I looked in the internet and try to run command "dmraid -ay" and get something like that:

    dmraid -ay
    /dev/mapper/pdc_jhjbcaha -> Already activated
    /dev/mapper/pdc_jhjbcaha1 -> Successfully activated
    /dev/mapper/pdc_jhjbcaha2 -> Successfully activated
    /dev/mapper/pdc_jhjbcaha3 -> Successfully activated
    /dev/mapper/pdc_jhjbcaha4 -> Successfully activated
    /dev/mapper/pdc_jhjbcaha5 -> Successfully activated
    /dev/mapper/pdc_jhjbcaha6 -> Successfully activated

Then I returned to installer with Alt+F1 (?) and click "Return" to return to partitioning menu. I did NOT change anything just selected again "Continue" and everything goes smoothly.

I hope this will help someone.

arkadius

Idon't know, but maybe this is connected with bug:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/941874

.

Arkadius (arkadius)
description: updated
Revision history for this message
Arkadius (arkadius) wrote :
Revision history for this message
Arkadius (arkadius) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dmraid (Ubuntu):
status: New → Confirmed
Revision history for this message
Pekka Hämäläinen (pekka-hamalainen) wrote :

Hi,

just adding two photos about failing installation; the first photo shows that installer is correctly trying to place grup on the raid root, the second one shows that instead of placing installation on the raid root it tries to address one of the raid disks - apparently it fails

Revision history for this message
Phillip Susi (psusi) wrote :

Can you run dmraid -s please?

Changed in dmraid (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Pekka Hämäläinen (pekka-hamalainen) wrote :

Here

root@ubuntu:/home/ubuntu# dmraid -s
*** Active Set
name : nvidia_bcfbcidd
size : 1465191168
stride : 128
type : raid5_ls
status : ok
subsets: 0
devs : 4
spares : 0

/Pekka

Revision history for this message
Phillip Susi (psusi) wrote :

Pekka, your issue is unrelated to this bug.

Revision history for this message
Pekka Hämäläinen (pekka-hamalainen) wrote :

Ok - should I create yet another bug or do you know an existing one I could contribute?

Revision history for this message
Arkadius (arkadius) wrote :

My output

arek@domek:~/Pulpit$ sudo dmraid -s
*** Active Set
name : pdc_jhjbcaha
size : 1953124992
stride : 128
type : mirror
status : ok
subsets: 0
devs : 2
spares : 0
arek@domek:~/Pulpit$

Arkadius
.

Revision history for this message
Phillip Susi (psusi) wrote :

Hrm.... how about sudo parted /dev/mapper/pdc_jhjbcaha print?

Revision history for this message
Arkadius (arkadius) wrote :

arek@domek:~$ export LANG=en_EN.UTF-8
arek@domek:~$ sudo parted /dev/mapper/pdc_jhjbcaha
GNU Parted 2.3
Using /dev/mapper/pdc_jhjbcaha
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: Linux device-mapper (mirror) (dm)
Disk /dev/mapper/pdc_jhjbcaha: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 32.3kB 268GB 268GB primary ntfs boot
 2 268GB 271GB 2155MB primary linux-swap(v1)
 3 271GB 292GB 21.5GB primary ext4
 4 292GB 1000GB 708GB extended
 5 292GB 346GB 53.7GB logical ext4
 6 346GB 1000GB 654GB logical ext4

(parted)

Arkadius
.

Revision history for this message
Phillip Susi (psusi) wrote :

Can you run bash -x /sbin/dmraid-activate pdc_jhjbcaha and attach the output?

Revision history for this message
Arkadius (arkadius) wrote :
Download full text (4.7 KiB)

arek@domek:~$ sudo bash -x /sbin/dmraid-activate pdc_jhjbcaha
[sudo] password for arek:
+ grep -qs '\<nodmraid\>' /proc/cmdline
+ modprobe -q dm_mod
+ '[' -z pdc_jhjbcaha ']'
+ '[' pdc_jhjbcaha = --degraded ']'
+ '[' pdc_jhjbcaha = --degraded ']'
+ Node_Name=pdc_jhjbcaha
++ dmraid -i -r -cr /dev/pdc_jhjbcaha
++ grep -vi 'No RAID disks'
++ grep -vi 'formats discovered'
+ Raid_Name=
+ '[' -z '' ']'
+ exit 0

Because there is NO such device
/dev/pdc_jhjbcaha

There is

arek@domek:~$ ls -l /dev/mapper/
razem 0
crw-rw---- 1 root scanner 10, 236 maj 15 21:37 control
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha -> ../dm-0
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha1 -> ../dm-1
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha2 -> ../dm-2
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha3 -> ../dm-3
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha4 -> ../dm-4
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha5 -> ../dm-5
lrwxrwxrwx 1 root root 7 maj 15 21:37 pdc_jhjbcaha6 -> ../dm-6

arek@domek:~$ ls -l /dev/mapper/pdc_jhjbcaha
lrwxrwxrwx 1 root root 7 maj 15 21:37 /dev/mapper/pdc_jhjbcaha -> ../dm-0

arek@domek:~$ sudo bash -x /sbin/dmraid-activate dm-0
+ grep -qs '\<nodmraid\>' /proc/cmdline
+ modprobe -q dm_mod
+ '[' -z dm-0 ']'
+ '[' dm-0 = --degraded ']'
+ '[' dm-0 = --degraded ']'
+ Node_Name=dm-0
++ dmraid -i -r -cr /dev/dm-0
++ grep -vi 'No RAID disks'
++ grep -vi 'formats discovered'
+ Raid_Name=
+ '[' -z '' ']'
+ exit 0

arek@domek:~$ ls -l /dev/dm-0
brw-rw---- 1 root disk 252, 0 maj 15 21:37 /dev/dm-0

arek@domek:~$ sudo dmraid -dv -i -r -cr /dev/dm-0
DEBUG: not isw at 999999994880
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 999998913024
no raid disks and with names: "/dev/dm-0"

arek@domek:~$ sudo dmraid -diay
DEBUG: not isw at 654222287360
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 654221205504
DEBUG: not isw at 53694594560
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 53693512704
DEBUG: not isw at 707916947456
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 707915865600
DEBUG: not isw at 21484430336
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 21483348480
DEBUG: not isw at 2155022336
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 2153940480
DEBUG: not isw at 999999994880
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 999998913024
DEBUG: not isw at 268440204800
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 268439122944
DEBUG: not isw at 1000204884992
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 1000203803136
DEBUG: not isw at 1000204884992
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 1000203803136
DEBUG: _find_set: searching pdc_jhjbcaha
DEBUG: _find_set: not found pdc_jhjbcaha
DEBUG: _find_set: searching pdc_jhjbcaha
DEBUG: _find_set: not found pdc_jhjbcaha
DEBUG: _find_set: searching pdc_jhjbcaha
DEBUG: _find_set: found pdc_jhjbcaha
DEBUG: _find_set: searching pdc_jhjbcaha
DEBUG: _find_set: found pdc_jhjbcaha
DEBUG: checking pdc device "/dev/sda"
DEBUG: checking pdc device "/dev/sdb"
DEBUG: set status...

Read more...

Revision history for this message
Arkadius (arkadius) wrote :

BUT

arek@domek:~$ sudo dmraid -i -r -cde
/dev/sdb
/dev/sda
arek@domek:~$ sudo dmraid -i -r -cr
pdc_jhjbcaha
pdc_jhjbcaha
arek@domek:~$ sudo dmraid -i -r -cf
pdc
pdc
arek@domek:~$ sudo dmraid -i -r -ct
mirror
mirror
arek@domek:~$ sudo dmraid -i -r -cst
ok
ok
arek@domek:~$

arek@domek:~$ sudo dmraid -dv -i -r -cr
DEBUG: not isw at 654222287360
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 654221205504
DEBUG: not isw at 53694594560
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 53693512704
DEBUG: not isw at 707916947456
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 707915865600
DEBUG: not isw at 21484430336
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 21483348480
DEBUG: not isw at 2155022336
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 2153940480
DEBUG: not isw at 999999994880
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 999998913024
DEBUG: not isw at 268440204800
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 268439122944
DEBUG: not isw at 1000204884992
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 1000203803136
DEBUG: not isw at 1000204884992
DEBUG: isw trying hard coded -2115 offset.
DEBUG: not isw at 1000203803136
INFO: RAID devices discovered:

pdc_jhjbcaha
pdc_jhjbcaha

Arkadius
.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dmraid (Ubuntu) because there has been no activity for 60 days.]

Changed in dmraid (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Phillip Susi (psusi) wrote :

Oops, sorry, I goofed there. I should have said sudo bash -x /sbin/dmraid-activate /dev/sda.

Changed in dmraid (Ubuntu):
status: Expired → Incomplete
Revision history for this message
Arkadius (arkadius) wrote :

Output:

arek@domek:~$ sudo bash -x /sbin/dmraid-activate /dev/sda
+ grep -qs '\<nodmraid\>' /proc/cmdline
+ modprobe -q dm_mod
+ '[' -z /dev/sda ']'
+ '[' /dev/sda = --degraded ']'
+ '[' /dev/sda = --degraded ']'
+ Node_Name=/dev/sda
++ dmraid -i -r -cr /dev//dev/sda
++ grep -vi 'No RAID disks'
++ grep -vi 'formats discovered'
+ Raid_Name=
+ '[' -z '' ']'
+ exit 0

Revision history for this message
Arkadius (arkadius) wrote :

Output 2:

arek@domek:~$ sudo bash -x /sbin/dmraid-activate sda
+ grep -qs '\<nodmraid\>' /proc/cmdline
+ modprobe -q dm_mod
+ '[' -z sda ']'
+ '[' sda = --degraded ']'
+ '[' sda = --degraded ']'
+ Node_Name=sda
++ grep -vi 'formats discovered'
++ dmraid -i -r -cr /dev/sda
++ grep -vi 'No RAID disks'
+ Raid_Name=pdc_jhjbcaha
+ '[' -z pdc_jhjbcaha ']'
+ newline='
'
+ case "$Raid_Name" in
+ activate_array pdc_jhjbcaha
++ dmraid -i -si pdc_jhjbcaha
+ Raid_Setinfo=
+ '[' -z '' ']'
+ log_error 'Cannot retrieve RAID set information for pdc_jhjbcaha'
+ type logger
+ logger -t dmraid-activate 'ERROR: Cannot retrieve RAID set information for pdc_jhjbcaha'
+ return 1
+ break
/sbin/dmraid-activate: line 261: break: ma sens tylko w pętli `for', `while' lub `until'
+ exit

.

Revision history for this message
Phillip Susi (psusi) wrote :

How about sudo dmraid -v -si pdc_jhjbcaha?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dmraid (Ubuntu) because there has been no activity for 60 days.]

Changed in dmraid (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.