zoukankan      html  css  js  c++  java
  • Gfarm 安装(已测试)

    Gfarm Installation

    check the process currently running:

    $netstat –tuanp

    if the software has been installed, remove them:

    $sudo apt-get purge XXX

    refer to the normal installation guide, INSTALL.en to install dependent libraries.

    Gfarm 2.5 for example:

    $sudo apt-get install libssl-dev libldap2-dev libq-dev libfuse-dev postgresql postgresql-client

    $./configure --with-postgresql=/usr --with-openssl=directory --prefix=/opt/gfarm --enable-xmlattr

    $make

    #make install

    remember that: every node should be edit /etc/hosts file to specify hostname to accordingly IP address.

    Config MeteData Server Node

    Check the PostgreSQL is still running:

    $netstat –tuanp (default port is 5432)

    If yes, stop it:

    # /etc/init.d/postgresql stop

    config metedataserver:

    # config-gfarm –p 5432 (-t : check configuration before do it truly)

    Create shared secret key for Admin account in home directory(this case:/home/dodo/):

    $ gfkey –f –p 31536000

    Create an account for communication between server node and file node in security:

    #adduser –gecos ‘Gfarm gfsd’ _gfarmfs --force-badname

    (password is null)

    Create a shared secret key for _gfarmfs user in home directory:

    # su _gfarmfs

    $ gfkey –f –p 31536000

    Config File Node

    Create an account for communication between server node and file node in security.

    #adduser –gecos ‘Gfarm gfsd’ _gfarmfs --force-badname

    (password is must)

    Copy the shared secret keys for Admin account from MD Node to the same home directory in SD Node.

    Copy the shared secret keys for _ gfarmfs account from MD Node to the same home directory in SD Node.

    Copy the file etc/gfarm2.conf from MD Node to the same directory in SD Node.

    $config-gfsd (-t for check the configuration before doing truely)

    Using admin_user of GFarm on Server Node to register File Node

    $su dodo

    $ gfhost -c -a i386-centos3.8-linux -p 600 -n 2 kent

    Then change to root user and setup gfsd service

    #/etc/init.d/gfsd start

    Client Node Installation and Configuration

    Refer to the Installation Guide in Gfram2fs, INSTALL, and install it.

    Create Directory on Every File Node and Mount It:

    $mkdir CloudFS

    $gfarm2fs CloudFS

     

     

     Run GFarm after system restart

    MetaData Node

    Stop postgresql:

    /etc/init.d/postgresql stop

    run gfarm database:

    /etc/init.d/gfarm-pgsql start

    run gfmd:

    /etc/init.d/gfmd start

    File Node:

              run gfsd:

              /etc/init.d/gfsd start

    auto setup when booting:

        give up passwd for sudo: $sudo visudo

        and add a line: dodo ALL=NOPASSWD:ALL

        open /etc/rc.local to add following lines:$sudo nano /etc/rc.local

        MD node:

        sudo /etc/init.d/postgresql stop

        sudo /etc/init.d/gfarm-pgsql start

        sudo /etc/init.d/gfmd start

        sudo /opt/gfarm2fs/bin/gfarm2fs CloudFS

        FD node

        sudo /etc/init.d/gfsd start

        sudo /opt/gfarm2fs/bin/gfarm2fs CloudFS

  • 相关阅读:
    蝶恋花
    JVM解毒——JVM与Java体系结构
    超赞!IDEA 最新版本,支持免打扰和轻量模式!
    SpringBoot 结合 Spring Cache 操作 Redis 实现数据缓存
    神奇的 SQL 之 WHERE 条件的提取与应用
    终于放弃了单调的swagger-ui了,选择了这款神器—knife4j
    Git 高级用法,喜欢就拿去用
    既然有 HTTP 请求,为什么还要用 RPC 调用?
    SpringBoot和Spring到底有没有本质的不同?
    一条简单的更新语句,MySQL是如何加锁的?
  • 原文地址:https://www.cnblogs.com/HomeGIS/p/2478360.html
Copyright © 2011-2022 走看看