#176 Issue closed: problem recover 2 logical drives on one array

Labels: enhancement, support / question

OandOSpaceboy opened issue at 2012-11-08 07:32:

I have a problem to recover 2 logical drives on one array. Rear recover only creates the first logical ...

2012-11-07 11:51:32.633432000 Clearing HP SmartArray controller 2
2012-11-07 11:51:36.220455000 Clearing HP SmartArray controller 0
2012-11-07 11:51:39.261360000 Recreating HP SmartArray controller 2|A
2012-11-07 11:51:42.473100000 Configuration restored successfully, reloading CCISS driver...
PROGRESS: /usr/share/rear/lib/_input-output-functions.sh: line 91: type: udevadm: not found
PROGRESS: udevtrigger is /sbin/udevtrigger
PROGRESS: /usr/share/rear/lib/_input-output-functions.sh: line 91: type: udevadm: not found
PROGRESS: udevsettle is /sbin/udevsettle
2012-11-07 11:51:52.512378000 Recreating HP SmartArray controller 0|A
2012-11-07 11:51:55.648808000 Configuration restored successfully, reloading CCISS driver...
PROGRESS: /usr/share/rear/lib/_input-output-functions.sh: line 91: type: udevadm: not found
PROGRESS: udevtrigger is hashed (/sbin/udevtrigger)
PROGRESS: /usr/share/rear/lib/_input-output-functions.sh: line 91: type: udevadm: not found
PROGRESS: udevsettle is hashed (/sbin/udevsettle)
2012-11-07 11:52:05.694404000 Engage SCSI on host /proc/driver/cciss/cciss0
2012-11-07 11:52:05.697378000 Engage SCSI on host /proc/driver/cciss/cciss1
2012-11-07 11:52:05.703828000 Engage SCSI on host /proc/driver/cciss/cciss2
2012-11-07 11:52:07.709675000 Including layout/prepare/default/25_compare_disks.sh
2012-11-07 11:52:07.712126000 Comparing disks.
2012-11-07 11:52:07.717467000 Looking for cciss!c0d0...
2012-11-07 11:52:07.719623000 Device cciss!c0d0 exists.
2012-11-07 11:52:07.724591000 Device cciss!c0d0 has size 599932581888, 204007833600 expected
PROGRESS: Device does not exist.
PROGRESS: Command failed
2012-11-07 11:52:07.731771000 Looking for cciss!c0d1...
2012-11-07 11:52:07.734092000 Device cciss!c0d1 does not exist.
2012-11-07 11:52:07.737583000 Looking for cciss!c2d0...
2012-11-07 11:52:07.739557000 Device cciss!c2d0 exists.
2012-11-07 11:52:07.744578000 Device cciss!c2d0 has size 599932581888, 204007833600 expected
PROGRESS: Device does not exist.
PROGRESS: Command failed
2012-11-07 11:52:07.751613000 Looking for cciss!c2d1...
2012-11-07 11:52:07.753799000 Device cciss!c2d1 does not exist.
2012-11-07 11:52:07.756476000 Switching to manual disk layout configuration.
2012-11-07 11:52:07.759237000 Including layout/prepare/default/30_map_disks.sh
PROGRESS: Device does not exist.
PROGRESS: Command failed
PROGRESS: Device does not exist.
PROGRESS: Command failed
2012-11-07 11:52:08.096308000 Disk cciss/c0d0 does not exist in the target system. Please choose the appropriate replacement.

Here you find the debug files (one with option -Dv and one with option -d):

https://gist.github.com/fb349f65c5ff38bb9a54
https://gist.github.com/d8f6becd7b6235e6c44e

cheers :-)

gdha commented at 2012-11-08 08:12:

Would it be possible to retry the exercise with our latest release (1.14)? You can download it from http://relax-and-recover.org/download/
thanks, Gratien

jhoekx commented at 2012-11-08 09:58:

Frank, can you also post the /var/lib/rear/layout/disklayout.conf file?

OandOSpaceboy commented at 2012-11-08 10:11:

Hey Jeroen,

Nice to see you online ;-)

Greetz,
Frank

git@gist.github.com:bf3f882bdeb6a9740803.git

jhoekx commented at 2012-11-08 10:19:

Thanks,

The configuration that was saved from the original system is already missing the disks.
Can you post the output of rear -vD savelayout on the original system?

If you need to complete this restore first, you should add the missing lines to /var/lib/rear/layout/disklayout.conf in your rescue system, like:

logicaldrive /dev/cciss/c2d0 2|A|1 raid=5 drives=? spares= sectors=32 stripesize=
logicaldrive /dev/cciss/c0d0 0|A|1 raid=5 drives=? spares= sectors=32 stripesize=

I don't know which drives should be used for them, you can probably figure that out :-)

OandOSpaceboy commented at 2012-11-08 12:06:

as requested the output of rear -vD savelayout

https://gist.github.com/cef24c13c9c35d175ccc

jhoekx commented at 2012-11-17 14:35:

I was looking at this again today. Sorry for the delay.

Can you post the output of hpacucli controller all show config? From the savelayout log it looks like the drives of the missing disks are not in the hpacucli output.

OandOSpaceboy commented at 2012-11-19 14:15:

No problem for the delay ;-)

https://gist.github.com/76bd0e637c5373e7adf7

jhoekx commented at 2012-11-19 14:47:

Ok, I see.

There are some incorrect assumptions in the current implementation. I did not realize that you could have multiple logical drives in one array and the physical drives are per array (which is logical if you think about it).

It's not a quick fix...

OandOSpaceboy commented at 2012-11-19 20:10:

I have a workaround so I don't need the fix ... hope you have enough information to fix the problem when somebody need it ;-)
Thanks for the support Jeroen !!!


[Export of Github issue for rear/rear.]