Wednesday, February 25, 2015

Linux : rescue grub.conf file

Problem: After grub.conf are modified, kernel cannot be boot and will show the following error :

Kernel panic - not syncing : VFS : Unable to mount root fs on unknown-block(0,0)

Root cause : In grub.conf, kernel and initrd should be 2 separate lines

Fix : During boot menu, press c to enter grub command line

grub > kernel /vmlinuz-2.6.32-431.29.2.el6.x86_64  root=/dev/mapper/vg0-rootvol  (press tab after /v )
grub > initrd /initramfs-2.6.32-431.29.2.el6.x86_64.img (press tab after /initramfs )
grub > boot

After system is up, modify grub.conf file again

Thursday, February 19, 2015

Linux : building HP IO Accelerator driver from source

# yum install kernel-devel kernel-headers rpm-build gcc rsync
Loaded plugins: aliases, changelog, downloadonly, presto, security, tmprepo,
              : verify, versionlock
Setting up Install Process
rh6_64_ref                                               | 3.7 kB     00:00
Package kernel-devel-2.6.32-504.3.3.el6.x86_64 already installed and latest version
Package kernel-headers-2.6.32-504.3.3.el6.x86_64 already installed and latest version
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Package rsync-3.0.6-12.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package rpm-build.x86_64 0:4.8.0-38.el6_6 will be installed
--> Processing Dependency: /usr/bin/gdb-add-index for package: rpm-build-4.8.0-38.el6_6.x86_64
--> Running transaction check
---> Package gdb.x86_64 0:7.2-75.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package          Arch          Version                 Repository         Size
================================================================================
Installing:
 rpm-build        x86_64        4.8.0-38.el6_6          rh6_64_ref        127 k
Installing for dependencies:
 gdb              x86_64        7.2-75.el6              rh6_64_ref        2.3 M

Transaction Summary
================================================================================
Install       2 Package(s)

Total download size: 2.4 M
Installed size: 5.6 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 2.4 M
(1/2): gdb-7.2-75.el6.x86_64.rpm                         | 2.3 MB     00:00
(2/2): rpm-build-4.8.0-38.el6_6.x86_64.rpm               | 127 kB     00:00
--------------------------------------------------------------------------------
Total                                            55 MB/s | 2.4 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : gdb-7.2-75.el6.x86_64                                        1/2
  Installing : rpm-build-4.8.0-38.el6_6.x86_64                              2/2
  Verifying  : gdb-7.2-75.el6.x86_64                                        1/2
  Verifying  : rpm-build-4.8.0-38.el6_6.x86_64                              2/2

Installed:
  rpm-build.x86_64 0:4.8.0-38.el6_6

Dependency Installed:
  gdb.x86_64 0:7.2-75.el6

Complete!

