發表文章

Cobbler介绍

reference: http://hi.baidu.com/chenshake/blog/item/6f2e4f66860b9204aa184c75.html

Install nova essex(all-in-one) with dodai-deploy on ubuntu 12.04

reference: http://www.guanxiaohua2k6.com/2012/04/install-openstack-nova-essex-with-dodai.html

Install nova essex(multiple machines) with dodai-deploy on ubuntu 12.04

reference: http://www.guanxiaohua2k6.com/2012/04/install-openstack-nova-essexmultiple.html

Kickstart Options

reference: http://www.centos.org/docs/4/html/rhel-sag-en-4/s1-kickstart2-options.html

NADBCPRV

NADBCPRV N: Need why we need to do it what thing should we do A: Approach how to achieve it D: Design approve that you can make it B: Benefit measurable benefit after we finish it C: Competitive can we compete with other people? P: Plan schedule R: Resource resource V: Value how much money we can gain?

手動mount一個 LVM的Patition

第一件事就是載入LVM所需要的module $ modprobe dm-mod 接著就是找出partiton中的VG(Volume Group),以我的狀況為例,我將硬碟以usb連接到電腦後,由dmesg可以知道有 /dev/sda1, /dev/sda2兩個patitons,在以 fdisk -l /dev/sda 可以知道/dev/sda2是LVM格式。接著,我就執行: $ pvscan PV /dev/sda2 VG VolGroup00 lvm2 [18.50 GB / 32.00 MB free] Total: 1 [18.50 GB] / in use: 1 [18.50 GB] / in no VG: 0 [0 ] 從以上結果,我可以知道我有一個VG,叫做VolGroup00,他的PV(Physical Volume)是 /dev/sda2 接著我就執行: $ vgchange -ay VolGroup00 $ ls /dev/VolGroup00/ LogVol00 LogVol01 這時候vgchange會在/dev下產生一個VolGroup00的目錄,並且在這個目錄下產生該有的device(其實是link到 /dev/mapper下)。然後我利用 ls就可以知道VolGroup00這個VG下有兩個LV(Logical Volume)。分別是LogVol00 與 LogVol01。然後我只要mount我要的就可以了。 $ mkdir /mnt/usb $ mount /dev/VolGroup00/LogVol00 /mnt/usb/

OpenStack Cluster

環境描述: 1.3個node(各裝nova services),3個rabbitmq做cluster, 2個kvm hypervisor, 1個xen hypervisor 安裝步驟: 1. RabbitMQ Cluster install: 3個node各裝: aptitude -y install rabbitmq-server python-pika 2. Setup: Set Cookie Erlang nodes use a cookie to determine whether they are allowed to communicate with each other - for two nodes to be able to communicate they must have the same cookie. The cookie is just a string of alphanumeric characters. It can be as long or short as you like. Erlang will automatically create a random cookie file when the RabbitMQ server starts up. This will be typically located in /var/lib/rabbitmq/.erlang.cookie on Unix systems. root@rabbit1:~# ls -l /var/lib/rabbitmq/.erlang.cookie -r-------- 1 rabbitmq rabbitmq 15 May 9 18:15 /var/lib/rabbitmq/.erlang.cookie root@rabbit1:~# echo "WIWYNNRABBITMQ" > /var/lib/rabbitmq/.erlang.cookie root@rabbit1:~# reboot; # to make cookie take effect 3. Starting independent nodes: Clusters are set up by re-confi...