Comment 13 for bug 1063429

Revision history for this message
Arkadius (arkadius) wrote :

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 of set "pdc_jhjbcaha" to 16
DEBUG: checking pdc device "/dev/sda"
DEBUG: checking pdc device "/dev/sdb"
DEBUG: set status of set "pdc_jhjbcaha" to 16
RAID set "pdc_jhjbcaha" already active
DEBUG: _find_set: searching pdc_jhjbcaha1
DEBUG: _find_set: not found pdc_jhjbcaha1
DEBUG: _find_set: searching pdc_jhjbcaha2
DEBUG: _find_set: not found pdc_jhjbcaha2
DEBUG: _find_set: searching pdc_jhjbcaha3
DEBUG: _find_set: not found pdc_jhjbcaha3
DEBUG: _find_set: searching pdc_jhjbcaha5
DEBUG: _find_set: not found pdc_jhjbcaha5
DEBUG: _find_set: searching pdc_jhjbcaha6
DEBUG: _find_set: not found pdc_jhjbcaha6
RAID set "pdc_jhjbcaha1" already active
RAID set "pdc_jhjbcaha2" already active
RAID set "pdc_jhjbcaha3" already active
RAID set "pdc_jhjbcaha5" already active
RAID set "pdc_jhjbcaha6" already active
DEBUG: freeing devices of RAID set "pdc_jhjbcaha"
DEBUG: freeing device "pdc_jhjbcaha", path "/dev/sda"
DEBUG: freeing device "pdc_jhjbcaha", path "/dev/sdb"
DEBUG: freeing devices of RAID set "pdc_jhjbcaha1"
DEBUG: freeing device "pdc_jhjbcaha1", path "/dev/mapper/pdc_jhjbcaha"
DEBUG: freeing devices of RAID set "pdc_jhjbcaha2"
DEBUG: freeing device "pdc_jhjbcaha2", path "/dev/mapper/pdc_jhjbcaha"
DEBUG: freeing devices of RAID set "pdc_jhjbcaha3"
DEBUG: freeing device "pdc_jhjbcaha3", path "/dev/mapper/pdc_jhjbcaha"
DEBUG: freeing devices of RAID set "pdc_jhjbcaha5"
DEBUG: freeing device "pdc_jhjbcaha5", path "/dev/mapper/pdc_jhjbcaha"
DEBUG: freeing devices of RAID set "pdc_jhjbcaha6"
DEBUG: freeing device "pdc_jhjbcaha6", path "/dev/mapper/pdc_jhjbcaha"

Arkadius
.