Changes between Version 1 and Version 2 of GPFS_Operation
- Timestamp:
- Mar 4, 2008, 9:53:37 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GPFS_Operation
v1 v2 1 1. SSH auto login1 1. SSH auto login 2 2 {{{ 3 sudo su3 $ sudo su 4 4 Server : ssh node_name (known_host) 5 5 Client: ssh node_name … … 7 7 Allnode :ssh-keygen -r rsa 8 8 {{{ 9 cd .ssh10 cat id_rsa.pub >> authorized_keys11 cat /tftboot/nodes/192.../root/.ssh/id_rsa.pub >> authorized_keys9 $ cd .ssh 10 $ cat id_rsa.pub >> authorized_keys 11 $ cat /tftboot/nodes/192.../root/.ssh/id_rsa.pub >> authorized_keys 12 12 13 cp authorized_keys known_hosts /tftpboot/nodes/192.../root/.ssh13 $ cp authorized_keys known_hosts /tftpboot/nodes/192.../root/.ssh 14 14 }}} 15 15 16 2. Config Nodes and Disks16 2. Config Nodes and Disks 17 17 {{{ 18 vim gpfs.nodes18 $ vim gpfs.nodes 19 19 「gpfs00.nchc.org.tw:quorum-manager 20 gpfs01.nchc.org.tw:quorum -manager21 gpfs02.nchc.org.tw:quorum -manager」20 gpfs01.nchc.org.tw:quorum 21 gpfs02.nchc.org.tw:quorum」 22 22 23 vim gpfs.disks23 $ vim gpfs.disks 24 24 「/dev/sdb:gpfs01.nchc.org.tw::dataAndMetadata:: 25 25 /dev/sdb:gpfs02.nchc.org.tw::dataAndMetadata:: … … 27 27 }}} 28 28 29 3. Create Cluster29 3. Create Cluster 30 30 {{{ 31 mmdelnode -f32 mmcrcluster -n gpfs.nodes -p gpfs01.nchc.org.tw -s gpfs02.nchc.org.tw -r `which ssh` -R `which scp`33 「-p: 主NSD \Server34 -s: 備用NSD Server31 $ 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 35 35 -C: Cluster name 36 36 -U: Domain name」 37 37 38 mmlscluster39 mmlsnode -a38 $ mmlscluster 39 $ mmlsnode -a 40 40 }}} 41 41 42 4. Perpare Disks as NSD42 4. Perpare Disks as NSD 43 43 {{{ 44 cp gpfs.dsiks gpfs.disks.orig45 mmcrnsd -F gpfs.disks44 $ cp gpfs.dsiks gpfs.disks.orig 45 $ mmcrnsd -F gpfs.disks 46 46 (mcrnsd -F gpfs.disks -v yes) 47 47 48 mmlsnsd48 $ mmlsnsd 49 49 }}} 50 50 51 5. Start GPFS daemon51 5. Start GPFS daemon 52 52 {{{ 53 mmstartup -a54 mmgetstate -a55 tsstatus56 mmlsmod | grep mm57 ps -aux | grep mm53 $ mmstartup -a 54 $ mmgetstate -a 55 $ tsstatus 56 $ mmlsmod | grep mm 57 $ ps -aux | grep mm 58 58 }}} 59 59 60 6. Create FS60 6. Create FS 61 61 {{{ 62 mmcrfs /home/gpfs gpfs0 -F gpfs.disks63 ( 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) 67 67 68 68 (/home/gpfs: mount point 69 gpfs0: 系統文件名/dev/gpfs070 -A: auto mount69 gpfs0: fs name ex./dev/gpfs0 70 -A: auto mount 71 71 -B: block 72 -n: 掛載fs的node數72 -n: node's amount 73 73 ) 74 74 75 mmlsdisk gpfs0 75 $ mmlsdisk gpfs0 76 $ mmlsfs gpfs0 76 77 }}} 77 78 78 7. Mount FS79 7. Mount FS 79 80 {{{ 80 法一:mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes81 法二:mmmount /home/gpfs -a82 法三:vim /etc/fstab81 Method 1:$ mmcrfs /home/gpfs gpfs0 -F gpfs.disks -A yes 82 Method 2:$ mmmount /home/gpfs -a 83 Method 3:$ vim /etc/fstab 83 84 「/dev/gpfs0 /home/gpfs gpfs rw,mtime,atime,dev=/dev/gpfs0,autostart 0 0」 84 85 }}} 85 86 86 8. Other87 8. Other 87 88 {{{ 88 mmlsconfig 89 Print infornation: 90 $ mmlsconfig 89 91 90 mmchconfig autoload=yes 91 mmchconfig singleNodeQuorum=no 92 Cahange Configuration: 93 $ mmchconfig autoload=yes 94 $ mmchconfig singleNodeQuorum=no 92 95 93 增加node 94 mmaddnode -N fs04:client96 Add node: 97 $ mmaddnode -N fs04:client 95 98 96 停掉node 97 mmshutdown -a98 mmshutdown -N node99 Shutdown: 100 $ mmshutdown -a 101 $ mmshutdown -N node 99 102 100 rm -fr /var/mmfs....103 $ rm -fr /var/mmfs.... 101 104 or 102 mmdelnode -a105 $ mmdelnode -a 103 106 }}} 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