Andrea Righi a écrit :
Roger Chevalier wrote:
Thanks Andrea for the patch, some improvement, but still not really
working, got this error:
/dev/cciss/disc0/disc: No such file or directory
sfdisk: cannot open /dev/cciss/disc0/disc for reading
Using "sfdisk" to gather information about disk:
/dev/cciss/disc0/disc
Looking at devices is /dev , hardware device for first disk is
/dev/cciss/c0d0p0
(I don't know if this is sarge behaviour or cciss on 2.4 behaviour?)
OK, let's try again with a quite different approach (always using
/dev/*/c*d*p* names). See below.
-Andrea
Thanks Andrea ! I tested it successfully. (HP DL380G4 running debian
sarge kernel 2.4.27)
---
Index: sbin/si_prepareclient
===================================================================
--- sbin/si_prepareclient (revision 4291)
+++ sbin/si_prepareclient (working copy)
@@ -784,7 +784,20 @@
open(IN,"</proc/partitions") or croak("Couldn't open /proc/partitions for reading.");
while(<IN>) {
- if(/(\S*c[0-9]+d[0-9]+)p[0-9]+/) { # hardware raid devices (/dev/rd/c?d?, /dev/ida/c?d?, /dev/cciss/c?d?)
+ # Try to translate devfs disk names to the standard /dev names for
+ # hardware RAID disks with a non-standard naming schema.
+ # XXX: this works only with disks installed in the first hardware-RAID
+ # controller. It seems that the only way to find the right
+ # controller number is to look the major device number, that
+ # unfortunately is different for all the hardware-RAID disks of
+ # the different vendors that don't use a standard SCSI naming
+ # schema (/dev/sd*).
+ if (/(\S*)\/disc([0-9]+)\/part([0-9]+)/) {
+ $_ = "${1}/c0d${2}p${3}";
+ }
+
+ if (/(\S*c[0-9]+d[0-9]+)p[0-9]+/) {
+ # hardware raid devices (/dev/rd/c?d?, /dev/ida/c?d?, /dev/cciss/c?d?)
my $disk = $1;
unless(defined $excluded_disks{$disk}) {
$disks->{HWRAID}->{$disk}++;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users
|
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users