Code:
# yum groupupdate "VA Management Node" "VA Control Center"
Code:
# yum groupupdate "VA Agent"
# yum groupupdate "VA Management Node" "VA Control Center"
# yum groupupdate "VA Agent"
# yum install pstorage-ostor
ostor-ctl create -n <hostname> -r /var/lib/ostor/configuration -c "pstorage://<cluster_name>/<ostor_dir> 4 5"
ostor-ctl create -n rs00360 -r /var/lib/ostor/configuration -c "pstorage://minicloudt9/s3-t9 3 3"
# service ostor-cfgd start # chkconfig ostor-cfgd on
ostor-ctl init-storage -n <hostname> -s <cluster_mount_point>
ostor-ctl init-storage -n rs00361 -s /pstorage/minicloudt9
# ostor-ctl add-host -r <cluster_mount_point>/<ostor_dir>
ostor-ctl add-host -r /pstorage/minicloudt9/s3-t9
# ostor-ctl add-s3gw -a <storage_IP>:9000
ostor-ctl add-s3gw -a 172.16.10.24:9000 ostor-ctl add-s3gw -a 172.16.10.25:9000 ostor-ctl add-s3gw -a 172.16.10.26:9000
# service ostor-agentd start # chkconfig ostor-agentd on
# ostor-ctl agent-status
# wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm # yum install nginx -y
upstream s3 {
server 172.16.10.24:9000; #S3 gateway 1 internal IP address
server 172.16.10.25:9000; #S3 gateway 2 internal IP address
server 172.16.10.26:9000; #S3 gateway 3 internal IP address
# Optional load balancing parameters (see http://nginx.org/en/docs/http/load_balancing.html)
}
server {
listen 80;
server_name s3.vinacis.com; #S3 endpoint. If you have DNS configured, replace the IP address with the corresponding hostname.
client_max_body_size 5g;
#charset koi8-r;
#access_log /var/log/nginx/log/host.access.log main;
location / {
fastcgi_pass_header Connection-close;
fastcgi_pass s3;
fastcgi_no_cache 1;
include fastcgi_params;
fastcgi_request_buffering off;
fastcgi_max_temp_file_size 0;
}
}
# service nginx start # chkconfig nginx on
# ostor-s3-admin create-user -e user@email.com
# modprobe nfsd
# vzctl stop 101 # vzctl set 101 --features nfsd:on --save # vzctl start 101
# yum install rpcbind nfs-utils
# chkconfig rpcbind on # service rpcbind start
MOUNTD_NFS_V3="yes" RPCNFSDARGS="-N 4" NFSD_MODULE="noload"
# chkconfig nfs on # service nfs start
# mkdir /data # vi /etc/exports /home 192.168.100.2(rw,sync,no_root_squash,no_subtree_check) # export -a
# modprobe nfs
# vzctl stop 102 # vzctl set 102 --features nfs:on --save # vzctl start 102
# cat /proc/filesystems
# yum install nfs-utils nfs-utils-lib rpcbind
# chkconfig rpcbind on # /etc/init.d/rpcbind start # chkconfig nfs on # /etc/init.d/nfs start
# mkdir /data
mount 192.168.100.1:/data /data
192.168.100.1:/data /data nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0