create 20GB with command fallocate to /media/data_ssd/testfile20G.
=== Space usage ===
Total space : 659.81 GB
Used space : 0.00 bytes
Free space : 626.05 GB 94.88%
Copy head.img to SD card
# mount /dev/sdd1 /mnt && cp /home/test/Desktop/head.img /mnt/root/ && sync && umount /mnt
Copy rootfs to SSD
# echo -e "d\nd\nn\np\n1\n\n\nw" | fdisk /dev/sdf && mkfs.ext4 /dev/sdf1 && mount /dev/sdf1 /mnt && rsync -av /clone-ssd/ /mnt/ && sync && umount /mnt
Replace nand
| ## Consul | |
| $ docker run -d -p "8500:8500" -h "consul" progrium/consul -server -bootstrap | |
| ## DigitalOcean | |
| $ docker-machine create -d generic -generic-ip-address=128.199.106.191 --swarm --swarm-discovery="consul://128.199.106.191:8500" --engine-opt="cluster-store=consul://128.199.106.191:8500" --engine-opt="cluster-advertise=eth0:2376" ds | |
| ## local | |
| docker-machine create \ | |
| -d virtualbox \ | |
| --swarm --swarm-master \ |
| root@rack-5-node-201:~# docker run -d -p 8400:8400 -p 8500:8500 -p 8600:53/udp --net=host aiyara/consul agent -server -data-dir /data -bootstrap-expect 1 | |
| 80b222d676a17d751fceb33af371f911d1e306591091283fe717357edaaf247a | |
| root@rack-5-node-201:~# docker ps | |
| CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
| 80b222d676a1 aiyara/consul "/bin/consul agent -s" 2 seconds ago Up 1 seconds elegant_torvalds | |
| root@rack-5-node-201:~# docker images | |
| REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
| docker-dev HEAD 1f493bc7f57f 26 hours ago 1.771 GB | |
| <none> <none> 2c620bc9baf3 26 hours ago 1.626 GB | |
| <none> <none> 4ce425aa4780 27 hours ago 1.626 GB |
| pk007server@localhost:~/WIP | |
| $ cat provision.yml | |
| --- | |
| machines: | |
| node: | |
| driver: aiyara | |
| instances: 3 | |
| base-index: 1 | |
| base-address: 192.168.5.202/24 | |
| cluster-store: node-master |
first, clone git repository frome ceph upstream or inside my account (https://github.com/Aorjoa/ceph).
./install-deps.sh
./autogen.sh
./configure --without-tcmalloc
remove option -momit-leaf-frame-pointer in this file (because it's not support yet).
vi /media/data_ssd/docker_engine_arm/ceph/src/rocksdb/Makefile
and then run make command.
| def keywordAndCell = [ | |
| 'SubjectID':'B8','SubjectName':'','GradeType':'','Deegree':'','Major':'', | |
| 'SubjectType':'','Teachers':'','Term':'','Year':'','CourseCondition':'', | |
| 'CourseSimultaneous':'','Place':'','Feedback':'','Objective':'','Proposal':'', | |
| 'SubjectDescription':'','HRLecture':'','HRAdditionLecture':'','HRLab':'','HRSelfLearn':'', | |
| 'HRAdvice':'','WaysToImprove':'','MoralRecieve':'','MoralToTeach':'','MoralToEvaluate':'', | |
| 'KnowledgeRecieve':'','KnowledgeToLearn':'','KnowledgeToEvaluate':'','WisdomRecieve':'','WisdomToTeach':'', | |
| 'WisdomToEvaluate':'','ResponsibilityRecieve':'','ResponsibilityToEvaluate':'','ResponsibilityToLearn':'','NumericRecieve':'', | |
| 'NumericToTeach':'','NumericToEvaluate':'','SkillRecieve':'','SkillToTeach':'','SkillToEvaluate':'', | |
| 'Week1Subject':'','Week1Hr':'','Week1Des':'','Week1Teacher':'', |
| /* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License version 2 and | |
| * only version 2 as published by the Free Software Foundation. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. |
| dd if=/dev/zero of=./btrfs.bin count=1000k | |
| mknod /dev/btrfs_data b 7 2 | |
| losetup /dev/btrfs_data ./btrfs.bin | |
| mkfs.btrfs -f -n 4096 /dev/btrfs_data |