A ver, haces un despliegue de un servicio con Oracle Linux 8 y a la hora de definir el área de almacenamiento, cambias los 50Gb de facto por otro tamaño, por ejemplo por 200Gb.
Cuando arranca el servicio y verificas el espacio disponible, te das cuenta, que no está el espacio que querías tener.
Aquí no hay error, eso es lo normal.
Puedes ampliar la partición del disco "/" root, instalando el OCI-UTILS en caso de que no lo tengas, o bien tan sólo llamándolo.
[root@oracle-database-server-free-for-developers opc]# login as: opc Authenticating with public key "rsa-key-20200507" Passphrase for key "rsa-key-20200507": Activate the web console with: systemctl enable --now cockpit.socket Last login: Tue Apr 18 02:59:46 2023 from 201.198.177.118 ************************************************************************* [opc@oracle-database-server-free-for-developers ~]$ sudo -s /bin/bash [root@oracle-database-server-free-for-developers opc]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 16G 0 16G 0% /dev tmpfs tmpfs 16G 0 16G 0% /dev/shm tmpfs tmpfs 16G 8.7M 16G 1% /run tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup /dev/mapper/ocivolume-root xfs 36G 13G 24G 35% / /dev/mapper/ocivolume-oled xfs 10G 105M 9.9G 2% /var/oled /dev/sda2 xfs 1014M 323M 692M 32% /boot /dev/sda1 vfat 100M 5.1M 95M 6% /boot/efi tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/0 tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/988 tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/1000Como puedes verificar los volúmenes lógicos están con los tamaños de facto.
[root@oracle-database-server-free-for-developers opc]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert oled ocivolume -wi-ao---- 10.00g root ocivolume -wi-ao---- 35.47g [root@oracle-database-server-free-for-developers opc]# pvs PV VG Fmt Attr PSize PFree /dev/sda3 ocivolume lvm2 a-- 45.47g 0 [root@oracle-database-server-free-for-developers opc]# dnf -y install oci-utils Ksplice for Oracle Linux 8 (x86_64) 25 MB/s | 2.2 MB 00:00 MySQL 8.0 for Oracle Linux 8 (x86_64) 40 MB/s | 3.0 MB 00:00 MySQL 8.0 Tools Community for Oracle Linux 8 (x86_64) 7.8 MB/s | 491 kB 00:00 MySQL 8.0 Connectors Community for Oracle Linux 8 (x86_64) 532 kB/s | 30 kB 00:00 Oracle Software for OCI users on Oracle Linux 8 (x86_64) 109 MB/s | 75 MB 00:00 Oracle Linux 8 BaseOS Latest (x86_64) 105 MB/s | 57 MB 00:00 Oracle Linux 8 Application Stream (x86_64) 103 MB/s | 44 MB 00:00 Oracle Linux 8 Addons (x86_64) 64 MB/s | 6.9 MB 00:00 Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64) 85 MB/s | 14 MB 00:00 Package oci-utils-0.14.0-2.el8.noarch is already installed. Dependencies resolved. Nothing to do. Complete!
Corremos el utilitario y hacemos la magia de manera simple y rápida. En este caso sólo tenemos una partición y lo que nos va a solicitar el comando, es que si queremos aumentar dicha partición al máximo de espacio disponible.
[root@oracle-database-server-free-for-developers opc]# oci-growfs bash: oci-growfs: command not found [root@oracle-database-server-free-for-developers opc]# /usr/libexec/oci-growfs Volume Group: ocivolume Volume Path: /dev/ocivolume/root Mountpoint Data --------------- mountpoint: / source: /dev/mapper/ocivolume-root filesystem type: xfs source size: 35.5G type: lvm size: 35.5G physical devices: ['/dev/sda3'] physical volumes: ['/dev/sda', '/dev/sda'] partition number: ['3'] volume group name: ocivolume volume group path: /dev/ocivolume/root Partition dry run expansion "/dev/sda3" succeeded. CHANGE: partition=3 start=2304000 old: size=95371264 end=97675264 new:
size=417126367 end=419430367 Expanding partition /dev/sda3: Confirm? [y/N] y Partition expand expansion "/dev/sda3" succeeded. update-partition set to true resizing 3 on /dev/sda using resize_sfdisk_gpt 419430400 sectors of 512. total size=214748364800 bytes ## sfdisk --unit=S --dump /dev/sda label: gpt label-id: 812F8A56-E8ED-417C-BD3D-661E60705756 device: /dev/sda unit: sectors first-lba: 34 last-lba: 419430366 /dev/sda1 : start= 2048, size= 204800, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B,
uuid=E673AE28-BA2F-401D-B02B-695892283475,
name="EFI System Partition" /dev/sda2 : start= 206848, size= 2097152, type=0FC63DAF-8483-4772-8E79-3D69D8477DE4,
uuid=3840F016-52AC-4561-835A-02DFA72AF0E8 /dev/sda3 : start= 2304000, size= 95371264, type=E6D6D379-F507-44C2-A23C-238F2A3DF928,
uuid=66916148-C5F5-4833-8FAE-8A4DE95421FD padding 33 sectors for gpt secondary header max_end=419430367 tot=419430400 pt_end=97675264 pt_start=2304000 pt_size=95371264 resize of /dev/sda returned 0. CHANGED: partition=3 start=2304000 old: size=95371264 end=97675264 new: size=417126367 end=419430367 Extending /dev/sda3 succeeded. Device /dev/sda3 extended successfully. Logical volume /dev/ocivolume/root extended successfully.
Validamos una vez terminada la acción del comando y listo. Ya tenemos nuestros 200GB asociados en el disco.
[root@oracle-database-server-free-for-developers opc]# df -Th Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 16G 0 16G 0% /dev tmpfs tmpfs 16G 0 16G 0% /dev/shm tmpfs tmpfs 16G 8.7M 16G 1% /run tmpfs tmpfs 16G 0 16G 0% /sys/fs/cgroup /dev/mapper/ocivolume-root xfs 189G 14G 176G 8% / /dev/mapper/ocivolume-oled xfs 10G 105M 9.9G 2% /var/oled /dev/sda2 xfs 1014M 323M 692M 32% /boot /dev/sda1 vfat 100M 5.1M 95M 6% /boot/efi tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/0 tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/988 tmpfs tmpfs 3.2G 0 3.2G 0% /run/user/1000 [root@oracle-database-server-free-for-developers opc]#
No hay comentarios:
Publicar un comentario
Te agradezco tus comentarios. Te esperamos de vuelta.