ajouter_un_disque_dur_sur_un_vps
Ceci est une ancienne révision du document !
Ajouter un disque dur sur un VPS
J'ai un VPS chez OVH sur lequel tourne mon instance OwnCloud. Comme j'étais à l'étroit au niveau espace disque et qu'OVH permet maintenant de commander un disque additionnel, je me suis lancé. Je vais suivre la procédure d'OVH. J'ai aussi posté un message sur debian-fr.org pour être sûr de faire ça dans les règles.
C'est parti ! Une fois le disque commandé via l'interface d'OVH, on peut le voir sur le VPS :
# fdisk -l Disk /dev/vda: 10 GiB, 10737418240 bytes, 20971520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 Device Boot Start End Sectors Size Id Type /dev/vda1 * 2048 20971519 20969472 10G 83 Linux Disk /dev/vdb: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes
Il n'a pas encore de partition(s). On va en créer une avec fdisk
:
# fdisk /dev/vdb Welcome to fdisk (util-linux 2.25.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table. Created a new DOS disklabel with disk identifier 0x78fc199b. Command (m for help): n Partition type p primary (0 primary, 0 extended, 4 free) e extended (container for logical partitions) Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-104857599, default 2048): Last sector, +sectors or +size{K,M,G,T,P} (2048-104857599, default 104857599): Created a new partition 1 of type 'Linux' and of size 50 GiB. Command (m for help): w The partition table has been altered. Calling ioctl() to re-read partition table. Syncing disks.
On peut voir la différence avec un fdisk -l
:
# fdisk -l (...) Disk /dev/vdb: 50 GiB, 53687091200 bytes, 104857600 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x78fc199b Device Boot Start End Sectors Size Id Type /dev/vdb1 2048 104857599 104855552 50G 83 Linux
ajouter_un_disque_dur_sur_un_vps.1464347330.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)