2016年8月28日 星期日

ceph-ansible stuck at "collect admin and bootstrap keys"

ceph 1.3.2 + ansible 2.1.1.0
root cause: mon was not properly launched
resolution: simply create a empty file, sysvinit to /var/lib/ceph/mon/{cluster}-{host}/sysvinit and then manually restart ceph mon service

2016年8月26日 星期五

nfs on tmpfs

add option fsid=1 in exports file

2016年8月24日 星期三

rhel7 boot option tips

static ip
format=ip:method:gw:netmask:hostname:ifname:none
ip=IP_ADDR::192.168.0.1:255.255.255.0:hostname:eth0:none

leave ifname to empty if you cannot predict the IFname. add net.ifnames=0 to boot option to disable device name inquiry from BIOS. (biosdevname=0)

inst.stage=nfs:nfsvers=3:nfs:192.168.0.1:/yum/rhel7.2
inst.repo=nfs:nfsvers=3:nfs:192.168.0.1:/yum/rhel7.2
inst.ks=http://192.168.0.1/yum/rhel7.2


pxelinux.0 4.0.4 supports image fetching through http.


inst.stage2=http://10.5.15.10/repo/rhel7.5_ceph3.0 text inst.sshd console=tty0 console=ttyS1,115200n8 vlan=vlan1214:enp61s0f0 ksdevice=vlan1214 ip=10.102.14.53::10.102.14.1:255.255.255.0::vlan1214:none

2016年8月21日 星期日

extract centos7/rhel7 initramfs

# /usr/lib/dracut/skipcpio /boot/initramfs-3.10.0-327.18.2.el7.x86_64.img | gunzip -c | cpio -dcim
# /usr/lib/dracut/skipcpio /boot/initramfs-3.10.0-327.18.2.el7.x86_64.img | zcat | cpio -idmvc
extract initrd.img resided in isolinux folder.
xz -dc initrd.img|cpio -idmv

http://www.constantstream.com/2016/06/16/extract-initramfs-on-rhelcentos-7/

repack:
xz -z -9 -C crc32 -F xz 1
-C for --check
-F for --format

find . |cpio -c -o |xz -z -9 -C crc32 -F xz > /dev/shm/test.img

network interface name tweaking

apply following options for installation process.
net.ifnames=0 biosdevname=0

2016年8月11日 星期四

process bonding to CPU


list process which are run on specific processor.

ps -ax -o pid,cpuid,args,user|awk '$2 == 3{print $0}'

ps -ax -o pid,cpuid,args,user|awk '$3 == "/usr/bin/ceph-osd" {print $0}'

ref: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-cpuset.html
https://codywu2010.wordpress.com/2015/09/27/cpuset-by-example/