日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

cmd ibm服务器型号,ibm gpfs

發(fā)布時(shí)間:2025/3/20 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 cmd ibm服务器型号,ibm gpfs 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

及配置準(zhǔn)備

安裝

中放在/soft_ins下,當(dāng)然也可以建一個(gè) NFS 服務(wù)器共享安裝。

[NSD1][root][/home/scripts/gpfs]>rcp_file.sh /home/scripts/gpfs/install_gpfs.sh

[NSD1][root][/home/scripts/gpfs]> run_cmd.sh /home/scripts/gpfs/install_gpfs.shITPUB個(gè)人空間r]+zC|3Q

確認(rèn)每臺(tái)服務(wù)器安裝顯示 ok

[NSD1][root][/home/scripts/gpfs]>run_cmd.sh /home/scripts/gpfs/chang_profile.shITPUB個(gè)人空間 F1@ @ R:N

[NSD1][root][/home/scripts/gpfs]>run_cmd.sh mkdir /share

[NSD1][root][/home/scripts/gpfs]>run_cmd.sh ln -s /share /tmp/mmfs

[NSD1][root][/home/scripts/gpfs]>run_cmd.sh mkdir /tmp/gpfsITPUB個(gè)人空間_$D_6bd

ITPUB個(gè)人空間0L$ke\8b(I&zmH

ITPUB個(gè)人空間:`6j\-Lk7B7Y i.v

r6mzF"G[0

)ARe ve'y#S+B/[ {0

Y8]t6\BS)zX'q8G0ITPUB個(gè)人空間4ll"m^+L6Wz

[NSD1][root][/]>vi /tmp/gpfs/nodefile

NSD1:quorum

NSD2:quorum

App1:client

App2:client

App3:client

App4:client

2q$I8h c Q:SU b0

先確保清理干凈原先 GPFS 集群

[NSD1][root][/tmp/gpfs]>mmdelnode -f

2o6sGvH]F&r0

建立集群

[NSD1][root][/tmp/gpfs]>mmcrcluster -C bgbcrun -U bgbc

-N /tmp/gpfs/nodefile -p NSD1 -s NSD2

Thu Jun 28 15:42:57 BEIST 2007: 6027-1664 mmcrcluster: Processing node NSD1

Thu Jun 28 15:42:57 BEIST 2007: 6027-1664 mmcrcluster: Processing node NSD2

…..

mmcrcluster: Command successfully completed

mmcrcluster: 6027-1371 Propagating the cluster configuration to all

affected nodes. This is an asynchronous process.

其中參數(shù)含義

-C bgbcrun 設(shè)定集群名稱

-U bgbc 定義域名

-N /tmp/gpfs/nodefile 指定節(jié)點(diǎn)文件名

-p NSD1 指定主NSD服務(wù)器為 NSD1

-s NSD1 指定備NSD服務(wù)器為 NSD1

Cn-^ e0y dk0

[NSD1][root][/tmp/gpfs]>mmlscluster

GPFS cluster information

========================

GPFS cluster name: bgbcrun.NSD1

GPFS cluster id: 739157013761844865

GPFS UID domain: bgbc

Remote shell command: /usr/bin/rsh

Remote file copy command: /usr/bin/rcp

GPFS cluster configuration servers:

-----------------------------------

Primary : NSD1

Secondary server: NSD2

Node Daemon node name IP address Admin node name Designation|-------10--------20--------30--------40--------50--------60--------70--------80--------9||-------- XML error: The previous line is longer than the max of 90 characters ---------|-----------------------------------------------------------------------------------------

1 NSD1 10.66.3.98 NSD1 quorum

2 NSD2 10.66.3.99 NSD2 quorum

3 App1 10.66.5.51 App1

4 App2 10.66.5.52 App2

5 App3 10.66.5.53 App3

6 App4 10.66.5.54 App4ITPUB個(gè)人空間7?N0R$@IDH

W'\i]lz s)I0

)Ks?7K `XWK0

ITPUB個(gè)人空間Q-h\}/|7LG8X

ITPUB個(gè)人空間S7E;N#Jou9Oq

ITPUB個(gè)人空間/P'P? u[(o!HITPUB個(gè)人空間hMh+sx\

[NSD1][root][/tmp/gpfs]>vi /tmp/gpfs/nsdfile

添加

hdisk2:NSD1:NSD2: dataAndMetadata:4ITPUB個(gè)人空間A'vuOu

[NSD1][root][/tmp/gpfs]>mmcrnsd -F /tmp/gpfs/nsdfile

mmcrnsd: Processing disk hdisk2

mmcrnsd: 6027-1371 Propagating the cluster configuration data to all

affected nodes. This is an asynchronous process.ITPUB個(gè)人空間K'jA0t*k#}A

此時(shí),該文件作了轉(zhuǎn)換

[NSD1][root][/tmp/gpfs]>cat nsdfile

# hdisk2:NSD2:NSD1: dataAndMetadata:4

gpfs1nsd:::dataAndMetadata:4:

ZZ,w4B$kYbVd0

[NSD1][root][/tmp/gpfs]>lspv

hdisk3 00003e846ffa7a6e gpfs1nsd

tU3V(H'MsOU} M4r0

[NSD2][root][/tmp/gpfs]>mmstartup -a

Thu Jun 28 15:52:12 BEIST 2007: 6027-1642 mmstartup: Starting GPFS ...

NSD2: 6027-2114 The GPFS subsystem is already active.

App4: 6027-2114 The GPFS subsystem is already active.

j8Auy5Yo#f0ITPUB個(gè)人空間X:Hc7\a/DXbR^W2Z

JQ7jz n wgg`0

ITPUB個(gè)人空間{/b7E[c;Qfk@hN(Jl

ITPUB個(gè)人空間#C!h'O|0f2z1g_ S

$oK)Dg.fM0ITPUB個(gè)人空間 ^MST*kn

[NSD2][root][/]>mmcrfs /share sharelv -F /tmp/gpfs/nsdfile -A yes -B 64K -n 30 -v no

GPFS: 6027-531 The following disks of sharelv will be formatted on node NSD1:

gpfs1nsd: size 67108864 KB

GPFS: 6027-540 Formatting file system ...

GPFS: 6027-535 Disks up to size 140 GB can be added to storage pool 'system'.

Creating Inode File

Creating Allocation Maps

Clearing Inode Allocation Map

Clearing Block Allocation Map

GPFS: 6027-572 Completed creation of file system /dev/sharelv.

mmcrfs: 6027-1371 Propagating the cluster configuration data to all

affected nodes. This is an asynchronous process.

參數(shù)含義如下:

/share 文件系統(tǒng) mount 點(diǎn)名

sharelv 指定文件系統(tǒng) lv 名

-F 指定 NSD 的文件名

-A 自動(dòng) mount 選項(xiàng)為 yes

-B 塊大小為64K

-n 掛載文件系統(tǒng)的節(jié)點(diǎn)估計(jì)數(shù)30個(gè)

-v 校驗(yàn)建立磁盤是否已有文件系統(tǒng) 為否ITPUB個(gè)人空間|jp*O"S?1P6`@

[NSD2][root][/home/scripts/gpfs]>run_cmd.sh mount /shareITPUB個(gè)人空間&FMO"r(gI%i

[App1][root][/]>mkdir /share/user1work

[App1][root][/]>chown user1:bea /share/user1work

[App1][root][/]>chmod 700 /share/user1work

[App1][root][/]>mkdir /share/user1temp

[App1][root][/]>chown user1:bea /share/user1temp

[App1][root][/]> chmod 750 /share/user1tempITPUB個(gè)人空間iTe c h i

同樣在另3臺(tái)機(jī)器建立其他目錄并修改相應(yīng)所有者即權(quán)限,即 work 目錄只有所有者可操作,temp 目錄可讀可進(jìn)入。ITPUB個(gè)人空間 P\#F*d9Uy+g:G

ITPUB個(gè)人空間0jMSGY,sA5M'`

ITPUB個(gè)人空間]]ZgU@4P9j

ITPUB個(gè)人空間vg{S1nH0g9kb7t_J

5h3a6zrTRc0

在節(jié)點(diǎn)開機(jī)后自動(dòng)啟動(dòng) GPFS

[NSD1][root][/]>mmchconfig autoload=yes

mmchconfig: Command successfully completed

mmchconfig: 6027-1371 Propagating the cluster configuration data to all

affected nodes. This is an asynchronous process.

;X,}G9[#F,ha.Sy?3Y0

采用多個(gè) Quorum 盤

[NSD1][root][/]> mmchconfig singleNodeQuorum=no

mmchconfig: 6027-1119 Obsolete option: singleNodeQuorum

"^e u!b/Jz7JR0

[NSD1][root][/]>mmlsconfig

Configuration data for cluster bgbcrun.NSD2:

-----------------------------------------------

clusterName bgbcrun.NSD2

clusterId 739157013761844865

clusterType lc

autoload no

useDiskLease yes

uidDomain bgbc

maxFeatureLevelAllowed 912

/W"Iz_4X0

至此 GPFS 的安裝配置完成

[NSD1][root][/]>mmgetstate -a

Node number Node name GPFS state

------------------------------------------

1 NSD1 active

2 NSD2 active

3 App1 active

4 App2 active

5 App3 active

10 App4 activeITPUB個(gè)人空間MG].u'oN.E\)AQ

