The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in VPC
Learn how to attach or detach storage to a server, and how to configure storage size expansion or return protection.
To enhance service reliability, redundancy between zones is recommended.
- Block storage redundancy: Block storage is configured on a per-zone basis. Set up redundancy between server and block storage zones to ensure continuity of service without interruption in the event of unexpected storage malfunctions or scheduled change task within a specific zone. See Load Balancer overview to set up server redundancy, create block storage in each zone, and attach respective block storage to the servers in each zone to enhance stability.
- Server redundancy: NAVER Cloud Platform provides a high availability (HA) structure to prepare for failures in the physical server, such as memory, CPU, and power supply. HA is a policy for preventing hardware failures from expanding into the virtual machine (VM) server. It supports live migration, which automatically migrates the VM on the host server to another secure host server when a failure occurs in the aforementioned host server. However, the VM server is rebooted when an error occurs where Live Migration cannot be initiated. If the service is being operated with a single VM server, it is recommended that you also set up multiplexing for VM servers in order to reduce the frequency of failures that may occur as a result of rebooting the VM server.
Attach to server
Learn how to attach the added storage to a server.
- To attach storage to a server, the hypervisor type of the server and storage must be the same.
- For servers with the encrypted default storage applied, you can attach only encrypted additional storage.
- KVM-based 3g servers do not support the encryption feature.
- If the storage encryption feature is enabled on CentOS 7.3 and CentOS 7.8 servers, you can add only the storage with encryption applied through Server > [Manage servers and change settings] > Create storage.
- For servers with the non-encrypted default storage applied, you can attach only non-encrypted additional storage.
To attach a storage that is not connected to a server:
- In the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Compute > Server. - Click the Storage menu.
- Select the storage you want to attach to a server from the storage list, and navigate to [Set storage] > Attach to server.
- Only storages with the Available status can be attached to a server.
- From the Select applied server on the popup window, select the server to attach, and click [Yes].
- The storage is attached to the selected server. To use the storage, proceed with the Mount storage (Linux) or Register storage volume (Windows).
Detach from server
Before you proceed with deleting or transferring storage, detach the connection between the server and the storage. You can't delete storages attached to servers. You can transfer storage by detaching it from one server and reattaching it to another.
You can't detach the default storage made when the server is created.
To detach a storage from the server:
-
Detach the storage volume from the server.
- For more information on how to detach a storage volume, see the following:
- Linux server: Unmount storage (Linux)
- Windows server: Detach storage volume (Windows)
NoteFor storage previously attached to a Linux server, unmount the storage and delete its mount information from
/etc/fstabon the server. - For more information on how to detach a storage volume, see the following:
-
In the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Compute > Server. -
Click the Storage menu.
-
Select the storage to detach from the storage list and navigate to [Set storage] > Detach from server.
-
Check the details in the confirmation popup window and click [Yes].
- The storage is detached from the server, and the storage status shows Available.
- If you fail to detach it from the Windows server and encounter the Retry popup window, proceed with the following:
- Enter
diskmgmt.mscon the run command window and click [OK]. - Find the disk to delete, right-click on the disk name, and click Properties.
- In the Properties popup window, check the Target Id displayed in Location.
- Enter
devmgmt.mscon the run command window and click [OK]. - On the disk drive list, find the disk with the same Target Id.
- You can check the Target Id on the Properties popup window. To open the Properties popup window, find the disk, right-click on the disk name, and click Properties.
- Click and hold on the disk name and right-click on the mouse. Click Uninstall device.
- After 20-30 seconds, try detaching the server again from the NAVER Cloud Platform console.
- Enter
- If the issue is not resolved using the above method, it means the disk was not properly detached from the OS. In this case, stop or restart the server.
Change storage
You can change the size of the storage in use. It is applied to the server when you expand the storage size and change the partition and the file system according to the server system on the NAVER Cloud Platform console.
When you change the partition and the file system after expanding the size of a storage, data loss in the storage may occur. To prevent data loss, create a snapshot before you expand the size of a storage. For more information on how to create a snapshot, see Create snapshot from storage.
- For KVM-based storage, both default and additional disks can be resized.
- Default storage: The size of default storage attached to a running server cannot be changed. Stop the server that has the storage attached before resizing.
- Additional storage: Expansion is possible even when the mounted server is running.
- Storage size can only be expanded and cannot be reduced.
- For CB1, CB2, and SSD, IOPS values increase in proportion to disk size when capacity is expanded.
- Whether to expand the storage varies depending on the type of the connected server or the type of the storage. To check whether to expand the storage, see Resizability in Storage details.
Expanding storage file size
To expand the storage size on the NAVER Cloud Platform console:
- In the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Compute > Server. - Click the Storage menu.
- From the storage list, select the storage to expand, and navigate to [Storage settings] > Change storage.
- Enter the new size in the Storage size item on the Change storage popup window, and click [OK].
Expanding partition and file system (Linux)
To expand the partition and the file system on the Linux server:
Expanding default disk partition and file system (Linux)
To expand the default partition and file system: The description is based on the /dev/vda storage:
- You can change the default disk size in the KVM-based storage environment.
- You can see the storage name in Connection information in the storage details.
- Connect to the Linux server.
- For more information on how to connect to the server, see Access Linux server.
- Enter the
su -command and enter the password one more time.- You are logged in with the root permission.
- Enter the
lsblkcommand to check the status of/dev/vdastorage.- Check the partition name of the
/file system. In this example, the description is based on the/dev/vda2partition.
- Check the partition name of the
- Enter the
growpartcommand to expand the partition.
- There is a blank between the storage name and the partition number due to the
growpart [스토리지] [파티션 번호]command, so be careful when entering.
```bash
growpart /dev/vda 2
```
:::(Info) (Note)
If the `growpart` command is not properly executed, enter the following command to install the right package for the operating system:
* NAVIX 9, Rocky 9
```bash
dnf install cloud-utils-growpart
```
* CentOS 7.x, Rocky 8.x
```bash
yum install cloud-utils-growpart
```
* Ubuntu 20.04
```bash
apt-get update
apt-get install cloud-guest-utils
```
:::
- Enter the
lsblkcommand to check the status of partition expansion. - From the following commands, enter a command appropriate for the file system that you are using, and change the size of the file system:
- ext4
resize2fs /dev/vda2 - Enter the mount point for xfs_growfs
xfs_growfs /
- ext4
- Enter the
df -hcommand to check if the partition and file system expansion completed successfully.
Expanding additional disk partition and file system (Linux)
To expand the additional disk partition and file system on the Linux server: The description is based on the /dev/xvdb1 storage:
-
Connect to the Linux server.
- For more information on how to connect to the server, see Access Linux server.
-
Enter the
su -command and enter the password one more time.- You are logged in with the root permission.
-
Enter the
lsblkcommand to check the status of/dev/xvdb1storage.- If you are unable to see the status of
/dev/xvdb1storage after executing the command, check if the storage is attached to the server.
- If you are unable to see the status of
-
Enter the following command to unmount the
/dev/xvdb1storage:- Although the
growpartcommand can be run without unmounting the storage as preparation for running thegrowpartcommand, it is best to unmount the storage or back up the snapshot first to prevent data loss.
umount /dev/xvdb1 - Although the
-
Enter the
growpartcommand to expand the partition.- Unmount the storage or back up the snapshot first to prevent data loss due to using the
growpartcommand. - There is a blank between the storage name and the partition number due to the
growpart [스토리지] [파티션 번호]command, so be careful when entering.
growpart /dev/xvdb 1NoteIf the
growpartcommand is not properly executed, enter the following command to install the right package for the operating system:- CentOS 7.x, Rocky 8.x
yum install cloud-utils-growpart - NAVIX 9 , Rocky 9
dnf install cloud-utils-growpart - Ubuntu 18.04, Ubuntu 20.04
apt-get update apt-get install cloud-guest-utils
- Unmount the storage or back up the snapshot first to prevent data loss due to using the
-
Enter the
lsblkcommand to check the status of partition expansion. -
Enter the following command to check the file system status of the partition:
- CentOS 7.x, Rocky Linux 8.x
e2fsck -f /dev/xvdb1- NAVIX 9, Rocky Linux 9
xfs_repair /dev/xvdb1 -
From the following commands, enter the applicable one for the file system in use to mount the file system and expand its size:
- ext4
mount /dev/xvdb1 /data resize2fs /dev/xvdb1 - xfs
mount /dev/xvdb1 /data xfs_growfs /data
- ext4
-
Enter the
df -hcommand to check if the expansion and the mount are completed properly.
Expanding partition and file system (Windows)
To expand the partition and file system from the Windows server:
- Connect to the Windows server.
- For more information on how to connect to the server, see Access Windows server.
- After clicking
, navigate to Windows administrative tools > Computer management > Disk management.
- Alternatively, you can enter
diskmgmt.mscon the run command window.
- Alternatively, you can enter
- On the list that appears, find the partition to expand, right-click on the partition name, and click Extend Volume.
- If the storage size has been successfully expanded on the console, the applicable disk shows the added size as Unallocated along with the expandable partition.
- Click [Next].
- Enter the space to expand and click [Next].
- Check the settings and click [Finish].
- The disk volume is expanded.
Set return protection
You can set return protection to prevent your storage from being returned by accident. To change the return protection settings:
- In the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Compute > Server. - Click the Storage menu.
- Select the storage from the storage list, and navigate to [Set storage] > Set storage return protection.
- Check the details in the confirmation popup window and click [Yes].
- If the current return protection status is Enabled, the setting is disabled, and if it is Disabled, the setting is applied.