LinuxSupportFAQForm | |
---|---|
SupportProblem | I try to add a large (e.g. 80 GB) IDE hard disk to SLC4. It is clipped via jumper to 32 GB to allow the BIOS to boot. How do I add it to the LVM with it's full capacity? |
SupportAnswer |
In the case of hard disks that have been limited via hardware jumpers to return less than their full capacity, the kernel needs the /hdx=stroke/ boot option to understand the geometry, see http://tldp.org/HOWTO/Large-Disk-HOWTO.html. This option can be added to the kernel command line in the /boot/grub/grub.conf file, or directly from the GRUB boot menu. In the following example, please substitute hdx with your actual disk device (hd=a=, hd=b=, ..)
Edit /boot/grub/grub.conf to add the option hdx=stroke at the end of the "kernel ..." line. Reboot.
Partition the new disk with fdisk or parted , create one big partition.
Next create a new physical volume on the new partition with
pvcreate /dev/hdx1Add the physical volume to the existing volume group VolGroup00 vgextend VolGroup00 /dev/hdx1and extend the existing logical volume LogVol00 by e.g. 70 GB lvextend -L +70G /dev/VolGroup00/LogVol00 /dev/hdx1If you would like to extend the root file system (/) on this logical volume to use the new space, you will need to use the Boot CD or PXE "rescue" boot to resize the file system. Other file systems that can be dismounted can be extended from within the running system, but please do not extend a mounted file system since there is a risk of corrupting it. Start the Boot CD with 'linux hdx=stroke rescue'. Skip the proposed mounting of the file system and do lvm vgchange -a y e2fsck -f /dev/VolGroup00/LogVol00 resize2fs /dev/VolGroup00/LogVol00Next remove the CD (if you used it) and reboot. |
OsVersion | SLC4 |
HardwareArchitecture | any |
ApprovedBySupport | SupportApproved |