# rpmbuild --rebuild iomemory-vsl4-4.0.2.983-1.0.el6.src.rpm
Installing iomemory-vsl4-4.0.2.983-1.0.el6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zanM4F
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd /root/rpmbuild/BUILD
+ rm -rf iomemory-vsl4-4.0.2.983
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/iomemory-vsl4-4.0.2.983.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd iomemory-vsl4-4.0.2.983
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nkCFEB
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd iomemory-vsl4-4.0.2.983
+ rsync -rv root/usr/src/fio/iomemory-vsl4/ driver_source/
sending incremental file list
created directory driver_source
./
Kbuild
Makefile
cdev.c
check_target_kernel.sh
driver_init.c
errno.c
iomemory-vsl4.mod.c
kblock.c
kcache.c
kcondvar.c
kcpu.c
kcsr.c
kfile.c
kfio.c
kfio_config.sh
khotplug.c
kinfo.c
kinit.c
kmem.c
kscatter.c
kscsi.c
kscsi_host.c
ksubmit_queue.c
ksubmit_queue.h
ktime.c
license.c
main.c
module_param.c
pci.c
port-internal.h
sched.c
six_lock.c
state.c
sysrq.c
include/
include/fio/
include/fio/common/
include/fio/common/uuid.h
include/fio/port/
include/fio/port/align.h
include/fio/port/atomic_list.h
include/fio/port/bitops.h
include/fio/port/byteswap.h
include/fio/port/cdev.h
include/fio/port/commontypes.h
include/fio/port/compiler.h
include/fio/port/csr_simulator.h
include/fio/port/dbgset.h
include/fio/port/errno.h
include/fio/port/fio-poppack.h
include/fio/port/fio-port.h
include/fio/port/fio-pshpack1.h
include/fio/port/fio-stat.h
include/fio/port/fiostring.h
include/fio/port/ifio.h
include/fio/port/ioctl.h
include/fio/port/kbio.h
include/fio/port/kblock.h
include/fio/port/kcache.h
include/fio/port/kcondvar.h
include/fio/port/kcpu.h
include/fio/port/kcsr.h
include/fio/port/kfio.h
include/fio/port/kfio_config.h
include/fio/port/kglobal.h
include/fio/port/kinfo.h
include/fio/port/kmem.h
include/fio/port/kpci.h
include/fio/port/kscatter.h
include/fio/port/kscsi.h
include/fio/port/ksubmit_queue.h
include/fio/port/ktime.h
include/fio/port/ktypes.h
include/fio/port/ktypes_32.h
include/fio/port/ktypes_64.h
include/fio/port/libgen.h
include/fio/port/list.h
include/fio/port/nexus.h
include/fio/port/pci.h
include/fio/port/port_config.h
include/fio/port/port_config_macros.h
include/fio/port/port_config_macros_clear.h
include/fio/port/port_config_vars_externs.h
include/fio/port/ranges.h
include/fio/port/sched.h
include/fio/port/six_lock.h
include/fio/port/state.h
include/fio/port/stdint.h
include/fio/port/tree.h
include/fio/port/ufio.h
include/fio/port/unaligned.h
include/fio/port/utypes.h
include/fio/port/vararg.h
include/fio/port/version.h
include/fio/port/arch/
include/fio/port/arch/ppc/
include/fio/port/arch/ppc/atomic.h
include/fio/port/arch/ppc/bits.h
include/fio/port/arch/ppc/cache.h
include/fio/port/arch/x86_common/
include/fio/port/arch/x86_common/atomic.h
include/fio/port/arch/x86_common/bits.h
include/fio/port/arch/x86_common/cache.h
include/fio/port/common-linux/
include/fio/port/common-linux/commontypes.h
include/fio/port/common-linux/compiler.h
include/fio/port/common-linux/div64.h
include/fio/port/common-linux/errno.h
include/fio/port/common-linux/kassert.h
include/fio/port/common-linux/kblock.h
include/fio/port/common-linux/kcondvar.h
include/fio/port/common-linux/kfile.h
include/fio/port/common-linux/kfio.h
include/fio/port/common-linux/kpci.h
include/fio/port/common-linux/kscsi.h
include/fio/port/common-linux/kscsi_config.h
include/fio/port/common-linux/stdint.h
include/fio/port/common-linux/ufio.h
include/fio/port/gcc/
include/fio/port/gcc/align.h
include/fio/port/linux/
include/fio/port/linux/ktypes.h
include/fio/port/linux/utypes.h
include/fio/public/
include/fio/public/fioapi.h
kfio/
kfio/.x86_64_cc34_libkfio.o.cmd
kfio/.x86_64_cc41_libkfio.o.cmd
kfio/.x86_64_cc42_libkfio.o.cmd
kfio/.x86_64_cc43_libkfio.o.cmd
kfio/.x86_64_cc44_libkfio.o.cmd
kfio/.x86_64_cc45_libkfio.o.cmd
kfio/.x86_64_cc46_libkfio.o.cmd
kfio/.x86_64_cc47_libkfio.o.cmd
kfio/.x86_64_cc48_libkfio.o.cmd
kfio/x86_64_cc34_libkfio.o_shipped
kfio/x86_64_cc41_libkfio.o_shipped
kfio/x86_64_cc42_libkfio.o_shipped
kfio/x86_64_cc43_libkfio.o_shipped
kfio/x86_64_cc44_libkfio.o_shipped
kfio/x86_64_cc45_libkfio.o_shipped
kfio/x86_64_cc46_libkfio.o_shipped
kfio/x86_64_cc47_libkfio.o_shipped
kfio/x86_64_cc48_libkfio.o_shipped

sent 14345332 bytes  received 2571 bytes  28695806.00 bytes/sec
total size is 14335239  speedup is 1.00
+ /usr/bin/make -C driver_source KERNELVER=2.6.32-504.3.3.el6.x86_64 FIO_DRIVER_NAME=iomemory-vsl4 modules
make: Entering directory `/root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source'
./kfio_config.sh -a x86_64 -o include/fio/port/linux/kfio_config.h -k /lib/modules/2.6.32-504.3.3.el6.x86_64/build -p -d /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfio_config -l 0
Detecting Kernel Flags
Config dir         : /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfio_config
Output file        : include/fio/port/linux/kfio_config.h
Kernel output dir  : /lib/modules/2.6.32-504.3.3.el6.x86_64/build
Kernel source dir  :
Starting tests:
  1424372525.755  KFIOC_MISSING_WORK_FUNC_T...
  1424372525.758  KFIOC_WORKDATA_PASSED_IN_WORKSTRUCT...
  1424372525.761  KFIOC_HAS_PCI_ERROR_HANDLERS...
  1424372525.765  KFIOC_HAS_GLOBAL_REGS_POINTER...
  1424372525.769  KFIOC_HAS_SYSRQ_KEY_OP_ENABLE_MASK...
  1424372525.773  KFIOC_HAS_DISK_STATS_READ_WRITE_ARRAYS...
  1424372525.776  KFIOC_HAS_LINUX_SCATTERLIST_H...
  1424372525.779  KFIOC_KMEM_CACHE_CREATE_REMOVED_DTOR...
  1424372525.783  KFIOC_BIO_ENDIO_REMOVED_BYTES_DONE...
  1424372525.786  KFIOC_INVALIDATE_BDEV_REMOVED_DESTROY_DIRTY_BUFFERS...
  1424372525.790  KFIOC_NEEDS_VIRT_TO_PHYS...
  1424372525.794  KFIOC_HAS_BLK_UNPLUG...
  1424372525.798  KFIOC_HAS_BLK_DELAY_QUEUE...
  1424372525.802  KFIOC_REQUEST_QUEUE_HAS_UNPLUG_FN...
  1424372525.806  KFIOC_REQUEST_QUEUE_UNPLUG_FN_HAS_EXTRA_BOOL_PARAM...
  1424372525.809  KFIOC_BACKING_DEV_INFO_HAS_UNPLUG_IO_FN...
  1424372525.812  KFIOC_HAS_KMEM_CACHE...
  1424372525.816  KFIOC_HAS_NOTIFIER_FROM_ERRNO...
  1424372525.818  KFIOC_STRUCT_FILE_HAS_PATH...
  1424372525.820  KFIOC_HAS_PATH_LOOKUP...
  1424372525.822  KFIOC_UNREGISTER_BLKDEV_RETURNS_VOID...
  1424372525.824  KFIOC_PARTITION_STATS...
  1424372525.828  KFIOC_HAS_NEW_BLOCK_METHODS...
  1424372525.829  KFIOC_BLOCK_DEVICE_RELEASE_RETURNS_INT...
  1424372525.832  KFIOC_HAS_NEW_BLKDEV_METHODS...
  1424372525.834  KFIOC_HAS_BLKDEV_OLD_BD_SEM...
  1424372525.836  KFIOC_HAS_COMPAT_IOCTL_METHOD...
  1424372525.838  KFIOC_COMPAT_IOCTL_RETURNS_LONG...
  1424372525.840  KFIOC_DISCARD...
  1424372525.842  KFIOC_HAS_REQ_UNPLUG...
  1424372525.845  KFIOC_HAS_BIO_RW_SYNC...
  1424372525.849  KFIOC_HAS_BIO_RW_UNPLUG...
  1424372525.851  KFIOC_DISCARD_GRANULARITY_IN_LIMITS...
  1424372525.853  KFIOC_BARRIER...
  1424372525.856  KFIOC_USE_LINUX_UACCESS_H...
  1424372525.862  KFIOC_HAS_SPIN_LOCK_IRQSAVE_NESTED...
  1424372525.864  KFIOC_MODULE_PARAM_ARRAY_NUMP...
  1424372525.869  KFIOC_OWNER_IN_STRUCT_PROC_DIR_ENTRY...
  1424372525.873  KFIOC_CONFIG_PREEMPT_RT...
  1424372525.875  KFIOC_CONFIG_TREE_PREEMPT_RCU...
  1424372525.880  KFIOC_HAS_BLK_QUEUE_HARDSECT_SIZE...
  1424372525.883  KFIOC_HAS_END_REQUEST...
  1424372525.885  KFIOC_USE_IO_SCHED...
  1424372525.892  KFIOC_USE_NEW_IO_SCHED...
  1424372525.894  KFIOC_HAS_ELV_DEQUEUE_REQUEST...
  1424372525.896  KFIOC_HAS_BIO_RW_FLAGGED...
  1424372525.899  KFIOC_HAS_INFLIGHT_RW...
  1424372525.904  KFIOC_HAS_INFLIGHT_RW_ATOMIC...
  1424372525.907  KFIOC_PCI_DMA_MAPPING_ERROR_TAKES_DEV...
  1424372525.911  KFIOC_HAS_BLK_LIMITS_IO_MIN...
  1424372525.914  KFIOC_HAS_BLK_LIMITS_IO_OPT...
  1424372525.918  KFIOC_HAS_BLK_QUEUE_MAX_SEGMENTS...
  1424372525.922  KFIOC_HAS_UNIFIED_BLKTYPES...
  1424372525.931  KFIOC_HAS_BIO_RW_DISCARD...
  1424372525.936  KFIOC_HAS_BIO_RW_ATOMIC...
  1424372525.940  KFIOC_SYSRQ_HANDLER_NEEDS_TTY_STRUCT...
  1424372525.947  KFIOC_PCI_REQUEST_REGIONS_CONST_CHAR...
  1424372525.950  KFIOC_FOPS_USE_LOCKED_IOCTL...
  1424372525.956  KFIOC_HAS_RQ_POS_BYTES...
  1424372525.968  KFIOC_HAS_RQ_IS_SYNC...
  1424372525.981  KFIOC_HAS_RQ_FOR_EACH_BIO...
  1424372525.989  KFIOC_HAS_REQ_RW_SYNC...
  1424372525.992  KFIOC_BIOSET_CREATE_HAS_THIRD_ARG...
  1424372526.003  KFIOC_QUEUE_HAS_NONROT_FLAG...
  1424372526.007  KFIOC_QUEUE_HAS_RANDOM_FLAG...
  1424372526.014  KFIOC_KBLOCKD_SCHEDULE_HAS_QUEUE_ARG...
  1424372526.023  KFIOC_TASK_HAS_NR_CPUS_ALLOWED_DIRECT...
  1424372526.037  KFIOC_TASK_HAS_NR_CPUS_ALLOWED_RT...
  1424372526.040  KFIOC_NUMA_MAPS...
  1424372526.049  KFIOC_PCI_HAS_NUMA_INFO...
  1424372526.056  KFIOC_CACHE_ALLOC_NODE_TAKES_FLAGS...
  1424372526.072  KFIOC_NEW_BARRIER_SCHEME...
  1424372526.077  KFIOC_HAS_QUEUE_FLAG_CLUSTER...
  1424372526.088  KFIOC_HAS_QUEUE_LIMITS_CLUSTER...
  1424372526.091  KFIOC_HAS_QUEUE_FLAG_CLEAR_UNLOCKED...
  1424372526.102  KFIOC_HAS_BIO_COMP_CPU...
  1424372526.112  KFIOC_BVEC_KMAP_IRQ_HAS_LONG_FLAGS...
  1424372526.119  KFIOC_MAKE_REQUEST_FN_VOID...
  1424372526.125  KFIOC_HAS_BLK_FS_REQUEST...
  1424372526.130  KFIOC_KMAP_ATOMIC_NEEDS_TYPE...
  1424372526.135  KFIOC_HAS_BLK_ALLOC_QUEUE_NODE...
  1424372526.147  KFIOC_HAS_NEW_QUEUECOMMAND_SIGNATURE...
  1424372526.155  KFIOC_HAS_SCSI_SG_FNS...
  1424372526.161  KFIOC_HAS_SCSI_SG_COPY_FNS...
  1424372526.168  KFIOC_HAS_SCSI_RESID_FNS...
  1424372526.171  KFIOC_HAS_PROCFS_PDE_DATA...
  1424372526.177  KFIOC_HAS_PROC_CREATE_DATA...
  1424372526.189  KFIOC_SGLIST_NEW_API...
  1424372526.201  KFIOC_ACPI_EVAL_INT_TAKES_UNSIGNED_LONG_LONG...
Started tests, waiting for completions...
  1424372528.314  KFIOC_MISSING_WORK_FUNC_T=0
  1424372528.383  KFIOC_WORKDATA_PASSED_IN_WORKSTRUCT=1
  1424372528.451  KFIOC_HAS_PCI_ERROR_HANDLERS=1
  1424372528.515  KFIOC_HAS_GLOBAL_REGS_POINTER=1
  1424372528.581  KFIOC_HAS_SYSRQ_KEY_OP_ENABLE_MASK=1
  1424372528.651  KFIOC_HAS_DISK_STATS_READ_WRITE_ARRAYS=1
  1424372528.710  KFIOC_HAS_LINUX_SCATTERLIST_H=1
  1424372528.776  KFIOC_KMEM_CACHE_CREATE_REMOVED_DTOR=1
  1424372528.841  KFIOC_BIO_ENDIO_REMOVED_BYTES_DONE=1
  1424372528.904  KFIOC_INVALIDATE_BDEV_REMOVED_DESTROY_DIRTY_BUFFERS=1
  1424372528.973  KFIOC_NEEDS_VIRT_TO_PHYS=0
  1424372529.037  KFIOC_HAS_BLK_UNPLUG=1
  1424372529.094  KFIOC_HAS_BLK_DELAY_QUEUE=0
  1424372529.163  KFIOC_REQUEST_QUEUE_HAS_UNPLUG_FN=1
  1424372529.228  KFIOC_REQUEST_QUEUE_UNPLUG_FN_HAS_EXTRA_BOOL_PARAM=0
  1424372529.299  KFIOC_BACKING_DEV_INFO_HAS_UNPLUG_IO_FN=1
  1424372529.371  KFIOC_HAS_KMEM_CACHE=1
  1424372529.441  KFIOC_HAS_NOTIFIER_FROM_ERRNO=1
  1424372529.513  KFIOC_STRUCT_FILE_HAS_PATH=0
  1424372529.582  KFIOC_HAS_PATH_LOOKUP=1
  1424372529.654  KFIOC_UNREGISTER_BLKDEV_RETURNS_VOID=1
  1424372529.716  KFIOC_PARTITION_STATS=1
  1424372529.781  KFIOC_HAS_NEW_BLOCK_METHODS=1
  1424372529.852  KFIOC_BLOCK_DEVICE_RELEASE_RETURNS_INT=1
  1424372529.923  KFIOC_HAS_NEW_BLKDEV_METHODS=0
  1424372529.992  KFIOC_HAS_BLKDEV_OLD_BD_SEM=0
  1424372530.063  KFIOC_HAS_COMPAT_IOCTL_METHOD=1
  1424372530.132  KFIOC_COMPAT_IOCTL_RETURNS_LONG=1
  1424372530.185  KFIOC_DISCARD=1
  1424372530.252  KFIOC_HAS_REQ_UNPLUG=0
  1424372530.323  KFIOC_HAS_BIO_RW_SYNC=0
  1424372530.392  KFIOC_HAS_BIO_RW_UNPLUG=1
  1424372530.453  KFIOC_DISCARD_GRANULARITY_IN_LIMITS=1
  1424372530.511  KFIOC_BARRIER=1
  1424372530.576  KFIOC_USE_LINUX_UACCESS_H=1
  1424372530.642  KFIOC_HAS_SPIN_LOCK_IRQSAVE_NESTED=1
  1424372530.714  KFIOC_MODULE_PARAM_ARRAY_NUMP=1
  1424372530.782  KFIOC_OWNER_IN_STRUCT_PROC_DIR_ENTRY=0
  1424372530.845  KFIOC_CONFIG_PREEMPT_RT=0
  1424372530.913  KFIOC_CONFIG_TREE_PREEMPT_RCU=0
  1424372530.981  KFIOC_HAS_BLK_QUEUE_HARDSECT_SIZE=0
  1424372531.051  KFIOC_HAS_END_REQUEST=0
  1424372531.121  KFIOC_USE_IO_SCHED=1
  1424372531.186  KFIOC_USE_NEW_IO_SCHED=1
  1424372531.253  KFIOC_HAS_ELV_DEQUEUE_REQUEST=0
  1424372531.324  KFIOC_HAS_BIO_RW_FLAGGED=1
  1424372531.396  KFIOC_HAS_INFLIGHT_RW=1
  1424372531.462  KFIOC_HAS_INFLIGHT_RW_ATOMIC=0
  1424372531.524  KFIOC_PCI_DMA_MAPPING_ERROR_TAKES_DEV=1
  1424372531.587  KFIOC_HAS_BLK_LIMITS_IO_MIN=1
  1424372531.652  KFIOC_HAS_BLK_LIMITS_IO_OPT=1
  1424372531.712  KFIOC_HAS_BLK_QUEUE_MAX_SEGMENTS=1
  1424372531.775  KFIOC_HAS_UNIFIED_BLKTYPES=1
  1424372531.843  KFIOC_HAS_BIO_RW_DISCARD=1
  1424372531.911  KFIOC_HAS_BIO_RW_ATOMIC=0
  1424372531.974  KFIOC_SYSRQ_HANDLER_NEEDS_TTY_STRUCT=1
  1424372532.038  KFIOC_PCI_REQUEST_REGIONS_CONST_CHAR=1
  1424372532.109  KFIOC_FOPS_USE_LOCKED_IOCTL=1
  1424372532.168  KFIOC_HAS_RQ_POS_BYTES=1
  1424372532.239  KFIOC_HAS_RQ_IS_SYNC=1
  1424372532.301  KFIOC_HAS_RQ_FOR_EACH_BIO=1
  1424372532.366  KFIOC_HAS_REQ_RW_SYNC=1
  1424372532.437  KFIOC_BIOSET_CREATE_HAS_THIRD_ARG=0
  1424372532.503  KFIOC_QUEUE_HAS_NONROT_FLAG=1
  1424372532.572  KFIOC_QUEUE_HAS_RANDOM_FLAG=1
  1424372532.641  KFIOC_KBLOCKD_SCHEDULE_HAS_QUEUE_ARG=1
  1424372532.703  KFIOC_TASK_HAS_NR_CPUS_ALLOWED_DIRECT=0
  1424372532.772  KFIOC_TASK_HAS_NR_CPUS_ALLOWED_RT=1
  1424372532.842  KFIOC_NUMA_MAPS=1
  1424372532.913  KFIOC_PCI_HAS_NUMA_INFO=1
  1424372532.980  KFIOC_CACHE_ALLOC_NODE_TAKES_FLAGS=1
  1424372533.043  KFIOC_NEW_BARRIER_SCHEME=1
  1424372533.112  KFIOC_HAS_QUEUE_FLAG_CLUSTER=1
  1424372533.181  KFIOC_HAS_QUEUE_LIMITS_CLUSTER=0
  1424372533.242  KFIOC_HAS_QUEUE_FLAG_CLEAR_UNLOCKED=0
  1424372533.312  KFIOC_HAS_BIO_COMP_CPU=1
  1424372533.384  KFIOC_BVEC_KMAP_IRQ_HAS_LONG_FLAGS=0
  1424372533.456  KFIOC_MAKE_REQUEST_FN_VOID=0
  1424372533.517  KFIOC_HAS_BLK_FS_REQUEST=0
  1424372533.584  KFIOC_KMAP_ATOMIC_NEEDS_TYPE=1
  1424372533.651  KFIOC_HAS_BLK_ALLOC_QUEUE_NODE=1
  1424372533.715  KFIOC_HAS_NEW_QUEUECOMMAND_SIGNATURE=0
  1424372533.779  KFIOC_HAS_SCSI_SG_FNS=1
  1424372533.840  KFIOC_HAS_SCSI_SG_COPY_FNS=1
  1424372533.903  KFIOC_HAS_SCSI_RESID_FNS=1
  1424372533.967  KFIOC_HAS_PROCFS_PDE_DATA=1
  1424372534.038  KFIOC_HAS_PROC_CREATE_DATA=1
  1424372534.110  KFIOC_SGLIST_NEW_API=1
  1424372534.168  KFIOC_ACPI_EVAL_INT_TAKES_UNSIGNED_LONG_LONG=1
Finished
1424372534.196  Exiting
Preserving configdir due to '-p' option: /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfio_config
/usr/bin/make \
    -j32 \
        -C /lib/modules/2.6.32-504.3.3.el6.x86_64/build \
        FIO_DRIVER_NAME=iomemory-vsl4 \
        FUSION_DRIVER_DIR=/root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source \
        SUBDIRS=/root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source \
        EXTRA_CFLAGS+="-I/root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/include -DBUILDING_MODULE -DLINUX_IO_SCHED -Wall -Werror" \
        INSTALL_MOD_DIR=extra/fio \
        INSTALL_MOD_PATH= \
        KFIO_LIB=kfio/x86_64_cc44_libkfio.o_shipped \
        modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-504.3.3.el6.x86_64'
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/main.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/license.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/pci.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/sysrq.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/driver_init.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfio.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/errno.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/state.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/six_lock.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kcache.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfile.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kmem.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kscatter.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/ksubmit_queue.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/ktime.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/sched.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/cdev.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kscsi.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kscsi_host.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kblock.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kcpu.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kcondvar.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kinfo.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kinit.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/khotplug.o
  SHIPPED /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kfio/x86_64_cc44_libkfio.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/kcsr.o
  CC [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/module_param.o
  LD [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/iomemory-vsl4.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/iomemory-vsl4.mod.o
  LD [M]  /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/iomemory-vsl4.ko.unsigned
  NO SIGN [M] /root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source/iomemory-vsl4.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-504.3.3.el6.x86_64'
make: Leaving directory `/root/rpmbuild/BUILD/iomemory-vsl4-4.0.2.983/driver_source'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.ubXcI6
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd iomemory-vsl4-4.0.2.983
++ cd /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64
/var/tmp/rpm-tmp.ubXcI6: line 28: cd: /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64: No such file or directory
+ '[' '' '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64
+ rsync -a root/ /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/
+ mkdir -p /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/lib/modules/2.6.32-504.3.3.el6.x86_64/extra/fio
+ cp driver_source/iomemory-vsl4.ko /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/lib/modules/2.6.32-504.3.3.el6.x86_64/extra/fio
+ mv /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/usr/share/doc/iomemory-vsl4 /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/usr/share/doc/iomemory-vsl4-2.6.32-504.3.3.el6.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/usr/src/fio/iomemory-vsl4/include/fio/port/linux
+ touch -a driver_source/Module.symvers
+ cp driver_source/Module.symvers /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/usr/src/fio/iomemory-vsl4/
+ cp driver_source/include/fio/port/linux/kfio_config.h /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64/usr/src/fio/iomemory-vsl4/include/fio/port/linux/
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: iomemory-vsl4-2.6.32-504.3.3.el6.x86_64-4.0.2.983-1.0.el6.x86_64
Provides: iomemory-vsl4 iomemory-vsl4-4.0.2.983
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Obsoletes: iodrive-driver fio-driver
Processing files: iomemory-vsl4-config-2.6.32-504.3.3.el6.x86_64-4.0.2.983-1.0.el6.x86_64
Provides: iomemory-vsl4-config iomemory-vsl4-config-4.0.2.983
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: iomemory-vsl4-source-4.0.2.983-1.0.el6.x86_64
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: /bin/sh
Obsoletes: iodrive-driver-source fio-driver-source
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64
Wrote: /root/rpmbuild/RPMS/x86_64/iomemory-vsl4-2.6.32-504.3.3.el6.x86_64-4.0.2.983-1.0.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/iomemory-vsl4-config-2.6.32-504.3.3.el6.x86_64-4.0.2.983-1.0.el6.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/iomemory-vsl4-source-4.0.2.983-1.0.el6.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.4i691N
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd iomemory-vsl4-4.0.2.983
+ /bin/rm -rf /root/rpmbuild/BUILDROOT/iomemory-vsl4-4.0.2.983-1.0.el6.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.ynJvDE
+ umask 022
+ cd /root/rpmbuild/BUILD
+ rm -rf iomemory-vsl4-4.0.2.983
+ exit 0

Monday, February 16, 2015

SDN : MidoNet

http://docs.midonet.org/index.html

MidoNet is a distributed, de-centralized, software-defined virtual network platform for Infrastructure as a Service (IaaS).

MidoNet fully virtualizes the network functionality for IaaS products, such as OpenStack, providing functionally advanced, robust, scalable, and secure networks. MidoNet is an overlay network that runs software on standard x86 servers, and sits on top of any scalable network underlay (for example, physical servers and switches), pushing the intelligent network functions to the edge of the network, in software.

MidoNet sends virtual network traffic over tunnels created between the edges. The tunnels encapsulate the packets coming from virtual machines (VMs) and exterior ports, and decouple the virtual network traffic from the physical network. With this model, changes in the virtual network, for example, creating new virtual machines, don’t affect the state of the underlay network. In addition, this clear separation between the virtual and physical networks allows the administrator to more easily maintain the IaaS platform.

MidoNet key features

These are the key features of MidoNet:
  • Fully virtualized Layer 2 through 4 networking
  • VLAN-less VLANs – Virtual L2 distributed isolation and switching with virtually none of the limitations of conventional VLANs
  • Fully distributed architecture with no single points of failure
  • Virtual L3 distributed routing
  • Distributed load balancing and firewall services
  • Stateful and stateless NAT
  • Access Control Lists (ACLs)
  • Restful API
  • Monitoring of networking services
  • VXLAN support: VXLAN tunnel zones, VXLAN L2 Gateway
  • Zero-delay NAT connection tracking

