标签:nfs
查看NFS进程:nfsstat
重启NFS服务:rcnfsserver restart
设置nfs服务(双磁盘):
pvcreate /dev/sdh
pvcreate /dev/sdi
vgcreate sdp_vgfs /dev/sdh /dev/sdi
vgdisplay sdp_vgfs 查看vg的大小,查看结果为18G
lvcreate -L 18G -n sdp_lvfs sdp_vgfs
mkfs -t ext3 /dev/mapper/sdp_vgfs-sdp_lvfs
设置/etc/exports文件中加入/share *(rw,async,no_root_squash,no_subtree_check)
重启nfs服务 rcnfsserver restart
mount -t ext3 /dev/mapper/sdp_vgfs-sdp_lvfs /share/aepdata
设置/etc/exports文件中加入/nfs/vmimage *(rw,async,no_root_squash,no_subtree_check)
重启nfs服务 rcnfsserver restart
mount -t nfs 10.137.163.184:/share /nfs/vmimage
卸载nfs服务:
umount /share
lvremove -f /dev/sdp_vgfs/sdp_lvfs
vgchange -a n sdp_vgfs
vgremove sdp_vgfs
rm -r /dev/sdp_vgfs
pvremove /dev/sdb
pvremove /dev/sdc
lvscan
pvscan 查看物理卷信息 vgdisplay
vgchange -a y 激活lv磁盘
showmount -a 查看已经mount信息
标签:nfs
原文地址:http://zhengjun1.blog.51cto.com/2885555/1580617