2014年11月13日 星期四

LeoFS升級

前言

目前我們所使用的LeoFS圖床伺服器為1.0.0版本,因應目前遇到的幾個Bug,需進行版本升級。
目前最新的版本為1.2.1。我們即以此版本作為升級目標。

升級計畫

因最新版本不再提供我們目前使用的OS版本(Ubuntu 12.04)的deb package,
我們會透過自己預先Build好的leofs-1.2.1.tar.gz進行系統升級。

升級步驟

升級步驟圖
  1. 升級Leofs manager node
    • Stop manager_1
      # cd ~
      # leo_manager_1/bin/leo_manager stop
      
    • Stop manager_0
      # cd ~
      # leo_manager_0/bin/leo_manager stop
      
    • Update manager_0
      # cd /usr/local/leofs
      # tar zxvf leofs-1.2.1.tar.gz
      # cp -R 1.0.0/leo_manager_0/work 1.2.1/leo_manager_0/
      # nano 1.2.1/leo_manager_0/etc/leo_manage.conf
      # cd ~
      # unlink leo_manager_0
      # ln -s /usr/local/leofs/1.2.1/leo_manager_0 leo_manager_0
      # leo_manager_0/bin/leo_manager start
      
    • Update manager_1
      # cd /usr/local/leofs
      # tar zxvf leofs-1.2.1.tar.gz
      # cp -R 1.0.0/leo_manager_1/work 1.2.1/leo_manager_1/
      # nano 1.2.1/leo_manager_1/etc/leo_manage.conf
      # cd ~
      # unlink leo_manager_1
      # ln -s /usr/local/leofs/1.2.1/leo_manager_1 leo_manager_1
      # leo_manager_1/bin/leo_manager start
      
  2. 升級Leofs storage node
    • Suspend one of storage nodes
      # telnet $(mgt0_ip) 10010
      # status
      # suspend $(node)
      
    • Stop storage node
      # cd ~
      # leo_storage/bin/leo_storage stop
      
    • Update storage
      # cd /usr/local/leofs
      # tar zxvf leofs-1.2.1.tar.gz
      # cp -R 1.0.0/leo_storage/work 1.2.1/leo_storage/
      # nano 1.2.1/leo_storage/etc/leo_storage.conf
      # cd ~
      # unlink leo_storage
      # ln -s /usr/local/leofs/1.2.1/leo_storage leo_storage
      # leo_storage/bin/leo_storage start
      
    • resume storage
      # telnet $(mgt0_ip) 10010
      # status
      # resume $(node)
      
    • Continues Update other storage nodes with steps
  3. 升級Leofs Gateway node
    • Stop leo_gateway
      # cd ~
      # leo_gateway/bin/leo_gateway stop
      
    • Update gateway
      # cd /usr/local/leofs
      # tar zxvf leofs-1.2.1.tar.gz
      # cp -R 1.0.0/leo_gateway/work 1.2.1/leo_gateway/
      # nano 1.2.1/leo_gateway/etc/leo_gateway.conf
      # cd ~
      # unlink leo_gateway
      # ln -s /usr/local/leofs/1.2.1/leo_gateway leo_gateway
      # leo_gateway/bin/leo_gateway start
      
    • Continues Update other storage nodes with steps

2 則留言:

  1. Betway Casino Sports Betting Odds - Online Gaming
    Betway Mobile Casino - Online Gaming. 하랑 도메인 Betway Mobile Casino. Betway Mobile Casino. website to buy air jordan 18 retro men red Betway Mobile Casino. betway Mobile 와이즈 토토 프로토 게임 상세 정보 Casino. Betway Mobile Casino. 메이저놀이터 Betway where to order air jordan 18 retro men Mobile

    回覆刪除
  2. What’s extra, it’s not at 카지노사이트 all times the dimensions of a poker welcome bonus that issues, but also means it} works. Even if the provide is simply $100 and never $1,000, have the ability to|you possibly can} still use that to get your online poker journey off to an awesome start. Also, all gambling sites and our guides are rated 18+ solely.

    回覆刪除