Changes between Version 1 and Version 2 of GPFS_Operation


Ignore:
Timestamp:
Mar 4, 2008, 9:53:37 AM (17 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GPFS_Operation

    v1 v2  
    1 1. SSH auto login
     1 1. SSH auto login
    22{{{
    3 sudo su
     3$ sudo su
    44Server : ssh node_name  (known_host)
    55Client: ssh node_name
     
    77Allnode :ssh-keygen -r rsa
    88{{{
    9 cd .ssh
    10 cat id_rsa.pub >> authorized_keys
    11 cat /tftboot/nodes/192.../root/.ssh/id_rsa.pub >> authorized_keys
     9$ cd .ssh
     10$ cat id_rsa.pub >> authorized_keys
     11$ cat /tftboot/nodes/192.../root/.ssh/id_rsa.pub >> authorized_keys
    1212
    13 cp authorized_keys known_hosts /tftpboot/nodes/192.../root/.ssh
     13$ cp authorized_keys known_hosts /tftpboot/nodes/192.../root/.ssh
    1414}}}
    1515
    16 2. Config Nodes and Disks
     16 2. Config Nodes and Disks
    1717{{{
    18 vim gpfs.nodes
     18$ vim gpfs.nodes
    1919「gpfs00.nchc.org.tw:quorum-manager
    20    gpfs01.nchc.org.tw:quorum-manager
    21    gpfs02.nchc.org.tw:quorum-manager
     20   gpfs01.nchc.org.tw:quorum
     21   gpfs02.nchc.org.tw:quorum
    2222
    23 vim gpfs.disks
     23$ vim gpfs.disks
    2424「/dev/sdb:gpfs01.nchc.org.tw::dataAndMetadata::
    2525   /dev/sdb:gpfs02.nchc.org.tw::dataAndMetadata::
     
    2727}}}
    2828
    29 3. Create Cluster
     29 3. Create Cluster
    3030{{{
    31 mmdelnode -f
    32 mmcrcluster -n gpfs.nodes -p gpfs01.nchc.org.tw -s gpfs02.nchc.org.tw  -r `which ssh` -R `which scp`
    33 「-p: NSD \Server
    34    -s: 備用 NSD Server
     31$ mmdelnode -f
     32$ mmcrcluster -n gpfs.nodes -p gpfs01.nchc.org.tw -s gpfs02.nchc.org.tw  -r `which ssh` -R `which scp`
     33「-p: primary NSD \Server
     34   -s: secondary NSD Server
    3535   -C: Cluster name
    3636   -U: Domain name」
    3737
    38 mmlscluster
    39 mmlsnode -a
     38$ mmlscluster
     39$ mmlsnode -a
    4040}}}
    4141
    42 4. Perpare Disks as NSD
     42 4. Perpare Disks as NSD
    4343{{{
    44 cp gpfs.dsiks gpfs.disks.orig
    45 mmcrnsd -F gpfs.disks
     44$ cp gpfs.dsiks gpfs.disks.orig
     45$ mmcrnsd -F gpfs.disks
    4646(mcrnsd -F gpfs.disks -v yes)
    4747
    48 mmlsnsd
     48$ mmlsnsd
    4949}}}
    5050
    51 5. Start GPFS daemon
     51 5. Start GPFS daemon
    5252{{{
    53 mmstartup -a
    54 mmgetstate -a
    55 tsstatus
    56 mmlsmod | grep mm
    57 ps -aux | grep mm
     53$ mmstartup -a
     54$ mmgetstate -a
     55$ tsstatus
     56$ mmlsmod | grep mm
     57$ ps -aux | grep mm
    5858}}}
    5959
    60 6. Create FS
     60 6. Create FS
    6161{{{
    62 mmcrfs /home/gpfs gpfs0 -F gpfs.disks
    63 (mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes)
    64 (mmcrfs /home/gpfs gpfs0 -F gpfs.disks -B 256K)
    65 (mmcrfs /home/gpfs gpfs0 -F gpfs.disks -B 1024K -m 1 -M 2 -r 1 -R 2)
    66 (mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes -v no)
     62$ mmcrfs /home/gpfs gpfs0 -F gpfs.disks
     63($ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes)
     64($ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -B 256K)
     65($ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -B 1024K -m 1 -M 2 -r 1 -R 2)
     66($ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes -v no)
    6767
    6868(/home/gpfs: mount point
    69  gpfs0: 系統文件名 /dev/gpfs0
    70 -A: auto mount
     69 gpfs0:  fs name ex./dev/gpfs0
     70 -A: auto mount
    7171 -B: block
    72  -n: 掛載fs的node數
     72 -n: node's amount
    7373)
    7474
    75 mmlsdisk gpfs0
     75$ mmlsdisk gpfs0
     76$ mmlsfs gpfs0
    7677}}}
    7778
    78 7. Mount FS
     79 7. Mount FS
    7980{{{
    80 法一:mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes
    81 法二:mmmount /home/gpfs -a
    82 法三:vim /etc/fstab
     81Method 1:$ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes
     82Method 2:$ mmmount /home/gpfs -a
     83Method 3:$ vim /etc/fstab
    8384「/dev/gpfs0    /home/gpfs    gpfs    rw,mtime,atime,dev=/dev/gpfs0,autostart 0 0」
    8485}}}
    8586
    86 8. Other
     87 8. Other
    8788{{{
    88 mmlsconfig
     89Print infornation:
     90$ mmlsconfig
    8991
    90 mmchconfig autoload=yes
    91 mmchconfig singleNodeQuorum=no
     92Cahange Configuration:
     93$ mmchconfig autoload=yes
     94$ mmchconfig singleNodeQuorum=no
    9295
    93 增加node
    94 mmaddnode -N fs04:client
     96Add node:
     97$ mmaddnode -N fs04:client
    9598
    96 停掉node
    97 mmshutdown -a
    98 mmshutdown -N node
     99Shutdown:
     100$ mmshutdown -a
     101$ mmshutdown -N node
    99102
    100 rm -fr /var/mmfs....
     103$ rm -fr /var/mmfs....
    101104or
    102 mmdelnode -a
     105$ mmdelnode -a
    103106}}}
     107
     108 9. Delete gpfs fs
     109{{{
     110$ mmumount gpfs0 -a
     111$ mmdelfs gpfs0
     112}}}
     113
     114 10. Delete gpfs NSD
     115{{{
     116$ mmdelnsd -F gpfs.disks
     117}}}
     118