linux confirms that the data disk has been unmounted and that you can create a new custom image

  • 2020-11-26 19:04:28
  • OfStack

Custom mirror FAQ

How do I view a data disk?

You can use the df command to see how the disk is being used and where the file system is mounted. For example, df? lh

You can get the partition status of the data disk through the fdisk command. For example: ES13en-ES14en

How to uninstall and delete data in disk table?

Assuming that /dev/hda5 is already mounted on /mnt/hda5, you can unmount the mounted file system using any of the following commands:


umount /dev/hda5
umount /mnt/hda5
umount /dev/hda5 /mnt/hda5

/etc/fstab is an important configuration file under Linux system, which contains the details of the file system and storage device mounted by the system at startup.

When you do not want to mount the specified partition when the instance is started, you need to delete the corresponding statement line in the current file. For example, xvdb1 can be disconnected on startup by deleting the following statement:


/dev/xvdb1 /leejd ext4 defaults 0 0

How do I verify that I have unmounted the disk and that I can create a new custom image?

Confirm that the corresponding automatic mount data disk partition statement line in the /etc/fstab file has been deleted.

Use the mount command to view the mount information for all devices and confirm that the execution results do not contain the corresponding data disk partition information.

Does the custom image still exist after the instance is released?

There is.

Does the snapshot still exist after the instance is released?

Keep the manual snapshot and the automatic snapshot will be cleared as the instance is released. For more details, see Automatic snapshot FAQ.

Is the custom image created affected when the instance used to create the custom image expires or when the data is released? Are instances enabled using custom images affected?

Are not affected.

Can an instance created with a custom image change the operating system? Can the original custom image still be used after changing the system?

You can. The original custom image can still be used after replacement.

Can I use a custom image if I choose a different operating system when changing the system disk?

You can.

Note: When the system disk is replaced with a custom mirror, the original data will be overwritten.

Can the custom image created be used to replace the system disk data of another cloud server ECS?

You can. Note, however, that the custom image will completely overwrite all the data on the server's system disk. Refer to creating an instance of ECS with mirroring.

Can I upgrade the CPU, memory, bandwidth, hard disk, etc. of the cloud server ECS opened by the custom image?

Can be upgraded.

Can Custom mirroring be used across geographies?

Can't. Custom mirroring can only be used in the same region. For example, the custom image created in the example of East China region 1 cannot be used to open cloud server ECS in North China Region 1.

If you need to use custom images across geographies, you can do this by copying images, see Copying images.

Can a custom image of a package year/month instance be used to create a pay-as-you-go cloud server, ECS?

You can. The custom mirroring feature does not differentiate between how an instance is paid, that is, whether it is paid on an annual basis or pay-as-you-go basis.


Related articles: