Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2319204
  • 博文数量: 535
  • 博客积分: 8689
  • 博客等级: 中将
  • 技术积分: 7066
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-26 10:00
文章分类

全部博文(535)

文章存档

2024年(4)

2023年(4)

2022年(16)

2014年(90)

2013年(76)

2012年(125)

2011年(184)

2010年(37)

分类: LINUX

2011-08-17 09:13:57




umount   -f /data/httpd/b2c/home
umount   -f /data/httpd/b2c/statics
umount   -f /data/httpd/b2c/images

mount -t nfs 220.231.158.98:/b2c/home/ /data/httpd/b2c/home/
mount -t nfs 220.231.158.98:/b2c/statics /data/httpd/b2c/statics/
mount -t nfs 220.231.158.98:/b2c/images /data/httpd/b2c/images

  mount -t -o nfs 192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/     
  mount -t -o nfs 192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
  mount -t -o nfs 192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images




/etc/init.d/nfs  restart
/etc/init.d/portmap  restart

 
umount   -f /data/httpd/b2c/home
umount   -f /data/httpd/b2c/statics
umount   -f /data/httpd/b2c/images
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/

mount -t nfs 220.231.158.98:/b2c/home/ /data/httpd/b2c/home/
mount -t nfs 220.231.158.98:/b2c/statics /data/httpd/b2c/statics/
mount -t nfs 220.231.158.98:/b2c/images /data/httpd/b2c/images

  mount -t nfs 192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/     
  mount -t nfs 192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
  mount -t nfs 192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images 
 
 
mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images
mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/

mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/





rsync    -uvrtopg  /data/httpd/b2c/image/  root@220.231.158.98::b2c_image
rsync    -uvrtopg  /data/httpd/b2c/home/  root@220.231.158.98::b2c_home
rsync    -uvrtopg  /data/httpd/b2c/statics/  root@220.231.158.98::b2c_statics



mount -t nfs 192.168.0.123:/data/httpd/b2c/home/ /data/httpd/b2c/home/
mount -t nfs 192.168.0.123:/data/httpd/b2c/statics /data/httpd/b2c/statics/
mount -t nfs 192.168.0.123:/data/httpd/b2c/images /data/httpd/b2c/images



mount -t nfs 220.231.158.98:/b2c/home/ /data/httpd/b2c/home/
mount -t nfs 220.231.158.98:/b2c/statics /data/httpd/b2c/statics/
mount -t nfs 220.231.158.98:/b2c/images /data/httpd/b2c/images


mount -t nfs 220.231.158.98:/mnt/1/data/http/b2c/home     /data/httpd/b2c/home

exportfs
/etc/init.d/rpcbind   restart
/etc/rc.d/init.d/nfs  restart 
/etc/rc.d/init.d/portmap  restart

/etc/init.d/rpcbind  stop

*/5 * * * * /etc/rc.d/init.d/nfs  restart 
*/6 * * * *  /etc/rc.d/init.d/portmap  restart

  mount -t nfs 192.168.0.123:/data/httpd/b2c/home/       /data/httpd/b2c/home/      
  mount -t nfs 192.168.0.123:/data/httpd/b2c/statics     /data/httpd/b2c/statics/ 
  mount -t nfs 192.168.0.123:/data/httpd/b2c/images      /data/httpd/b2c/images 


/etc/init.d/nfs  restart
/etc/init.d/portmap  restart

/etc/init.d/nfs  stop
/etc/init.d/portmap  stop



umount -f  /data0/htdocs/

umount   -f /data/httpd/b2c/home
umount   -f /data/httpd/b2c/statics
umount   -f /data/httpd/b2c/images


mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images 
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/


/etc/init.d/iptables  stop

mount -t nfs 220.231.158.98:/mnt/1/data/httpd/b2c/home/    /data/httpd/b2c/home/
mount -t nfs 220.231.158.98:/mnt/1/data/httpd/b2c/statics  /data/httpd/b2c/statics
mount -t nfs 220.231.158.98:/mnt/1/data/httpd/b2c/images   /data/httpd/b2c/images



  mount -t nfs 192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/      
  mount -t nfs 192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/ 
  mount -t nfs 192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images  
  
/data0/htdocs/ 10.21.151.0/24(rw,async,no_subtree_check,all_squash,anonuid=501,anongid=501)
 mount -t nfs  10.21.151.0:/data0/htdocs/  /data0/htdocs/
 
 mount -t nfs  10.21.151.81:/data0/htdocs/

10.21.151.85



mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images 
mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount -t nfs -o rsize=32768,wsize=32768,intr 192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/

mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images 
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
mount  -t  nfs  -o nosuid,noexec,nodev,rw bg,soft,rsize=32768,wsize=32768  192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/


*/7 * * * *  mount -t nfs  192.168.0.123:/data/httpd/b2c/home/    /data/httpd/b2c/home/
*/7 * * * *  mount -t nfs  192.168.0.123:/data/httpd/b2c/statics  /data/httpd/b2c/statics/
*/7 * * * *  mount -t nfs  192.168.0.123:/data/httpd/b2c/images   /data/httpd/b2c/images




rsync  -vzrtopgW  --progress /cygdrive/i/web/       rsync@220.231.158.98::all

rsync  -vzrtopgW  --progress /cygdrive/i/web/       rsync@220.231.158.98::test
rsync  -vzrtopgW  --progress /cygdrive/i/web/       rsync@220.231.158.98::test





阅读(1789) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~