Installing the Packages for Linux Device Names
Service Status The Object Storage Unit (OSU) service is now END OF LIFE. For more information, see End-of-Life Policy. |
If you want to migrate a Linux instance from VMWare, VirtualBox or Amazon Web Services (AWS) to an OUTSCALE Linux instance, you have to install a package to configure udev rules. For more information about the migration procedure, see Migrating a Linux Instance to the OUTSCALE Cloud.
For more information, see About Volumes > Volumes Attachment and Device Names.
-
Connect to your instance and open a terminal.
-
Download the OUTSCALE package you need in the directory of your choice using one of the following methods:
-
For CentOS 6 and CentOS 7 instances, with the following url: https://osu.eu-west-2.outscale.com/outscale-official-packages/udev/osc-udev-rules-20160516-1.x86_64.rpm.
-
For Ubuntu instances, with the following url: https://osu.eu-west-2.outscale.com/outscale-official-packages/udev/osc-udev-rules_20160516_amd64.deb.
> wget URL
-
-
Install the package on the instance using one of the following methods:
-
For CentOS 6 and CentOS 7 instances:
> rpm -i osc-udev-rules-20160516-1.x86_64.rpm
-
For Ubuntu instances:
> dpkg -i osc-udev-rules_20160516_amd64.deb
-
-
If the
Wrong volumes names in your /etc/fstab
warning message appears, contact our Support team or modify your /etc/fstab file:-
Open your /etc/fstab file in a text editor.
-
Modify the device names for attached volumes that are in the /dev/sdX format to the /dev/xvdX format, X being the same letter in both formats.
/etc/fstab File Samplecat /etc/fstab proc /proc proc defaults,nosuid,nodev,noexec,relatime 0 0 sysfs /sys sysfs defaults,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs defaults,nosuid,nodev 0 0 devpts /dev/pts devpts defaults,nosuid,noexec,relatime,mode=620 0 0 /dev/vda1 / ext4 defaults,noatime,nodiratime 0 0 none /selinux selinuxfs noauto,defaults 0 0 /dev/xvdd /mnt/d ext3 defaults 0 0 /dev/xvdh /mnt/h ext3 defaults 0 0
You must use the /dev/vda1 device name for the root file system (root device).
You must use a /dev/xvdX device name format for any other volume.
-
-
To check that no device names in the /dev/sdX format remain in the /etc/fstab file of your instance, execute in any directory the osc-check_vdsd script contained in the package and installed in /usr/local/bin:
> osc-check_vdsd
If the output is empty and you only changed all
sd
intoxvd
, your modifications are correct. -
Reboot your instance.
The package is installed and you can see the links between /dev/xvdX and /dev/sdY device names in the /dev directory.
Related Page
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.