Create and Use Storage Gateway
Hฦฐแปng dแบซn khแปi tแบกo storage gateway
Truy cแบญp trang chแปง VNGCloud tแบกi ฤรขy. Chแปn Service: vStorage, sau ฤรณ chแปn Storage Gateway:
Tแบกi trang vMarketplace, chแปn Launch on Computer Engine
Bแบกn nhแบญp thรดng tin App mong muแปn, lแปฑa chแปn Instance phรน hแปฃp, lแปฑa chแปn loแบกi แป ฤฤฉa vร kรญch thฦฐแปc phรน hแปฃp, sau ฤรณ chแปn network, security mong muแปn vร chแปn Launch Application
Sau khi bแบกn Launch Application thร nh cรดng, hแป thแปng sแบฝ thแปฑc hiแปn khแปi tแบกo mแปt server tฦฐฦกng แปฉng. Sau khi VM ฤฦฐแปฃc tแบกo thร nh cรดng, bแบกn hรฃy truy cแบญp vร o ฤแปa chแป External IP cแปงa VM vร thแปฑc hiแปn ฤฤng nhแบญp vแปi thรดng tin ฤฤng nhแบญp ฤรฃ ฤฦฐแปฃc gแปญi vแป email cแปงa bแบกn (lแบงn ฤฤng nhแบญp ฤแบงu tiรชn sแบฝ ฤแปi lแบกi password mแบทc ฤแปnh).
Chรบ รฝ:
Security Groups cแบงn mแป thรชm cรกc port sau ฤแป share ฤฦฐแปฃc dแปฏ liแปu:
port web: 80,443
port share:
port 445,139: nแบฟu sแปญ dแปฅng SMB
port 111,2049,34567: nแบฟu sแปญ dแปฅng NFS
Hฦฐแปng dแบซn tแบกo file share
Tแบกo credential
Tแบกi mแปฅc Credential chแปn Create credentials:
Trong ฤรณ:
Credential name: nhแบญp tรชn credential mong muแปn.
Region: chแปn Region chแปฉa project mร bแบกn muแปn thแปฑc hiแปn lฦฐu trแปฏ trรชn vStorage.
Project ID
Provider: bแบกn cรณ thแป chแปn sแปญ dแปฅng S3 key hoแบทc Swift user tรนy chแปn.
Nแบฟu dรนng Swift, bแบกn cแบงn nhแบญp username vร password.
Nแบฟu dรนng S3 key, bแบกn cแบงn nhแบญp Access key vร Secret key.
Nhแปฏng thรดng tin nร y bแบกn cรณ thแป tแบกo cลฉng nhฦฐ lแบฅy thรดng tin trรชn vStorage Portal vร IAM Portal.
Tแบกo file share
Chแปn file share rแปi chแปn Create file share
Trong ฤรณ:
Volume Information:
vStorage Credential: chแปn credential ฤรฃ tแบกo bรชn trรชn.
Container: chแปn mแปt container trong danh sรกch container trong project ฤรฃ ฤฦฐแปฃc khai bรกo sแปญ dแปฅng.
Permission:
nfs: phรขn quyแปn theo IP, chรบng tรดi sแบฝ sแปญ dแปฅng IP ฤแป phรขn quyแปn, bแบกn cแบงn nhแบญp IP vร chแปn quyแปn tฦฐฦกng แปฉng
smb: phรขn quyแปn theo User, chรบng tรดi sแบฝ sแปญ dแปฅng User ฤแป phรขn quyแปn, bแบกn cแบงn chแปn User vร chแปn quyแปn tฦฐฦกng แปฉng
Chแปn Create vร ฤแปฃi hoร n tแบฅt viแปc tแบกo File Share. Bแบกn cลฉng cรณ thแป xem thรชm thรดng tin mount trong mแปฅc Mount
3. Client kแบฟt nแปi vร sแปญ dแปฅng file share
3.1 Client nfs
Trรชn mรกy linux, mแป terminal gรต lแปnh: apt install nfs-common
Trรชn UI gateway File Share -> Show Commands -> nfs -> copy -> dรกn lแปnh vร o terminal client
3.2 Client smb
Trรชn window: Trรชn UI gateway File Share -> Show Commands -> smb -> window -> copy -> dรกn vร o search cแปงa window -> nhแบญp user/password
Trรชn mรกy linhx, cร i dแบทt client: apt install cifs-utils
Trรชn UI gateway File Share -> Show Commands -> smb -> window -> copy -> dรกn vร o terminal -> nhแบญp user/password
Last updated