Tuesday, November 04, 2008
Floating error RDEHAT 4.2 AND RDEHAT 5.2
It will casue floating error, even u just excute a bin which compile on RDEHAT 5.2 x64 on REDHAT 4.2 x64.
It's strange. There are some article on gnu group.
It's strange. There are some article on gnu group.
Some issuse for HBAAPI 2.2
I can't compile the HBAAPI 2.2 from it's source file. Below is file list.
hbaapi.h hbaapitest.c hbasample.c makefile.nt vendorhbaapi.h HBAAPILIB.c hbasample.h makefile.unix version.c hba.conf readme.txt version.o hba.reg
some issuses:
1.Make -f makefile.unix
just show can't compile error1.
I found a makefile which download from a gentoo group, I name it makefile.linux, it's seem work.
At least it compile succesfully.
This is different part.
libHBAAPI.so: HBAAPILIB.c hbaapi.h vendorhbaapi.h ${VERS} ${CC} -fPIC -g -c -Wall HBAAPILIB.c ${CC} -shared -Wl,-soname,libHBAAPI.so -o libHBAAPI.so version.o HBAAPILIB.o -rdynamic -ldl
2. I execute the haaapitest.
It show segmant fault error. I de bug the through the code, I found it get a invalid address after it use function strtok() . Google from web, it seem a error which include a wrong header file.
use strings.h . strtok() use a share memory to split the string, in the new libray it has been moved to string.h , so if you just use the strings.h it will casue the segmant fault error.
Use string.h replace the strings.h, this binary could be run succesfully.
hbaapi.h hbaapitest.c hbasample.c makefile.nt vendorhbaapi.h HBAAPILIB.c hbasample.h makefile.unix version.c hba.conf readme.txt version.o hba.reg
some issuses:
1.Make -f makefile.unix
just show can't compile error1.
I found a makefile which download from a gentoo group, I name it makefile.linux, it's seem work.
At least it compile succesfully.
This is different part.
libHBAAPI.so: HBAAPILIB.c hbaapi.h vendorhbaapi.h ${VERS} ${CC} -fPIC -g -c -Wall HBAAPILIB.c ${CC} -shared -Wl,-soname,libHBAAPI.so -o libHBAAPI.so version.o HBAAPILIB.o -rdynamic -ldl
2. I execute the haaapitest.
It show segmant fault error. I de bug the through the code, I found it get a invalid address after it use function strtok() . Google from web, it seem a error which include a wrong header file.
use strings.h . strtok() use a share memory to split the string, in the new libray it has been moved to string.h , so if you just use the strings.h it will casue the segmant fault error.
Use string.h replace the strings.h, this binary could be run succesfully.
Labels: HBAAPI strtok strings.h string.h
How to recan an scsi disk on Linux
There are some usefull scripts.
1.http://www.garloff.de/kurt/linux/ rescan-scsi-bus.sh .This script could scan the scsi disk.
2. For ql FC devices, it's look strange.
I can't just use this script to rescan and discovery the new disk which attach to the server. I have to
Use this
# echo "scsi-qlascan" > /proc/scsi// (qlogic driver re-scans)where can be either one: qla2100/qla2200/qla2300 is the instance number of the HBA.
Before I use the
# echo "- - -" > /sys/class/scsi_host/host9/scan
To rescan the SCSI disk
I don't know the root reason of this. Any body help for this.
3. Just use the script which could be found from the ql website.
ql-dynamic-tgt-lun-disc.sh
support.qlogic.com/support/oem_product_detail.asp?p_id=934&oemid=284&oemname=QLE2460
1.http://www.garloff.de/kurt/linux/ rescan-scsi-bus.sh .This script could scan the scsi disk.
2. For ql FC devices, it's look strange.
I can't just use this script to rescan and discovery the new disk which attach to the server. I have to
Use this
# echo "scsi-qlascan" > /proc/scsi/
Before I use the
# echo "- - -" > /sys/class/scsi_host/host9/scan
To rescan the SCSI disk
I don't know the root reason of this. Any body help for this.
3. Just use the script which could be found from the ql website.
ql-dynamic-tgt-lun-disc.sh
support.qlogic.com/support/oem_product_detail.asp?p_id=934&oemid=284&oemname=QLE2460
Labels: FC ql SCSI
Subscribe to Posts [Atom]
Scrape It |