- Print
- PDF
Block Storage
- Print
- PDF
Available in Classic and VPC
You can migrate data using Block Storage (hereafter, storage) provided by NAVER Cloud Platform.
- You can migrate data using storage created with snapshot without zone restrictions in Classic and VPC. However, data migration using storage between different Regions is not available.
- For more information on storage, see the following user guides:
Data migration (Linux)
If you need data migration between Linux servers, conduct the following steps in order:
- 1. Create snapshot from console
- 2. Create storage from console
- 3. Check storage identifier and file system type
- If necessary, 4. Change storage identifier
- 5. Mount storage
- 6. Migrate data
1. Create snapshot from console
Create a snapshot of the storage to migrate data.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Compute > Server menus, in that order.
- Click the Storage menu.
- Select the storage to migrate data from the storage list, and then click the [Create snapshot] button.
- Classic environment: click the [Create snapshot] button
- VPC environment: click [Storage settings] > Create snapshot in that order
- Enter the snapshot name and click the [Next] button.
- After checking the set information, click the [Create] button.
- Check the details in the creation pop-up window, and then click the [OK] button.
- A full snapshot is created. You can check the created snapshot in the Snapshot menu.
2. Create storage from console
Create new storage using the snapshot created in the previous step and connect the storage to the server to migrate the storage.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Compute > Server menus, in that order.
- Click the Snapshot menu.
- Click to select the snapshot created for data migration, and then click the [Create storage] button.
- Designate the environment and storage settings of the server to migrate, and click the [Create] button.
- After checking the set information, click the [OK] button.
- Storage is created. You can check the created storage from the Storage menu.
- Connect the created storage to the server.
- Classic environment: click to select the created storage in the storage list, and then click the [Connect to server] button
- VPC environment: click to select the created storage in the storage list, and then click [Storage settings] > Connect to server, in that order
3. Check storage identifier and file system type
Check the storage identifier and file system type created with snapshot.
- Connect to the server remotely.
- For more information on how to access the server, see Linux Server Access guide.
- Check the storage identifier and the file system type created with snapshot by running the
blkid
command.- The storage identifier is displayed as the
UUID
value. - The file system type is displayed as the
TYPE
value.
- The storage identifier is displayed as the
If you create a snapshot from another server's default storage for booting and create storage for the migration target server using that snapshot, the storage identifiers will overlap, making mounting impossible. In this case, see 4. Change storage identifier to change the storage identifier.
4. Change storage identifier
Proceed with the job according to the file system type checked in 3. Check storage identifier and file system type.
Since /dev/xvda
is the device file name of the basic boot storage, do not change this identifier. If you change the identifier of the basic boot storage, the server may not be able to boot.
The following is an example for storage xvdb1
.
xfs file system type
The following describes how to change the identifier of a storage using the xfs file system.
- Enter the
xfs_repair -L /dev/xvdb1
command.- The storage identifier xvdb1 is deleted.
- Enter the
xfs_admin -U generate /dev/xvdb1
command.- A new identifier is created for xvdb1.
- Check if it is changed into a new identifier by the
blkid
command.
ext4 file system type
The following describes how to change the identifier of a storage using the ext4 file system.
- Enter the
tune2fs -U "UUID" /dev/xvdb1
ortune2fs -U random /dev/xvdb1
command.- Enter the desired storage identifier into the "UUID" location.
- The random option sets the UUID as a random value.
- If the following error occurs as a result of executing the
tune2fs
command, recover the file system, and then see Change identifier after file system recovery to change the identifier.# tune2fs /dev/xvdb1 -U random This operation requires a freshly checked filesystem. Please run e2fsck -f on the filesystem.
- You can create a new UUID by entering the
uuidgen
command.
- Check if it is changed into a new identifier by running the
blkid
command.
For the booting disk, create the snapshot when the server is stopped to prevent data loss issues.
Change identifier after file system recovery
For the booting disk, create a snapshot when the server is stopped to prevent data loss issues. If you change "UUID"
by entering the tune2fs
command after creating and allocating a snapshot and storage for the default boot storage with the file system type of ext4
while the server is in operation, an error may occur.
If an error occurs, first check the storage status by entering the # file -s /dev/xvdb1
command. If the storage status check result is displayed as needs journal recovery
, it means the file system is damaged, so proceed with the following steps in order.
- Enter the following command to check and recover the file system.
# e2fsck -f /dev/xvdb1 -y
- Enter the following command to change the storage identifier.
# tune2fs /dev/xvdb1 -U random
5. Mount storage
See the following guides to mount the created storage.
Since the storage data is read and recovered from the snapshot, skip the disk partition and storage format tasks.
6. Migrate data
Migrate data with the path needed in the file system with the mounted storage.
Data migration (Windows)
If you need data migration between Windows servers, conduct the following steps in order:
1. Create snapshot from console
Create a snapshot of the storage to migrate data.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Compute > Server menus, in that order.
- Click the Storage menu.
- Select the storage to migrate data from the storage list, and then click the [Create snapshot] button.
- Classic environment: click the [Create snapshot] button
- VPC environment: click [Storage settings] > Create snapshot in that order
- Enter the snapshot name and click the [Next] button.
- After checking the set information, click the [Create] button.
- Check the details in the creation pop-up window, and then click the [OK] button.
- A full snapshot is created. You can check the created snapshot in the Snapshot menu.
2. Create storage from console
Create new storage using the snapshot created in the previous step and connect the storage to the server to migrate the storage.
- Click the environment you are using in the Region menu and Platform menu of NAVER Cloud Platform console.
- Click the Services > Compute > Server menus, in that order.
- Click the Snapshot menu.
- Click to select the snapshot created for data migration, and then click the [Create storage] button.
- Designate the environment and storage settings of the server to migrate, and click the [Create] button.
- After checking the set information, click the [OK] button.
- Storage is created. You can check the created storage from the Storage menu.
- Connect the created storage to the server.
- Classic environment: click to select the created storage in the storage list, and then click the [Connect to server] button
- VPC environment: click to select the created storage in the storage list, and then click [Storage settings] > Connect to server, in that order
3. Set storage online
Register the storage as a volume to a Windows server.
- Access the Windows server to which additional storage was connected.
- For more information on how to access the server, see Windows Server Access guide.
- Click
and then click the Windows Administrative Tools > Computer Management > Disk Management menus, in that order.
- Alternatively, you can enter
diskmgmt.msc
on the CMD window.
- Alternatively, you can enter
- Find the disk marked with Offline from the disk list, right-click the button, and then click Online.
- You can now use the storage.
Since the storage data is read and recovered from the snapshot, skip the disk partition and storage format tasks.
4. Migrate data
Migrate data with the path needed in the volume of the storage registered on the server.