Tux's lil' helper
Joined: 08 Aug 2002
Location: ONTARIO CANADA
|Posted: Tue Dec 29, 2015 5:23 pm Post subject: HP Smartarray 400i CCISS fix
Just a quick fix for anyone that might have an issue with CCISS driver in Kernel. When running grub2-mkconfig, and constantly encountering grub2 fails to get canonical path cciss errors, I've been searching for a solution for past 2-3 days.
In the end it was a simple fix.
My HP server has HP SmartArray 400i controller and it is not supported by HPSA driver.
So my SCSI raid instead of typically showing as /dev/sda, /dev/sdb show as /dev/cciss/c0d0, /dev/cciss/c0d0. Although this has been the norm, but something must have changed in the time I have been using it (or I am must have done something wrong).
To better illustrate the issue:
normally you see:
/dev/sda <<< As the first SCSI,SATA,SAS drive
/dev/sda1 <<< First Partition
/dev/sda2 <<<< Second Partition
/dev/sdaX <<< as the X partition
With CCISS driver & SmartArray Controller you see:
/dev/cciss/c0d0 <<<<<As the first drive/raid (where c0 is the first controller in the system, and d0 is the first disk/raid attached to the controller)
/dev/cciss/c0d0p1 << first partition
/dev/cciss/c0d0p2 << second partition
and so on ..
What changed is when running grub2-mkconfig, it would error out complaining about /dev/cciss!c0d0p3 (Third partition, the root partition in this case)
grub2-install /dev/cciss/c0d0 works fine
Anyhow, grub2-mkconfig & grub2-probe somehow expect /dev/cciss!c0d0p3 as the block device....
the simple fix was just to do:
ln /dev/cciss/c0d0p1 /dev/cciss!c0d0p1
ln /dev/cciss/c0d0p2 /dev/cciss!c0d0p2
ln /dev/cciss/c0d0p3 /dev/cciss!c0d0p3
and the problem was solved.
During my search to fix this, I found many posts regarding this, but no fix. So here it is.
All your Gentoo are belong to us.