Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

adding physical disks in centos 5.3 (LVM)

Avatar of valleytech
valleytechFlag for United States of America asked on
LinuxLinux Distributions
2 Comments1 Solution635 ViewsLast Modified:
Hi
I have installed a centos box on a SCSI 18GB.

I also attached another 2 SCSI 36GB and 72GB, and would like to add them into the / partition, such that the partition will span the entire 3 disks, AND I don't want to re-install the OS neither nor doing "mount /home /dev/sdb2", etc etc etc.

I utilized pvcreate, pvscan, vgextend, and lvextend.
However, when using "df -h", root partition still stayed at 15.GB rather than (15+33+68) GB.

Am missing anything?

many thanks!
please see the code section below for my progress


// Fisrt, I do pvcreate on /dev/sdb1 and /dev/sdc1
// /dev/sda has already been installed with Centos 5.3
# pvcreate /dev/sdb1
# pvcreate /dev/sdc1

//Then, I do  this
# vgextend VolGroup00 /dev/sdb1
# lvextend -L+33G /dev/VolGroup00/LogVol00
# vgextend VolGroup00 /dev/sdc1
# lvextend -L+68G /dev/VolGroup00/LogVol00

//My pvscan will reveal something like this:

# pvscan
  PV /dev/sda2   VG VolGroup00   lvm2 [16.75 GB / 0    free]
  PV /dev/sdb1   VG VolGroup00   lvm2 [33.91 GB / 33.75 GB free]
  PV /dev/sdc1   VG VolGroup00   lvm2 [68.34 GB / 68.34 GB free]
  Total: 3 [119.00 GB] / in use: 3 [119.00 GB] / in no VG: 0 [0   ]

//But, my df -h reveals that the size has not been updated at all
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       15G  2.9G   11G  21% /
/dev/sda1              99M   12M   82M  13% /boot
tmpfs                 506M     0  506M   0% /dev/shm
ASKER CERTIFIED SOLUTION
Avatar of Monis Monther
Monis MontherFlag of Iraq imageSystem Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers