fakie_flip |
04-06-2008 02:17 AM |
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?
|