<?xml:namespace prefix="o">?xml:namespace>
1、内核编译
File systemsà
FUSE(Filesystem in Userspace) supportà
Network File Systemsà所有与NFS有关选项。
2、NFS安装
shell> emerge nfs-utils
3、NFS配置
shell> mkdir -p /share/admins
shell> mkdir -p /share/users
shell> mkdir -p /share/guests
shell> chmod 755 /share
shell> vi /etc/exports
share/admins 192.168.254.101/24(async,rw,no_subtree_check) /share/users 192.168.254.102/24(async,rw,no_subtree_check) /share/users 192.168.254.103/24(async,rw,no_subtree_check)
|
启动NFS服务
shell> /etc/init.d/nfs start
shell> rc-update add nfs default
4、给虚拟机添加1个本地硬盘sdb
shell> reboot
shell> fdisk /dev/sdb
分3个区,sdb1和sdb2 和sdb3
挂载分区
shell> mount /dev/sdb1 /share/admins
shell> mount /dev/sdb2 /share/users
shell> mount /dev/sdb3 /share/guests
这样我们就有了3个共享存储硬盘,就可以在Vcenter中添加共享磁盘vmotion