Create and Use Storage Gateway

Hฦฐแป›ng dแบซn khแปŸi tแบกo storage gateway

  1. Truy cแบญp trang chแปง VNGCloud tแบกi ฤ‘รขy. Chแปn Service: vStorage, sau ฤ‘รณ chแปn Storage Gateway:

  1. Tแบกi trang vMarketplace, chแปn Launch on Computer Engine

  1. 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

  1. 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.

  1. 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

PreviousStorage gatewayNext

Last updated