Sd]Y9LRA.g(s1w3{0

] n\#M0mYg![0

ITPUB個(gè)人空間({&C8~y(G)of"Y

C`Y d:_Z0

/fmO8J.n-v0

最終,通過 userid 的不同,在 App1 的共享目錄 /share下,user1 只能讀寫自己文件夾的文件,對(duì)其它用戶的 temp 目錄可讀,對(duì)其它用戶的 work 目錄不能讀寫。

[App1][/share]>ls -latr

drwx------ 2 user1 bea 2048 Jun 28 17:21 user1work

drwxr--x-- 2 user1 bea 2048 Jun 28 17:21 user1temp

drwx------ 2 502 bea 2048 Jun 28 17:22 user2work

drwxr--x--- 2 502 bea 2048 Jun 28 17:22 user2temp

drwx------ 2 503 bea 2048 Jun 28 17:22 user3work

drwxr-x-- 2 503 bea 2048 Jun 28 17:22 user3temp

drwxr---- 2 504 bea 2048 Jun 28 17:22 user4work

drwxr-x--- 2 504 bea 2048 Jun 28 17:23 user4temp

[App1][user1][/share]>cd user2work

ksh: user2temp : Permission denied.

[App1][user1][/share]>cd user2temp

[App1][user1][/share]>>a

The file access permissions do not allow the specified action.

ksh[2]: a: 0403-005 Cannot create the specified file.

[App1][user1][/share]>cd /user1temp

[App1][user1][/share/user1temp]>>a

[App1][user1][/share/user1temp]>ls -l

-rw-r----- 1 user1 bea 0 Aug 13 18:47 a

[App1][user1][/share/xhtemp]>rm a

[App1][user1][/share/xhtemp]>ls -l

[App1][/share]>ls -latr

drwxr------ 2 user1 bea 2048 Jun 28 17:21 user1work

drwxr------ 2 user1 bea 2048 Jun 28 17:21 user1temp

drwxr------ 2 502 bea 2048 Jun 28 17:22 user2work

drwxr------ 2 502 bea 2048 Jun 28 17:22 user2temp

drwxr------ 2 503 bea 2048 Jun 28 17:22 user3work

drwxr------ 2 503 bea 2048 Jun 28 17:22 user3temp

drwxr------ 2 504 bea 2048 Jun 28 17:22 user4work

drwxr------ 2 504 bea 2048 Jun 28 17:23 user4temp

-r}l#b-W5b)m0

同樣,在其它3臺(tái)機(jī)器也有類似我們希望的結(jié)果。

!P(RD6T*A+O g:c5[+^ }0

[ y)n.{zX2h1f0

5v {N ` V q0

(H!V*v mB:O;\K,N7w0

1.新增一個(gè)節(jié)點(diǎn)

除所有準(zhǔn)備和安裝工作外,還需完成以下操作:

[NSD1][root][/home/scripts/gpfs]>mmaddnode -N bgbcw14:client

Thu Jun 28 16:28:21 BEIST 2007: 6027-1664 mmaddnode: Processing node App3

mmaddnode: Command successfully completed

mmaddnode: 6027-1371 Propagating the cluster configuration data to all

affected nodes. This is an asynchronous process.ITPUB個(gè)人空間i&W]1p}M tQ

2.停掉節(jié)點(diǎn)

停掉所有節(jié)點(diǎn)

[NSD2][root][/home/scripts/gpfs]>mmshutdown -a

Mon Jul 30 09:56:02 BEIST 2007: 6027-1341 mmshutdown: Starting force unmount of

GPFS file systems

NSD1: forced unmount of /share

App4: forced unmount of /share

Mon Jul 30 09:56:07 BEIST 2007: 6027-1344 mmshutdown: Shutting down GPFS daemons

NSD1: Shutting down!

App3: Shutting down!

NSD1: 'shutdown' command about to kill process 368890

….

App4: 'shutdown' command about to kill process 474040

Mon Jul 30 09:56:13 BEIST 2007: 6027-1345 mmshutdown: Finished

4h1l \B6L P0v"yk g#J4G0

也可以用 mmshutdown -N 只停某個(gè)節(jié)點(diǎn)

清除 GPFS

1.fuser –kcu /share

2.unmount /share #在所有節(jié)點(diǎn)

3.mmdelfs sharelv,

4.mmlsfs sharelv #檢查結(jié)果

5.mmdelnsd –F /tmp/gpfs/nsdfile

6.mmshutdown –a

7.mmdelnode –n /tmp/gpfs/nodefile

8.mdelnode –f #最后清除集群

與50位技術(shù)專家面對(duì)面20年技術(shù)見證,附贈(zèng)技術(shù)全景圖

總結(jié)

以上是生活随笔為你收集整理的cmd ibm服务器型号,ibm gpfs的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。