Después de solicitar un servidor de Hetzner, recibirá un correo electrónico con inicio de sesión de contenido SSH
1 2 3 4 | IPv4 Address: 51.91.111.128 IPv6 Address: 2a11:4f81:1612:3333::3 Username: root Password: xxxxxxxxxxxx |
Inicia sesión SSH veremos un mensaje:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 dieciséis 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ------------------------------------------------------------------- Welcome to the Hetzner Rescue System. This Rescue System is based on Debian 10 (buster) with a custom kernel. You can install software as in a normal system. To install a new operating system from one of our prebuilt images, run 'installimage' and follow the instructions. More information at http://wiki.hetzner.de ------------------------------------------------------------------- Rescue System up since 2020-06-23 19:15 +02:00 Hardware data: CPU1: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz (Cores 8) Memory: 32035 MB Disk /dev/sda: 3000 GB (=> 2794 GiB) doesn't contain a valid partition table Disk /dev/sdb: 3000 GB (=> 2794 GiB) doesn't contain a valid partition table Total capacity 5589 GiB with 2 Disks Network data: eth0 LINK: yes MAC: 51:41:5d:9f:61:f3 IP: 51.91.111.128 IPv6: 2a11:4f81:1612:3333::3/64 RealTek RTL-8169 Gigabit Ethernet driver |
El servidor tiene 2 HDD (3000 GB), ahora queremos usar una unidad con capacidad alrededor de 6000 GB, usamos RAID-0
Paso 1: use el comando:
1 | installimage |
Paso 2: Elija CentOS y luego ingrese o haga clic en Aceptar
Paso 3: Elija CentOS-78-64-minimal y luego ingrese o haga clic en Aceptar
Paso 4: ingrese o haga clic en Aceptar
Ahora veremos un editor, podemos editar la configuración del archivo:
Paso 5:
editamos algunas líneas:
1 | SWRAIDLEVEL 1 |
a
1 | SWRAIDLEVEL 0 |
1 2 3 4 | PART swap swap 16G PART /boot ext3 512M PART / ext4 1024G PART /home ext4 all |
a
1 2 3 | PART swap swap 16G PART /boot ext3 512M PART / ext4 all |
Luego presione F2 para guardar y F10 para salir del editor
Elija Sí (repita 2 veces)
Listo, ahora espera unos 3 minutos
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 dieciséis 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | Hetzner Online GmbH - installimage Your server will be installed now, this will take some minutes You can abort at any time with CTRL+C ... : Reading configuration done : Loading image file variables done : Loading centos specific functions done 1/16 : Deleting partitions done 2/16 : Test partition size done 3/16 : Creating partitions and /etc/fstab done 4/16 : Creating software RAID level 0 done 5/16 : Formatting partitions : formatting /dev/md/0 with swap done : formatting /dev/md/1 with ext3 done : formatting /dev/md/2 with ext4 done 6/16 : Mounting partitions done 7/16 : Sync time via ntp done : Importing public key for image validation done 8/16 : Validating image before starting extraction done 9/16 : Extracting image (local) done 10/16 : Setting up network config done 11/16 : Executing additional commands : Setting hostname done : Generating new SSH keys done : Generating mdadm config done : Generating ramdisk done : Generating ntp config done 12/16 : Setting up miscellaneous files done 13/16 : Configuring authentication : Setting root password done : Enabling SSH root login with password done 14/16 : Installing bootloader grub done 15/16 : Running some centos specific functions done 16/16 : Clearing log files done INSTALLATION COMPLETE You can now reboot and log in to your new system with the same credentials that you used to log into the rescue system. |
Paso 6: reiniciar
¡Listo !, revisa el disco
1 2 3 4 5 6 7 8 9 | [root@tutorialspots ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 16G 0 16G 0% /dev tmpfs 16G 0 16G 0% /dev/shm tmpfs 16G 528K 16G 1% /run tmpfs 16G 0 16G 0% /sys/fs/cgroup /dev/md2 5.4T 1.3G 5.2T 1% / /dev/md1 487M 135M 327M 30% /boot tmpfs 3.2G 0 3.2G 0% /run/user/0 |
0 Comentarios
Dejanos tu comentario para seguir mejorando!