Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problems with two identical hdd's in fcr4
#2

Quote:basically there are two 40 gig hdd's, and i would expect df -h to report between 70 and 80 gb of storage... but not so. See below
 

One of the unusual traits of LVM is that you will only see the LV size not the individual partitions.. :)

 

Quote:[root@www ~]# df -hFilesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup01-LogVol00 36G  7.3G 27G  22% /

...
 

Indeed this indicates that the volgroup doesnt contain the full 80Gb.. so its not there :)

 

Quote:/dev/hda1  *  1        13          104391  83  Linux/dev/hda2      14      4863 38957625  8e  Linux LVM

/dev/hdb1 * 1        4865  39078081 8e  Linux LVM

 

looks like both hdd's are in use doesnt it ?
 

Not in use, but installed yes....

 

Quote:so, my question is, is the second hdd being used at all, and if so where is the missing 40gb or so of hdd space ?
 

Your 40Gb is just sitting on the other disk, unused :)

 

You can do several things, fdisk alter the partition, format, mount and use. This will give you the standard Linux setup.

 

However, since its preped as a LVM partition, lets use it as that. OK, two methods for this as well. You can create a new volgroup and use that new volume group or you can append it to the current volgroup.

 

FIRST!

 



Code:
# pvdisplay /dev/hdb1




 

If it says:

Quote:PV Status available
 

Then we are good to go.. otherwise the PV is in use..

 

 

-- Extending a VolGroup

 

You will most likely need to do this with a LiveCD .. like knoppix etc.. (due to the fact that you need to umount /).

 

Here I assume ext2/ext3.

 



Code:
# pvcreate /dev/hdb1
# vgextend VolGroup01 /dev/hdb1
# lvextend -L+40G /dev/VolGroup01/LogVol00
# umount /dev/VolGroup01/LogVol00                # if mounted!
# resize2fs /dev/VolGroup01/LogVol00




 

-- New VolGroup

 

For this you don't need to umount the system, unless you wish to mount /usr etc on it.. in which case you might need to drop to single user and do it from the console? Anyhoo

 



Code:
# pvcreate /dev/hdb1
# vgcreate NewVolGroupName /dev/hdb1




 

Create a LV the total size of the volgroup



Code:
# vgdisplay NewVolGroupName | grep "Total PE"
... TOTAL PE VALUE ....
# lvcreate -L TOTALPEVALUE -nNewLogVolName NewVolGroupName




 

 

After this.. format the new volume group and mount somewhere:



Code:
# mkfs.ext3 /dev/NewVolGroupName/NewLogVolName
# mount /dev/NewVolGroupName/NewLogVolName /mnt/point




 

 

OK.. this is a run through.. tell me about issues :)

Reply


Messages In This Thread
problems with two identical hdd's in fcr4 - by znx - 2005-09-09, 07:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)