Jeff, looking at this again I was testing on two machines the server using
perc 5 the script created the file with no issues.
The problem seems an older server using perc 3 when I use the script it will
not create the character file. I believe its because its not registered in
the devices files or im not using the correct raid driver.
lsmod | grep raid
megaraid 40402 2
aacraid 55617 2
scsi_mod 130637 6
sg,megaraid,aic7xxx,scsi_transport_spi,aacraid,sd_mod
lspci | grep RAID
02:02.1 RAID bus controller: Dell PowerEdge Expandable RAID Controller 3/Si
(rev 01)
03:04.0 SCSI storage controller: Adaptec RAID subsystem HBA (rev 01)
sh -x ./megarpt
+ VERSION=0.3
+ MEGACTL=/root/megactl
+ DEVICE=/dev/megadev0
+ DEVICENAME=megadev
+ DEVICEPERM=644
++ basename ./megarpt
+ ME=megarpt
+ '[' -x /root/megactl ']'
++ /root/megactl -V
+ MEGACTLVERSION=0.4.1
++ grep megadev /proc/devices
++ awk '{print $1}'
+ MAJOR=
+ '[' -n '' -a '!' -e /dev/megadev0 ']'
+ '[' -e /dev/megadev0 ']'
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
6 lp
7 vcs
10 misc
13 input
21 sg
29 fb
128 ptm
136 pts
162 raw
180 usb
189 usb_device
253 aac
254 pcmcia
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jefferson Ogata
Sent: Tuesday, December 29, 2009 1:25 PM
To: [email protected]
Subject: Re: megactl
On 2009-12-29 15:01, P.A wrote:
> Jeff, I looked at the script and im not sure what the problem is, looking
at
> it all syntax looks right and should work but it never creates the file
and
> doesn't display any errors. I manually created the file with mknod with
the
> right id and its working now. if you want me to do any further tests on
that
> script just let me know.
Paul, it would be nice to see the output of "sh -x megasasrpt". Thanks!
_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq
_______________________________________________
Linux-PowerEdge mailing list
[email protected]
https://lists.us.dell.com/mailman/listinfo/linux-poweredge
Please read the FAQ at http://lists.us.dell.com/faq