LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-06-2008, 02:17 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Rep: Reputation: 81
adding a drive to existing lvm


First, I put another drive in the Debian computer with encrypted lvm. Then I created a partition on it about half the size of the drive to give some logical volumes room to grow. I gave that partition ext3 fs. Next, I didthese are the commands I did. At the end, my / directory is still full at 100%. My drives for that computer are small, but I don't have much extra installed besides the default Debian install.


Code:
pvcreate /dev/hdb1
vgextend debian /dev/hdb1

# I created the new partition exactly 2048 MB.

debian:~# lvextend -L +2048M /dev/debian/root
  Extending logical volume root to 2.27 GB
  Insufficient suitable allocatable extents for logical volume root: 24 more required
debian:~# lvextend -L +2024M /dev/debian/root
  Extending logical volume root to 2.25 GB
  Insufficient suitable allocatable extents for logical volume root: 18 more required
debian:~# lvextend -L +2000M /dev/debian/root
  Extending logical volume root to 2.22 GB
  Insufficient suitable allocatable extents for logical volume root: 12 more required
debian:~# lvextend -L +1900M /dev/debian/root
  Extending logical volume root to 2.12 GB
  Logical volume root successfully resized
debian:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/debian-root
                      268M  268M     0 100% /
tmpfs                  78M     0   78M   0% /lib/init/rw
udev                   10M   56K   10M   1% /dev
tmpfs                  78M     0   78M   0% /dev/shm
/dev/hda1             236M   27M  198M  12% /boot
/dev/mapper/debian-home
                      2.0G   60M  1.8G   4% /home
/dev/mapper/debian-tmp
                      171M  5.6M  157M   4% /tmp
/dev/mapper/debian-usr
                      2.1G  1.8G  209M  90% /usr
/dev/mapper/debian-var
                      945M  173M  725M  20% /var
debian:~#
Where is the extra 2GB?
 
Old 04-07-2008, 12:59 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 375

Rep: Reputation: 38
did you fsck followed by a resize2fs while unmounted?
 
Old 04-08-2008, 03:52 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: san antonio, texas
Distribution: Fedora 64 bit RAID0 + LUKS, CentOS (server), Backtrack, Gentoo Hardened
Posts: 1,441

Original Poster
Rep: Reputation: 81
No, I later did a ext2online and it's working. I forgot that part.
 
  


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
Using LVM and adding a drive reeseslover531 Fedora 3 09-30-2006 11:03 AM
Adding drive with LVM DBabo Linux - Software 2 06-11-2005 10:06 PM
9.2 adding existing windows NTFS drive - can't access DB9 Mandriva 1 04-15-2004 08:10 AM
Adding ide drive to existing raid 5 help koj333 Linux - Hardware 3 09-28-2003 12:28 PM
adding new hard drive to existing linux box jaysan Linux - Newbie 2 08-09-2001 06:27 PM


All times are GMT -5. The time now is 01:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration