» IT tipps and howto's

How To: Extend (Make it bigger) an ext3 formatted LVM partition

1. Extend the LV partition

lvextend –L +1GB /dev/vgroot/lvsrv

2. Adjust the filesystem (ext3) to the new size of the partition

ext2online /dev/vgroot/lvsrv

3. Occasionally you can tell the command ext2online how big the filesystem should be, the command above usually resizes the filesystem to use the full amount of the partition

ext2online /dev/vgroot/lvsrv 5G


Update February 2nd, 2012

The above steps were written a long time ago (I think in 2008) and on a SLES9 machine.
Today I needed to do the same, but on a SLES11 machine and the command ext2online does not exist anymore.
The new command to use nowadays, which generally works on all Linux systems, is the following:

resize2fs /dev/vgroot/lvsrv

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Icingaweb   Icingaweb2   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder   


Update cookies preferences