Linux Support FAQ entry 17 Apr 2007, original by mail from JaakkoKoivuniemi
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/hdx1
Add the physical volume to the existing volume group VolGroup00
vgextend VolGroup00 /dev/hdx1
and extend the existing logical volume LogVol00 by e.g. 70 GB
lvextend -L +70G /dev/VolGroup00/LogVol00 /dev/hdx1

If 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/LogVol00

Next remove the CD (if you used it) and reboot.

OsVersion SLC4
HardwareArchitecture any
ApprovedBySupport SupportApproved
Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2007-04-17 - JanIven
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    LinuxSupport All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback