LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-15-2011, 11:35 PM   #1
prasanta.82
Member
 
Registered: Aug 2006
Posts: 31

Rep: Reputation: 15
Resizing LVM


Dear All
pls help me for resizing my LVM.Pls tell the detail (Step by step )procedure for resizing LVM.


Thanks
Prasanta
 
Old 06-15-2011, 11:56 PM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Depending on what distro you are using, there may be a GUI available, I usually use the lvm commands directly. Use df to find the logical volume name for the partition that you want to resize. Run lvresize to resize the logical volume. Here I'm adding 100M to my /tmp partition
Code:
$ df -k
/dev/mapper/VolGroup00-LogVol03
                       4062912    139520   3713680   4% /tmp

$ lvresize -L+100M /dev/mapper/VolGroup00-LogVol03

# /sbin/resize2fs /dev/mapper/VolGroup00-LogVol03
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-LogVol03 is mounted on /tmp; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-LogVol03 to 1081344 (4k) blocks.
The filesystem on /dev/mapper/VolGroup00-LogVol03 is now 1081344 blocks long.
The resize fs command will change depending on what filesystem you have configured. I have an ext3 configured.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Partition Resizing ChairmanMeoww Fedora 6 06-16-2012 06:00 AM
resizing PV does not work (lvm) after resizing partition deadeyes Red Hat 5 03-11-2011 11:19 AM
Resizing the LVM g_kapoor85 Linux - Software 3 03-21-2009 01:27 AM
resizing non-LVM partition laggerific Linux - Software 1 11-09-2006 06:20 PM
Resizing / with LVM zivota Red Hat 2 07-12-2006 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration