Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Membuat instance Filestore menggunakan konsol Google Cloud
Panduan memulai ini menunjukkan cara melakukan operasi dasar di Filestore menggunakan konsol Google Cloud ini. Dalam panduan memulai ini, Anda akan:
Buat instance Filestore.
Pasang berbagi file dari instance tersebut di instance VM klien.
Buat file di berbagi file yang di-mount.
Hapus instance Filestore.
Sebelum memulai
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Setelah menyelesaikan tugas yang dijelaskan dalam dokumen ini, Anda dapat menghindari penagihan berkelanjutan dengan menghapus resource yang Anda buat. Untuk mengetahui informasi selengkapnya, lihat
Pembersihan.
Buat instance VM Compute Engine yang akan menjadi klien
Di konsol Google Cloud , buka halaman VM Instances.
Klik Create Instance dan konfigurasikan instance sebagai berikut.
Setel Nama ke nfs-client.
Setel Zone ke us-central1-c.
Pertahankan disk booting default.
Di bagian Firewall, centang kotak Izinkan traffic HTTP.
Biarkan jaringan sebagai default.
Klik Buat untuk membuat instance.
Membuat instance Filestore
Panduan memulai ini menunjukkan cara membuat instance di tingkat Regional dengan performa kustom yang diaktifkan. Untuk mengetahui detail tentang cara membuat instance, lihat membuat instance.
Di konsol Google Cloud , buka halaman Instances Filestore.
Klik Buat Instance dan konfigurasikan instance sebagai berikut:
Setel Instance ID ke nfs-server.
Setel Instance type ke Regional.
Di Kapasitas, masukkan 1 TiB.
Di Performa, klik tombol Performa kustom untuk mengaktifkan performa kustom. Secara default, Anda akan mendapatkan 12.000 IOPS di kolom Performa. Kotak centang Skalakan performa dengan kapasitas dicentang, jadi jika Anda mengubah nilai di kolom Kapasitas, performa akan diskalakan dengan tepat. Untuk mengetahui detail opsi konfigurasi, lihat mengonfigurasi performa.
Setel Region ke us-central1.
Tetapkan VPC network ke default.
Tetapkan File share name ke vol1.
Setel Allocated IP range ke Use an automatically allocated IP range.
Setel Kontrol akses ke Beri akses ke semua klien.
Klik Buat.
Meng-mount berbagi file Filestore di klien
Di konsol Google Cloud , buka halaman VM Instances.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-18 UTC."],[[["\u003cp\u003eThis guide demonstrates creating a Filestore instance, which involves setting instance details like ID, type, capacity, region, and network.\u003c/p\u003e\n"],["\u003cp\u003eIt walks through mounting the Filestore file share onto a Compute Engine VM, including installing NFS and setting up the mount directory.\u003c/p\u003e\n"],["\u003cp\u003eThe guide illustrates how to create a test file within the mounted file share on the client VM.\u003c/p\u003e\n"],["\u003cp\u003eThe document covers cleaning up, detailing how to delete both the Filestore and the Compute Engine instance, as well as the entire Google Cloud project if necessary.\u003c/p\u003e\n"],["\u003cp\u003eThis guide provides additional links to the Filestore Overview, creating instances, access controls, copying data, and transferring data from cloud storage.\u003c/p\u003e\n"]]],[],null,["# Quickstart: Create a Filestore instance by using the Google Cloud console\n\nCreate a Filestore instance by using the Google Cloud console\n=============================================================\n\nThis quickstart shows you how to perform basic operations in Filestore\nusing this Google Cloud console. In the quickstart, you will:\n\n- Create a Filestore instance.\n- Mount the file share from that instance on a client VM instance.\n- Create a file on the mounted file share.\n- Delete the Filestore instance.\n\nBefore you begin\n----------------\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n\u003cbr /\u003e\n\n| **Important:** If you choose to use an existing project with this quickstart, it must have a non-legacy default VPC network with unmodified firewall rules. Production Filestore instances can have other network configurations, see [Networking](/filestore/docs/networking) for more information.\n\nWhen you finish the tasks that are described in this document, you can avoid\ncontinued billing by deleting the resources that you created. For more information, see\n[Clean up](#clean-up).\n\nCreate a Compute Engine VM instance to be the client\n----------------------------------------------------\n\n1. In the Google Cloud console, go to the VM Instances page.\n\n [Go to the Compute Engine instances page](https://console.cloud.google.com/compute/instances)\n2. Click **Create Instance** and configure the instance as follows.\n\n - Set **Name** to `nfs-client`.\n - Set **Zone** to **us-central1-c**.\n - Keep the default boot disk.\n - In the **Firewall** section, select the **Allow HTTP traffic** checkbox.\n - Keep the network as **default**.\n3. Click **Create** to create the instance.\n\nCreate a Filestore instance\n---------------------------\n\nThis quickstart shows how to create an instance in the **Regional** tier with custom performance enabled. For details on creating instances, see [create an instance](/filestore/docs/creating-instances).\n\n1. In the Google Cloud console, go to the Filestore **Instances** page.\n\n [Go to the Filestore Instances page](https://console.cloud.google.com/filestore/instances)\n2. Click **Create Instance** and configure the instance as follows:\n\n - Set **Instance ID** to `nfs-server`.\n - Set **Instance type** to **Regional**.\n - In **Capacity** , enter `1 TiB`.\n - In **Performance** , click the **Custom performance** toggle to enable custom performance. By default, you get 12,000 IOPS in the **Performance** field. The **Scale performance with capacity** checkbox is checked, so if you change the value in the **Capacity** field, performance scales accordingly. For details on configuration options, see [configure performance](/filestore/docs/creating-instances#configure-performance).\n\n | **Note:** After activating custom performance for an instance you can't deactivate it for that instance. Instances with activated custom performance are billed according to purchased IOPS. For details, see [configure custom performance](/filestore/docs/custom-performance#enable-custom-performance) and [Filestore pricing](/filestore/pricing).\n - Set **Region** to **us-central1**.\n\n - Set **VPC network** to **default**.\n\n - Set **File share name** to `vol1`.\n\n - Set **Allocated IP range** to **Use an automatically allocated IP range**.\n\n - Set **Access controls** to **Grant access to all clients**.\n\n3. Click **Create**.\n\nMount the Filestore file share on the client\n--------------------------------------------\n\n1. In the Google Cloud console, go to the VM Instances page.\n\n [Go to the VM instances page](https://console.cloud.google.com/compute/instances)\n2. In the list of VM instances, click the **SSH** button for **nfs-client** to\n open a terminal window connected to that instance.\n\n3. Install NFS by running the following commands:\n\n sudo apt-get -y update &&\n sudo apt-get -y install nfs-common\n\n4. Make a mount directory for the Filestore file share by running the following command:\n\n sudo mkdir -p /mnt/test\n\n5. Mount the file share by running the `mount` command\n and specifying the Filestore instance IP address and\n file share name:\n\n sudo mount 10.0.0.2:/vol1 /mnt/test\n\n6. Make the file share accessible by changing the permissions:\n\n sudo chmod go+rw /mnt/test\n\n | **Important:** We recommend setting more specific permissions in a production environment. For more information, see [Configuring access on a file share](/filestore/docs/access-control#fileshare-access).\n\nCreate a file on the file share\n-------------------------------\n\n1. In the terminal window that is connected to the **nfs-client** instance, create a file\n named `testfile` by running the following command:\n\n echo 'This is a test' \u003e /mnt/test/testfile\n\n2. Confirm that the file was created by running the following command:\n\n ls /mnt/test\n\n and verifying that `testfile` is listed.\n\nClean up\n--------\n\n\nTo avoid incurring charges to your Google Cloud account for\nthe resources used on this page, follow these steps.\n\n### Delete the Google Cloud project\n\n| **Caution** : Deleting a project has the following effects:\n|\n| - **Everything in the project is deleted.** If you used an existing project for the tasks in this document, when you delete it, you also delete any other work you've done in the project.\n| - **Custom project IDs are lost.** When you created this project, you might have created a custom project ID that you want to use in the future. To preserve the URLs that use the project ID, such as an `appspot.com` URL, delete selected resources inside the project instead of deleting the whole project.\n|\n|\n| If you plan to explore multiple architectures, tutorials, or quickstarts, reusing projects\n| can help you avoid exceeding project quota limits.\n1. In the Google Cloud console, go to the **Manage resources** page.\n\n [Go to Manage resources](https://console.cloud.google.com/iam-admin/projects)\n2. In the project list, select the project that you want to delete, and then click **Delete**.\n3. In the dialog, type the project ID, and then click **Shut down** to delete the project.\n\n\u003cbr /\u003e\n\n### Delete the Filestore instance\n\n1. In the Google Cloud console, go to the Filestore Instances page.\n\n [Go to the Filestore instances page](https://console.cloud.google.com/filestore/instances)\n2. Click the **`nfs-server`** instance ID to open the instance details page.\n\n3. Click **Delete** *delete*.\n\n4. When prompted, type the instance ID.\n\n5. Click **Delete**.\n\n### Delete the Compute Engine instance\n\n1. In the Google Cloud console, go to the Filestore Instances page.\n\n [Go to the VM instances page](https://console.cloud.google.com/compute/instances)\n2. Select the checkbox next to the **`nfs-client`** instance name.\n\n3. Click **Delete** *delete*.\n\n4. When prompted, click **Delete** again.\n\nWhat's next\n-----------\n\n- Read the [Filestore Overview](/filestore/docs/overview) to learn more about the basics of Filestore.\n- Set up a Filestore instance on your own by following the instructions at [Creating Instances](/filestore/docs/creating-instances).\n- Read the [Access Control](/filestore/docs/access-control) page to learn how to control access to Filestore operations and the resources on an instance.\n- See how to [copy data to or from a Filestore instance](/filestore/docs/copying-data).\n- See how to [transfer large datasets from Cloud Storage to Filestore](/filestore/docs/transfer-data-from-gcs)."]]