MidoNet works very well with OpenStack, Icehouse release, taking over nearly all of the networking functions currently found in OpenStack, including Layer 2 network isolation, Layer 3 routing, security groups, floating IPs, and more.
MidoNet integrates with OpenStack by providing an OpenStack Networking plugin, as well as drivers for OpenStack Networking. End users can use the same OpenStack API, GUI, and CLI commands; MidoNet hooks into existing API calls and handles all the networking calls in a seamless manner.

A MidoNet Network State Database is a cluster of servers that stores MidoNet configuration, run-time state, and statistics data.

MidoNet stores configuration-state information in two different systems. MidoNet uses Apache™ Zookeeper™ and Cassandra™ for coordinating the operation between MidoNet Agents, as well as storing the network configuration and state (Network State Database nodes).

MidoNet uses Apache ZooKeeper to store critical path data about the virtual and physical network topology.
Examples of this type of data are: interconnects between virtual machines (VMs) and bridges and routers; Address Resolution Protocol (ARP) and ND tables; and host Universally Unique Identifier (UUID) and Internet Protocol (IP) address registrations. The MidoNet Agents and the MidoNet API Server manage the schema for ZooKeeper. Because of the nature of the information stored within ZooKeeper, the schema is optimized for integrity and consistency of the data across the cluster instead of speed.

MidoNet uses Apache Cassandra version 2.0 to store flow state information, for example NAT bindings, connection tracking information, and to support VM migration.
While, MidoNet leverages Cassandra’s durability, fault tolerance, timed expirations, and low-latency read/writes, it only uses Cassandra as a backup rather than the primary datasource.

Artificial Intelligence Read

http://www.technologyreview.com/review/534871/our-fear-of-artificial-intelligence/

http://www.technologyreview.com/news/533686/2014-in-computing-breakthroughs-in-artificial-intelligence/

Friday, February 13, 2015

OpenStack : Manually installing and configuring Red Hat Enterprise Linux OpenStack Platform

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/index.html