LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2012, 02:03 AM   #1
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Rep: Reputation: 1
LVM volume resizing without data-lose


Hi

i have this LVMs:

[root@localhost ~]# df -h

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
35G 28G 5.2G 85% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
/dev/sda1 485M 33M 427M 8% /boot
/dev/mapper/VolGroup-lv_home
33G 4.5G 27G 15% /home





i need to reduce size of /home and add it for / partition

what can i do? my data on server is too important from losing.
---------------------------------------

in all there is any rescue cd for doing this work in GUI mode?

thanks all.

Last edited by l0pht; 12-16-2012 at 02:05 AM.
 
Old 12-16-2012, 03:10 AM   #2
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
Hi

which fs are you using?
please post your /etc/fstab file
 
Old 12-16-2012, 03:19 AM   #3
l0pht
Member
 
Registered: Sep 2008
Posts: 79

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ophirg View Post
Hi

which fs are you using?
please post your /etc/fstab file
/dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
UUID=1dbbad19-c0c8-4a4f-acab-afa3856638fe /boot ext4 defaults 1 2
/dev/mapper/VolGroup-lv_home /home ext4 defaults 1 2
/dev/mapper/VolGroup-lv_swap swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
 
Old 12-16-2012, 03:44 AM   #4
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
since you're changing the root directory, you'll need to boot from a live cd or a different partition.
you can use the lubuntu installation disk.

try this tutorial: http://www.mytechforum.com/unix/how-...t4-filesystem/
i found it useful

hope that helps
post if you have any problems
 
1 members found this post helpful.
Old 12-16-2012, 04:19 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,532

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Of course if you think your data is important, you'll have a (at least one) backup before you start.

Resizing is pretty well understood these days - especially with ext4. Shouldn't even be a need to unmount it.
 
1 members found this post helpful.
Old 12-16-2012, 06:10 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,532

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Presuming that is a RHEL/Fedora system, maybe have a look for system-config-lvm.
Used to work o.k. for this sort of thing, haven't tried it in a while (it's a GUI front-end).

*Edit:* still available in F16 repos.

Last edited by syg00; 12-16-2012 at 06:16 AM.
 
  


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
Different sizes in data after resizing Logical Volume fabbie Linux - General 5 07-09-2010 04:35 AM
LVM free space problem after resizing the logical volume wdorninger Linux - Enterprise 0 11-06-2009 07:00 AM
upgrade system with lvm on software raid-1 data volume w/o losing data BinWondrin Linux - General 1 01-13-2009 03:25 PM
I have Lose my data because LVM partition lose iwantofree Linux - Server 9 08-01-2008 07:09 AM
Need to recover data from a LVM volume deyv Linux - General 13 07-25-2005 05:43 PM


All times are GMT -5. The time now is 07:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration