2015年3月3日 星期二

[bug] make modules_prepare



Symptom:
- when compiling the driver, there maybe exist issue like :
......
In file included from include/linux/gfp.h:4:0,
                 from include/linux/slab.h:12,
                 from include/linux/percpu.h:5,
                 from include/asm/local.h:4,
                 from include/linux/module.h:19,
                 from
AX88179_178A_LINUX_DRIVER_v1.13.0_SOURCE/ax88179_178a.c:30:
include/linux/mmzone.h:18:26: fatal error: linux/bounds.h: No such file or directory
 #include <linux/bounds.h>
                          ^
.........

Root Cause:
- Header file miss.

Solution:
- go to kernel folder, issue the command:
make modules_prepare 
- after that, go back to make driver again

ref:
https://forums.gentoo.org/viewtopic-t-819002-start-0.html



2015年3月1日 星期日

[bug] Linux kernel menuconfig issue

symptom:
Makefile:434: *** mixed implicit and normal rules.  Stop.
Makefile:1551: *** mixed implicit and normal rules.  Stop.

root cause:
old Makefile format

solution:
(434) config %config: scripts_basic outputmakefile FORCE
(1551) / %/: prepare scripts FORCE

-->
(434) %config: scripts_basic outputmakefile FORCE
(1551) %/: prepare scripts FORCE

ref:
http://www.cnblogs.com/jevan/archive/2011/03/20/1989199.html


Linux online ebook

src:
http://www.linuxtopia.org/online_books/index.html

notes:
- 15'3/2:
  [1] this website lists some many Linux ebook including Andorid, iOS....etc. It's a great place for reference.
  [2] motiviation for this website is : kernel in a nutshell

2015年2月26日 星期四

no password for ssh

src:
- http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/
 https://docs.google.com/file/d/0B543p5wfySTQRkw2VTNkcmtBcDg/edit (prtpdf)

notes:
- 15'2/26:
   [TODO] need to confirm whether it works?

2015年2月25日 星期三

Git introduction

src:
- http://git-scm.com/book/en/v2/Getting-Started-Git-Basics
  https://docs.google.com/file/d/0B543p5wfySTQY2l2c3JDbkw5U3M/edit (mypdf)


notes:
15'2/26:
- Git use snapshot instead of file backup
- offline support
- 3 states : committed, modified, staged (loops)
- [TODO] check the operation & setup


2015年2月24日 星期二

STONITH

src:
[S01] http://en.wikipedia.org/wiki/STONITH

reference:
[R01] http://yimu1023.blog.163.com/blog/static/362522822008621511567/

content:
- [S01]
STONITH ("Shoot The Other Node In The Head" or "Shoot The Offending Node In The Head"), sometimes called STOMITH ("Shoot The Other Member/Machine In The Head"), is a technique for fencing in computer clusters.[1]
Fencing is the isolation of a failed node so that it does not cause disruption to a computer cluster. As its name suggests, STONITH fences failed nodes by resetting or powering down the failed node.
Multi-node error-prone contention in a cluster can have catastrophic results, such as if both nodes try writing to a shared storage resource. STONITH provides effective, if rather drastic, protection against these problems.
Single node systems use a comparable mechanism called a watchdog timer. A watchdog timer will reset the node if the node does not tell the watchdog circuit that it is operating well. A STONITH decision can be based on various decisions which can be customer specific plugins



notes:
15'2/25:
[S01]
- an idea to prevent multi brain issue in a cluster. Need to check the further implementation [TODO]


Multi-Volume Filesystem


src:
https://sort.symantec.com/public/documents/sfha/6.0/linux/productguides/html/sf_admin/ch25s01.htm

content:

About multi-volume file systems

Veritas File System (VxFS) provides support for multi-volume file systems when used in conjunction with the Veritas Volume Manager. Using multi-volume support (MVS), a single file system can be created over multiple volumes, each volume having its own properties. For example, it is possible to place metadata on mirrored storage while placing file data on better-performing volume types such as RAID-1+0 (striped and mirrored). The volume must be in the same disk group as the volume set, and it cannot already be a member of another volume set.
The MVS feature also allows file systems to reside on different classes of devices, so that a file system can be supported from both inexpensive disks and from expensive arrays. Using the MVS administrative interface, you can control which data goes on which volume types.
Note:
Multi-volume file system support is available only on file systems using disk layout Version 7 or later.


notes:
15'2/25:
- a concept that meta & user data could be separated but not sure whether the user data could be
(1) splitted and saved in different volume? [TODO]
(2) duplication in different volume? [TODO]