Ampliar la raíz XFS en Oracle Linux 8

Guía para gestionar y ampliar la raíz XFS en Oracle Linux 8: optimiza /usr y /var, usa LVs y comandos df/du/lsblk para evitar quedarse sin espacio. Soluciones cloud e IA de Q2BSTUDIO

13 sept 2025 • 2 min read • Q2BSTUDIO Team

Inteligencia-Artificial-

En Oracle Linux 8 la partición raíz o filesystem raíz / suele mantenerse ligera, pero carpetas como /usr y /var pueden crecer y consumir todo el espacio disponible, especialmente si se instalan muchos módulos de Python o se acumulan logs. En Q2BSTUDIO, empresa de desarrollo de software y aplicaciones a medida, especialistas en inteligencia artificial, ciberseguridad y servicios cloud, ayudamos a planificar y gestionar correctamente los volúmenes para evitar estos problemas y optimizar sistemas productivos.

Elementos comunes bajo / incluyen bin sbin lib lib64 etc root dev proc sys tmp boot usr var home opt. Para identificar dónde crece el espacio utilice comandos como df -Th du -csh * y lsblk. En mi caso root era XFS de 20G y los comandos mostraron que /usr ocupaba 12G por instalaciones de Python y /var acumulaba logs importantes.

Principales causas de incremento de uso de espacio: instalaciones de paquetes en /usr, logs no rotados en /var y aplicaciones que escriben datos en rutas bajo /. Recomendaciones: mover instalaciones pesadas a /opt o a LVs separados, usar entornos virtuales para Python, configurar logrotate y dimensionar particiones según necesidades de aplicaciones a medida y servicios desplegados.

Cómo ampliar la raíz XFS en OEL8 resumen de pasos: 1 Añadir disco físico y comprobar con lsblk. 2 Particionar el disco con fdisk /dev/sdX y crear una partición p. 3 Crear un volumen físico con pvcreate /dev/sdX1. 4 Añadirlo al grupo de volúmenes con vgextend nombre_vg /dev/sdX1. 5 Extender el volumen lógico con lvextend -l +100%FREE /dev/vg/volumen. 6 Redimensionar el filesystem XFS en caliente con xfs_growfs -d /. Recuerde que XFS solo crece y no se reduce sin pasos complejos, y que estas operaciones son seguras si se siguen buenas prácticas de backup.

Ejemplo de comandos frecuentemente usados: df -Th para ver uso y tipo de filesystem, du -csh * desde / para sumar tamaños por carpeta, lsblk para ver discos, fdisk /dev/sdc para particionar, pvcreate /dev/sdc1, vgextend ol /dev/sdc1, lvextend -l +100%FREE /dev/ol/root y finalmente xfs_growfs -d / para ampliar el XFS montado en /.

Además de la gestión de volúmenes ofrecemos soluciones integrales que combinan software a medida y servicios cloud. Si su infraestructura está en AWS o Azure podemos ayudar en la arquitectura y escalado con especialistas en servicios cloud aws y azure. También integramos capacidades de inteligencia artificial para automatizar el monitoreo y la gestión con soluciones de inteligencia artificial adaptadas a empresas, incluyendo agentes IA y análisis con power bi.

En Q2BSTUDIO diseñamos e implementamos software a medida, aplicaciones a medida, servicios de ciberseguridad y pentesting, y proyectos de inteligencia de negocio para asegurar rendimiento y cumplimiento. Si necesita soporte para ampliar la raíz XFS, planificar LVs o migrar cargas a volúmenes gestionados contacte con nuestros especialistas en soluciones de software a medida y cloud.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.

Live Chat