below is a level two storage server deployment
configuring level Two storage
1: Install the service Pack
[Email protected] sysconfig]# yum-y install Rpcbind nfs-utils
2: Create a shared directory
[Email protected] sysconfig]# mkdir/secondary
3: Create configuration file
[Email protected] sysconfig]# Vim/etc/exports
/secondary 192.168.1.0/24 (Rw,no_root_squash)
4: Determine if the port is occupied
[Email protected] sysconfig]# NETSTAT-ANPTU | grep 1012
[Email protected] sysconfig]# NETSTAT-ANPTU | grep 1013
5: Secure the NFS Port
Mountd 1012/tcp # Rpc.mountd
Mountd 1012/UDP # Rpc.mountd
Rquotad 1013/tcp # Rpc.rquotad
Rquotad 1013/UDP # Rpc.rquotad
6: Configure firewall
[Email protected] sysconfig]# Vim/etc/sysconfig/iptables
-A input-s 192.168.1.0/24-p tcp-m multiport--dports 111,2049,1012,1013,32768-j ACCEPT
-A input-s 192.168.1.0/24-p udp-m multiport--dports 111,2019,1012,1013,32768-j ACCEPT
[Email protected] sysconfig]# service iptables restart
7: Start NFS - related services
[Email protected] sysconfig]# service Rpcbind restart
[[Email protected] sysconfig]# Service NFS Start
8: Set the service to start
[Email protected] sysconfig]# chkconfig rpcbind on
[[email protected] sysconfig]# chkconfig NFS on
The bottom is to import the KVM template into level two storage
3. Level Two storage
3.1 using level two storage
1) Create mount point
[Email protected] cloudstack]# mkdir/secondary
2) Mount level two storage
[Email protected] ~]# mount-t NFS 192.168.1.131:/secondary/secondary/
3.2 Importing KVM templates
1) upload the kvm template and rename it
This template is downloaded, otherwise it will take a long time.
http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2
[Email protected] ~]# pwd
/root
[[email protected] ~]# ls
acton-systemvm-02062012.qcow2.bz2 anaconda-ks.cfg Install.log Install.log.syslog
[Email protected] ~]# MV acton-systemvm-02062012.qcow2.bz2 kvm.bz2
2) Import the system KVM template
[Email protected]~]#/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt-m/secondary /-f/root/kvm.bz2-h Kvm-f
Uncompressing to/usr/share/cloudstack-common/scripts/storage/secondary/ Df08b26b-08a0-401f-809d-0b38908bc630.qcow2.tmp (type bz2) ... could take a long time
Moving To/secondary/template/tmpl/1/3///df08b26b-08a0-401f-809d-0b38908bc630.qcow2...could take a while
Successfully installed system VM template/root/kvm.bz2 to/secondary/template/tmpl/1/3/
3) Management node offload level two storage and start cloudstack service
[Email protected] ~]# umount/secondary/;rm-rf/secondary/
4) Start cloudstack service
[email protected] ~]# cloudstack-setup-management
Starting to configure CloudStack Management Server:
Configure Firewall ... [OK]
Configure CloudStack Management Server ... [OK]
CloudStack Management Server Setup is done!
This article is from the "Court of the Odd Tree" blog, please be sure to keep this source http://zhangdl.blog.51cto.com/11050780/1881830
Cloudstack Level Two storage deployment (iv)