| Logical Volume Manager |
| UNIX / Linux - General UNIX |
| Saturday, 07 February 2009 14:56 |
|
Whats is LVM ? LVM (Logical Volume Manager) for the Linux Kernel is a method of allocating hard drive space into logical volumes, this also allows for the easy creation, resizing, or removal of new or existing partitions.
Note : You can have more then one physically volume used when creating a volume group. i.e 2 Physical Volumes at 20 GB each (2 x 20GB). This would allow you to create a 40GB Volume Group. How do I change the size of my Logical Volumes ? The below was carried out of RedHat Enterprise 5. Other Linux distrubutions may vary.
The following commands will provide you with an overview of your Physical / Logical Volumes,
Ok, so first of all we will need to boot the device into single user mode. We can do this by altering the /etc/inittab file by using the following command. Then reboot your system into single user mode. sed -i 's/id:3:initdefault/id:1:initdefault/g' /etc/inittab Once in single-user mode run the following commands, (first of all we will reduce /var) umount /var Now you can extended /usr, lvextend -L 40G /dev/vg0/usr Then use the df -kh command to check that the changes have been successful. sed -i 's/id:1:initdefault/id:3:initdefault/g' /etc/inittab |
Latest Articles
- Tool - SSLReport
- Brocade ADX - How to perform an image upgrade
- Cisco ASA reboots/crashes when running the command 'show service-policy interface outside set connection detail'
- Brocade ADX - Persistence
- How to define a port range on a Juniper SRX
- Path MTU Discovery (PMTUD) / Path MTU Black Holes
- Mitigating DoS attacks on a Cisco ASA
- How do I clear the Cisco ASA connection counters ?
- High CPU Usage on a Cisco CSS
- How to clone a MySQL database
- Brocade ADX - Configuring SSL
- Brocade ADX - Content Switching Rewrite
- Joomla - How to add a custom field
- BigIP F5 LTM - How to Create a Sorry Page with Image
- BigIP F5 LTM - TCP Syslog
- Cisco ASA - Traffic blocked when TCP syslog server is unreachable
- Excel - Unable to open file
- Brocade ADX - DoS Protection
- Brocade ADX - LoadBalancing Methods
- Brocade ADX - Healthcheck Elements
Popular
- Proxy ARP – SPLAT
- Check Point Commands
- IPSO - Commands
- ASA 8.3 - How to configure NAT
- vSphere - Creating User and Group Permissions
- PEMU - Free Cisco PIX Firewall Emulator / Simulator
- Juniper Netscreen Commands
- Juniper - NAT Explained
- Configuring Wireless Connectivity within Backtrack 4 r2
- ESX Convertor - The session is not authenticated
- How do I install snmpwalk / snmpget using Yum ?
- Netscreen - NSRP
- ESX - ViClient Cannot connect to host
- Troubleshooting a Netscreen Site 2 Site VPN
- Endpoint Connect Installation / Troubleshooting Guide
- ESXi - Connecting to a named pipe
- Check Point - How to Reset SIC
- ESXi White Box - HP DL140
- DNS / nslookup - How to find the root servers ?
- Netscreen - Routing Basics / Virtual Routers / PBR
