Results 1 to 3 of 3

Thread: Is LVM2 on the DVD?

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    5

    Is LVM2 on the DVD?

    I need a Knoppix disk (or any other live distro) capable of detecting LVM2 volumes and resizing them (plus resizing and ext3 filesystem contained on it). The DVD packages list only shows lvm-common and lvm10 (so lvm2 seems to be missing) but I'm not sure whether that list is complete.

    Edit: Of course I also need LVM2 support in the 2.6.x kernel for the distro to be of any use to me.

  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    5
    Replying to myself: you can ignore this, I've managed to get LVM2 to work with the current Knoppix 3.4 and successfully extended a vg (yes, I could've done this online) and a logical volume and resized the ext3 filesystem on that lv (this was a root on LVM2 box, thus the need to do these operations from a live CD).

    In case anybody is interested, here's how I did it:

    - First, boot knoppix26 (well duh, I doubt we can get LVM2 to work in Kernel 2.4 ).
    - Now we have two possible ways to proceed, we can either use apt-get to download the packages we need or we can download them manually.

    With apt-get:
    I think apt-get used to work on some older Knoppix CDs, nowadays it won't run directly so you need to go to services -> Install software while running from CD -> apt-get. Once you have done this, open a console and do 'apt-get update' and then 'apt-get install lvm2 dmsetup' (as user 'knoppix', not as root).

    Manual download:
    Go to http://packages.debian.org and search for the packages lvm2 and dmsetup in the 'unstable' distribution. Download the deb files for i386 from there and store them somewhere on /ramdisk.

    - Next, open a console and become root.
    - Start Midnight Commander (mc) and navigate one of the panes to /ramdisk and the other to where you stored the .deb files you downloaded (if you downloaded them with apt-get they are in /ramdisk/home/knoppix/.dist/var/cache/apt/archives).
    - Open the .debs with Midnight Commander (position the cursor on them and hit enter, just like you'd do to enter a subdirectory), go into the cirtual 'CONTENTS' subdirectory, select everything there and copy it to /ramdisk (hit F5).
    - Once you've extracted the .debs you can close mc again.
    - Last but not least, change the path. To do this, type export and see the PATH= variable, it will be something like PATH="/sbin:/bin:/usr/sbin:...... copy (as in copy/paste) the part after the double quote, type 'export PATH="/ramdisk/lib/lvm-200:/ramdisk/sbin:' and then paste the original PATH contents after that.
    - mkdir /dev/mapper
    - cd /dev/mapper
    - mknod control c 10 63
    - Load the device-mapper module required for LVM2 (type modprobe dm-mod).

    That's it. You can now run the usual commands like vgscan, vgchange, pv/vg/lvcreate, ... on your LVM2 volumes.

    In case you want to resize an ext3 root volume like I did you can now proceed to extend the lv, run e2fsck -f on it, use debugfs to 'demote' it to ext2, run resize2fs on it, use tune2fs -j to make it ext3 again, mount it on /mnt2 (I always create /mnt2 and mount there, I don't like Knoppix creating mountpoints in whatever I mounted directly to /mnt), mount --bind /proc and /sys to /mnt2/proc and /mnt2/sys respectively, chroot /mnt2 and then lilo -v to reinstall your bootloader (I did that just for good measure. given the fact that neither kernel image nor initrd got moved in the resizing procedure it would probably have booted without going through all the steps to reinstall lilo), umount /mnt2, reboot and enjoy your bigger /.

  3. #3
    Member registered user
    Join Date
    Jan 2003
    Posts
    38

    a revision for knoppix 3.7 2.6 kernel

    follow the directions above, however you will need to remove /dev/mapper before mkdir /dev/mapper (as /dev/mapper is actually a link to the live-cd and therefore read-only).
    rm -Rf /dev/mapper
    mkdir /dev/mapper
    and continue with the rest of the instructions....

    Personally I think it should be part of knoppix and not require such dramatics. Dev-mapper is already included and should be copied over to /etc instead of linked, then they could install lvm2 and run it on both kernels. It is a small program and would be trivial to implement.

Similar Threads

  1. lvm2 support needed for both 2.4 and 2.6 kernels
    By sireasoning in forum Ideas
    Replies: 4
    Last Post: 03-09-2006, 11:54 AM
  2. LVM2 at boot time
    By lbloch in forum General Support
    Replies: 6
    Last Post: 10-15-2004, 09:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 192GB | 8x HDD Trays picture

Dell Poweredge R640 Server | 2x Silver 4114 20 Cores | 192GB | 8x HDD Trays

$1939.99



DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2690v3 2.6GHz =24 Cores 32GB H730 4xRJ45

$274.00



Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB picture

Dell PowerEdge R720XD Xeon E5-2680 V2 2.8GHz 20 Cores 256GB RAM 12x4TB

$510.00



Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD picture

Dell PowerEdge R620 Server 2x E5-2660 v1 2.2GHz 16 Cores 256GB RAM 2x 300GB HDD

$79.19



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 128GB RAM No HDD

$389.99



Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox picture

Dell PowerEdge R720 Server - 2x8c CPU,256Gb RAM, 128Gb SSD/3x900Gb SAS, Proxmox

$340.00



Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu picture

Dell PowerEdge R730, 2 sinks, SystemBoard, 8 trays,H330,Idrac 8 exp, 2x750w Psu

$135.00



Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores  64gb  H730  2x 750w picture

Dell Poweredge R730xd 2.5in 2x E5-2690 v3 2.6ghz 24-Cores 64gb H730 2x 750w

$189.99



DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45 picture

DELL PowerEdge R730 Server 2x E5-2680v4 2.4GHz =28 Cores 32GB H730 4xRJ45

$284.00



DELL PowerEdge R630 8SFF Server 2x E5-2680v3 2.5GHz =24 Cores 128GB H730 4xRJ45 picture

DELL PowerEdge R630 8SFF Server 2x E5-2680v3 2.5GHz =24 Cores 128GB H730 4xRJ45

$360.00