Linux HOWTOs

About | Home | Search


HOWTO: raidtools
Description: Linux software RAID tools
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# raidtools 1.00.3
# ================
# raidtools has been deprecated in favor of mdadm

# Slackware 8.1's 'raidtools' package includes version 0.90, 9.0's, 9.1's,
# 10.0's, 10.1's, and 10.2's includes 1.00.3

cd
test -f installed/raidtools-1.00.3.tar.gz &&
 mv installed/raidtools-1.00.3.tar.gz .
test ! -f raidtools-1.00.3.tar.gz &&
 wget http://people.redhat.com/mingo/raidtools/raidtools-1.00.3.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "raidtools-*" -exec rm -r {} \;
tar xzvf ~/raidtools-1.00.3.tar.gz
cd raidtools-1.00.3
test $UID = 0 && chown -R root:root .

# Patch it to fix building with recent versions of gcc
wget -nc http://englanders.cc/pub/linux/patches/raidtools-1.00.3.patch &&
 patch -p0 < raidtools-1.00.3.patch

./configure --prefix=/usr
make
su -c "removepkg raidtools ; make install"
cd
mkdir -p -m 0700 installed
rm -f installed/raidtools-*.tar.*
mv raidtools-1.00.3.tar.gz installed/


# If you ever need to uninstall raidtools, this should do it:
su
( cd /sbin ; rm -f arytst detect_multipath lsraid mkraid raid0run \
  raidhotadd raidhotremove raidreconf raidsetfaulty raidstart raidstop )
rm -f /usr/man/man5/raidtab.5
( cd /usr/man/man8 ; rm -f ckraid.8 lsraid.8 mkraid.8 raid0run.8 raidadd.8 \
  raidreconf.8 raidrun.8 raidstart.8 raidstop.8 )
exit
find ~/src -maxdepth 1 -type d -name "raidtools-*" -exec rm -r {} \;
rm -f ~/installed/raidtools-*.tar.*

Back to the list


Last updated: Tue, 07 Aug 2018 12:06:17 -0400
Jason Englander <jason at englanders dot us>