opensuse / open-fcoe Goto Github PK
View Code? Open in Web Editor NEWopen-fcoe package for openSUSE
Home Page: http://www.open-fcoe.org
License: GNU General Public License v2.0
open-fcoe package for openSUSE
Home Page: http://www.open-fcoe.org
License: GNU General Public License v2.0
FCoE Management Tools Installation Guide ======================================== The FCoE Management Tools included in this package are fcoeadm - program to create, reset, destroy, and display FCoE interfaces fcoemon - program to monitor the events from the DCB daemon Requirements: The HBAAPI library and the HBAAPI vendor library source must be built and installed before you can build the management tools. Both the HBAAPI library, libHBAAPI, and the HBAAPI vendor library, libhbalinux, may be downloaded from www.Open-FCoE.org. The instructions in the package describe how to download and build the libraries. Best Practices : Any newly discovered disk can be mounted using udev rules, autofs and possibly by other methods as needed. However, if a fcoe disk is needed by any other system service that follows the fcoe service then the disk will need to be mounted at some point after the fcoe service, but before the service that requires the disk. That mounting could possibly be added to the fcoe service script itself, or to a new service script that would run after fcoe, but before the script that requires the fcoe disk. The following is an example of how to mount a fcoe disk formatted with an ext3 file system using /etc/fstab. mount_fcoe_disks_from_fstab() { local timeout=20 local done=1 local fcoe_disks=($(egrep 'by-path\/fc-.*_netdev' /etc/fstab | cut -d ' ' -f1)) test -z $fcoe_disks && return 0 echo -n "Waiting for fcoe disks . " while [ $timeout -gt 0 ]; do for disk in ${fcoe_disks[*]}; do if ! test -b $disk; then done=0 break fi done test $done -eq 1 && break; sleep 1 echo -n ". " done=1 let timeout-- done if test $timeout -eq 0; then echo "timeout!" else echo "done!" fi # mount any newly discovered disk mount -a 2>/dev/null } The mount_fcoe_disks_from_fstab function should be invoked after the fcoemon daemon is started by the fcoe service script to mount any fcoe disk specified by path in /etc/fstab as:- /dev/disk/by-path/fc-0xXX:0xXX /mnt/fcoe-disk1 ext3 defaults,_netdev 0 0 /dev/disk/by-path/fc-0xYY:0xYY /mnt/fcoe-disk2 ext3 defaults,_netdev 0 0 The /dev/disk/by-path entries with "fc-" and "_netdev" in their names enables mount_fcoe_disks_from_fstab to identify the fcoe disks so that it can wait for the fcoe disks to be discovered. If they are not added to the system within the timeout period the function will exit, the timeout is set to 20 seconds but can be changed to suit the environment. See man fstab(5) for for more details on mounting filesystems.
Hi,
i got an error when building fcoe-utils...any idea?
gerald@ubuntu:~/fcoe-utils$ make
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/fcoe_utils.o lib/fcoe_utils.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/sa_log.o lib/sa_log.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/sa_select.o lib/sa_select.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/sa_timer.o lib/sa_timer.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/sa_other.o lib/sa_other.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/fip.o lib/fip.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/rtnetlink.o lib/rtnetlink.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o lib/sa_sys.o lib/sa_sys.c
rm -f lib/libutil.a
ar cru lib/libutil.a lib/fcoe_utils.o lib/sa_log.o lib/sa_select.o lib/sa_timer.o lib/sa_other.o lib/fip.o lib/rtnetlink.o lib/sa_sys.o
ranlib lib/libutil.a
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o libopenfcoe.o libopenfcoe.c
rm -f libopenfcoe.a
ar cru libopenfcoe.a libopenfcoe.o
ranlib libopenfcoe.a
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o fcoeadm-fcoeadm.o test -f 'fcoeadm.c' || echo './'
fcoeadm.c
gcc -DPACKAGE_NAME="fcoe-utils" -DPACKAGE_TARNAME="fcoe-utils" -DPACKAGE_VERSION="1.0.28" -DPACKAGE_STRING="fcoe-utils\ 1.0.28" -DPACKAGE_BUGREPORT="[email protected]" -DPACKAGE_URL="" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -DPACKAGE="fcoe-utils" -DVERSION="1.0.28" -I. -I./include -I./include -DSYSCONFDIR=""/etc"" -D_FORTIFY_SOURCE=2 -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -c -o fcoeadm-fcoeadm_display.o test -f 'fcoeadm_display.c' || echo './'
fcoeadm_display.c
gcc -Wall -Wformat=2 -Werror -Wmissing-prototypes -Wstrict-prototypes -O2 -g -lHBAAPI -ldl -o fcoeadm fcoeadm-fcoeadm.o fcoeadm-fcoeadm_display.o lib/libutil.a libopenfcoe.a
fcoeadm-fcoeadm_display.o: In function hba_table_list_init': /home/gerald/fcoe-utils/fcoeadm_display.c:1038: undefined reference to
HBA_GetNumberOfAdapters'
/home/gerald/fcoe-utils/fcoeadm_display.c:1060: undefined reference to HBA_GetAdapterName' /home/gerald/fcoe-utils/fcoeadm_display.c:1068: undefined reference to
HBA_OpenAdapter'
/home/gerald/fcoe-utils/fcoeadm_display.c:1076: undefined reference to HBA_GetAdapterAttributes' /home/gerald/fcoe-utils/fcoeadm_display.c:1079: undefined reference to
HBA_CloseAdapter'
/home/gerald/fcoe-utils/fcoeadm_display.c:1088: undefined reference to HBA_GetAdapterPortAttributes' /home/gerald/fcoe-utils/fcoeadm_display.c:1092: undefined reference to
HBA_CloseAdapter'
fcoeadm-fcoeadm_display.o: In function hba_table_list_destroy': /home/gerald/fcoe-utils/fcoeadm_display.c:1012: undefined reference to
HBA_CloseAdapter'
fcoeadm-fcoeadm_display.o: In function get_device_capacity_v2': /home/gerald/fcoe-utils/fcoeadm_display.c:431: undefined reference to
HBA_ScsiReadCapacityV2'
fcoeadm-fcoeadm_display.o: In function fcoeadm_loadhba': /home/gerald/fcoe-utils/fcoeadm_display.c:1020: undefined reference to
HBA_LoadLibrary'
fcoeadm-fcoeadm_display.o: In function display_port_stats': /home/gerald/fcoe-utils/fcoeadm_display.c:1170: undefined reference to
HBA_GetPortStatistics'
/home/gerald/fcoe-utils/fcoeadm_display.c:1189: undefined reference to HBA_GetFC4Statistics' /home/gerald/fcoe-utils/fcoeadm_display.c:1219: undefined reference to
HBA_FreeLibrary'
/home/gerald/fcoe-utils/fcoeadm_display.c:1159: undefined reference to HBA_FreeLibrary' fcoeadm-fcoeadm_display.o: In function
fcoeadm_loadhba':
/home/gerald/fcoe-utils/fcoeadm_display.c:1020: undefined reference to HBA_LoadLibrary' fcoeadm-fcoeadm_display.o: In function
display_adapter_info':
/home/gerald/fcoe-utils/fcoeadm_display.c:1302: undefined reference to HBA_FreeLibrary' fcoeadm-fcoeadm_display.o: In function
fcoeadm_loadhba':
/home/gerald/fcoe-utils/fcoeadm_display.c:1020: undefined reference to HBA_LoadLibrary' fcoeadm-fcoeadm_display.o: In function
display_target_info':
/home/gerald/fcoe-utils/fcoeadm_display.c:1399: undefined reference to HBA_FreeLibrary' /home/gerald/fcoe-utils/fcoeadm_display.c:1360: undefined reference to
HBA_GetDiscoveredPortAttributes'
fcoeadm-fcoeadm_display.o: In function get_device_map': /home/gerald/fcoe-utils/fcoeadm_display.c:812: undefined reference to
HBA_GetFcpTargetMappingV2'
fcoeadm-fcoeadm_display.o: In function get_inquiry_data_v2': /home/gerald/fcoe-utils/fcoeadm_display.c:347: undefined reference to
HBA_ScsiInquiryV2'
collect2: error: ld returned 1 exit status
make: *** [fcoeadm] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.