PDA

View Full Version : SATA Raid and LVM HOWTO(Knoppix 3.8.1)



sideshore
05-12-2005, 03:47 AM
Hello,

LVM Works fine!

Here's my howto for i386.

LVM (Access LVM Drives from knoppix-cd)
************************************
1. download packages from packages.debian.org to a floppy


-libdevmapper1.0.1_1.01.00-4_i386.deb (http://packages.debian.org/testing/libs/libdevmapper1.01)
-lvm-common_1.5.17_i386.deb (http://packages.debian.org/testing/admin/lvm-common
-lvm2_2.01.04-3_i386.deb (http://packages.debian.org/testing/admin/lvm2)
-dmsetup_1.01.00-4_i386.deb (http://packages.debian.org/testing/admin/dmsetup)


2. Start Knoppix from CD

3. open a terminal and install the packages


#su
#mount /dev/fd0 /floppy
#cd /floppy
#dpkg -i libdevmapper1.0.1_1.01.00-4_i386.deb lvm-common_1.5.17_i386.deb lvm2_2.01.04-3_i386.deb dmsetup_1.01.00-4_i386.deb


4. Now Start the devices


#modprobe dm-mod
#/etc/init.d/libdevmapper1.01 start
# export PATH='/lib/lvm-200'$PATH
#vgscan
--> now you should see your volume groups
#vgchange -ay
#mount /dev/<your volume group>/<partition> /<your mount dir>>


SATA RAID
*********
1. addidional to the steps above download


-dmraid_1.0.0rc5f_i386.deb (http://www.wooyd.org/debian/dmraid/)


2. Install Modules


#su
#mount /dev/fd0 /floppy
#cd /floppy
#dpkg -i dmraid_1.0.0rc5f_i386.deb


3. Check Modules


#su
#modprobe dm-mod
#modprobe dm-mirror


4. Lookup/Activate Raid


#dmraid -ay -v

5. Mount them


#mount -t <fs type> -o users,owner,ro,umask=000 dev/mapper/<your partiton name> /<your mount dir>


Unfortunately it seems like dmraid can only handle dos partitions.....so i could't try this out ;-(


Cheers

Sources:
http://linux.yyz.us/sata/faq-sata-raid.html#ich
http://lists.debian.org/debian-user-french/2005/04/msg00400.html
https://listman.redhat.com/archives/rhl-beta-list/2005-April/msg02113.html
http://people.redhat.com/~heinzm/sw/dmraid/readme
http://www.wooyd.org/debian/dmraid/
http://ubuntuforums.org/archive/index.php/t-2557.html
https://listman.redhat.com/archives/ataraid-list/2005-March/msg00041.html
http://www.gentoo.org/doc/en/lvm2.xml
http://evms.sourceforge.net/install/tools.html
http://deb.riseup.net/storage/lvm2/
http://sourceware.org/cluster/ddraid/
http://debian.jones.dk/slamuf/pool/sid-jones/kernel-image-2.4.23-i386/kernel-image-2.4.23-i386_2.4.23-1.0.jones.1_i386.build
http://www.tldp.org/HOWTO/Software-RAID-HOWTO.html#toc5
http://www.strw.leidenuniv.nl/cgi-bin/man?program=dmraid&section=8