View previous topic :: View next topic |
Author |
Message |
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Sun Aug 03, 2003 6:36 pm Post subject: New ebuild hotsanic, testers wanted |
|
|
HotSaNIC 0.4.0 ebuild
I just made an ebuild for the network and system monitoring program HotSaNIC.
Submitted as bug 28117
See http://hotsanic.sourceforge.net/ and http://hotsanic.sourceforge.net/example/index.html for an example output.
With the ebuild you will have in a couple of minutes a service that monitores your computer health and displays the graphics in html pages. There also exists the possibility to add your own plug-ins or to use SNMP to query for example the network through put of your router.
The program is limited in comparison with programs like nagios but it will give you a basic monitoring system of your computer with little effort. I mainly use it to check available disk space on some servers and to show the upstream and downstream speed through the router connected to the ADSL line.
If someone wants to test this ebuild, pls post here your remarks, before I will ask to submit the ebuild in the portage.
To install:
The best thing to do is to install the ebuild local. In this way it will not be overwritten after an emerge sync. If you already using an OVERLAY_DIR in your /etc/make.conf, then change the path in the story hereafter accordingly. If not, then do the following:
Code: | # nano -w /etc/make.conf |
add the following line to /etc/make.conf:
Code: | # PORTDIR_OVERLAY is a directory where local ebuilds may be stored without
# concern that they will be deleted by rsync updates. Default is not
# defined.
#PORTDIR_OVERLAY=/usr/local/portage
PORTDIR_OVERLAY="/usr/portage.local" |
To make it easier, you can download the ebuild from here:
http://www.xs4all.nl/~debeir/gentoo/hotsanic.ebuild.tar.gz
To create the ebuild manually do the following:
Create the ebuild dir for hotsanic:
Code: | # mkdir -p /usr/portage.local/net-analyzer/hotsanic/files/0.4.0 |
create the file file:/usr/portage.local/net-analyzer/hotsanic/hotsanic-0.4.0.ebuild with the following content:
Code: |
# file:/usr/portage.local/net-analyzer/hotsanic/hotsanic-0.4.0.ebuild
S=${WORKDIR}/HotSaNIC
NP="HotSaNIC-0.4.0"
DESCRIPTION="Hotsanic HTML overview to System and Network Information Center"
SRC_URI="http://hotsanic.sourceforge.net/archive/HotSaNIC-0.4/${NP}.tgz"
HOMEPAGE="http://www.hotsanic.org"
SLOT="0"
LICENSE=""
KEYWORDS="x86"
IUSE=""
DEPEND="
perl
rrdtool
net-snmp
imagemagick
"
RDEPEND=${DEPEND}
RESTRICT="nostrip"
src_install() {
keepdir /home/httpd/htdocs/hotsanic
keepdir /var/log/hotsanic
# hotsanic default settings (WEBDIR variable modified from original source)
patch < ${FILESDIR}/${PVR}/settings.default.patch
# hotsanic snmp works fine fit ucd-snmp, but requires a small patch for net-snmp
patch < ${FILESDIR}/${PVR}/HotSaNIC.pm.patch
dodir /opt/hotsanic
cp -a * ${D}/opt/hotsanic/
# hotsanic service loader
exeinto /etc/init.d
newexe ${FILESDIR}/${PVR}/hotsanic hotsanic || die
insinto /opt/hotsanic
doins "${S}/.settings.default"
}
pkg_postinst() {
einfo
einfo "Before starting hotsanic you need to run"
einfo
einfo "ebuild /var/db/pkg/net-analyzer/hotsanic-0.4.0/hotsanic-0.4.0.ebuild config"
einfo
einfo "Read documentation in /opt/hotsanic/Documentation or just visit"
einfo "http://www.hotsanic.org/"
einfo
einfo "Type 'rc-update add hotsanic default' to load hotsanic at startup."
einfo
einfo "In case you get the following error message:"
einfo " * Could not get dependency info for \"hotsanic\"! "
einfo
einfo "Carry out the following command to solve the dependency:"
einfo "# depscan.sh"
einfo
einfo "Diagrams are generated as webpages at http:/localhost/hotsanic/"
einfo "To reset the weekly stats carry out the following command:"
einfo " # rm -R /home/httpd/htdocs/hotsanic"
einfo
einfo "It might take a couple of minutes (15) before the first web pages"
einfo "are generated. You might force this by carrying out the comands: "
einfo " # cd /opt/hotsanic"
einfo " # ./diagrams"
einfo " # ./convert.sh"
einfo " # ./makeindex.pl"
einfo
einfo "Do this as well if you donnot see the graphics the first time"
einfo
}
pkg_prerm() {
einfo
einfo "Stopping service hotsanic"
/etc/init.d/hotsanic stop
einfo
}
pkg_postrm() {
einfo
einfo "To remove all traces of hotsanic you will need to remove the files"
einfo "in /opt/hotsanic/, /home/httpd/htdocs/hotsanic and /var/log/hotsanic."
einfo
}
pkg_config() {
einfo "Running /opt/hotsanic/setup.pl"
cd /opt/hotsanic
/opt/hotsanic/setup.pl
einfo
einfo "Building the initial databases and web pages"
einfo "This might take a couple of minutes.........."
einfo "(1/3) /opt/hotsanic/diagrams"
/opt/hotsanic/diagrams
einfo "(2/3) /opt/hotsanic/convert.sh"
/opt/hotsanic/convert.sh
einfo "(3/3) /opt/hotsanic/makeindex.pl"
/opt/hotsanic/makeindex.pl
einfo
einfo "Done. "
einfo
einfo "Make sure apache is running and then monitor your system at"
einfo "http://localhost/hotsanic/"
einfo
einfo "If you use the SNMP module pls check the functions"
einfo "'sub snmp_sysbulk' and 'sub snmp_sysquery' in /opt/hotsanic/HotSaNIC.pm"
einfo "in case your remote host uses a snmp protocol different than version 2"
einfo
einfo "Don't forget to place hotsanic in your default runlevel"
einfo "Type 'rc-update add hotsanic default' to load hotsanic at startup."
einfo
einfo "In case you get the following error message:"
einfo " * Could not get dependency info for \"hotsanic\"! "
einfo
einfo "Carry out the following command to solve the dependency:"
einfo "# depscan.sh"
einfo
}
|
Create the following files as well:
file:/usr/portage.local/net-analyzer/hotsanic/files/0.4.0/hotsanic
Code: |
#!/sbin/runscript
# file:/usr/portage.local/net-analyzer/hotsanic/files/0.4.0/hotsanic
start() {
ebegin "Starting service hotsanic..."
/opt/hotsanic/rrdgraph start
eend $? "Failed to start hotsanic"
}
stop() {
ebegin "Stopping service hotsanic..."
/opt/hotsanic/rrdgraph stop
eend $? "Failed to stop hotsanic"
}
|
file:/usr/portage.local/net-analyzer/hotsanic/files/0.4.0/HotSaNIC.pm.patch
Code: |
--- HotSaNIC.pm 2003-08-03 14:43:07.000000000 +0200
+++ HotSaNIC.pm.new 2003-08-03 14:55:22.000000000 +0200
@@ -195,7 +195,15 @@
$query=$query.$OID.".".$num." ";
}
}
- my @result=`$binpath $host $community $query`;
+
+# changed by Rob de Beir
+# net-snmp performs v3 snmp by default
+# ucd-snmp did not use v3 by default
+# Therefore check the SNMP protocol version your remote host is using
+# and adapt the '-v2c' accordingly
+
+# my @result=`$binpath $host $community $query`;
+ my @result=`$binpath -v2c $host -c $community $query`;
$num=0;
$count=0;
@@ -211,7 +219,6 @@
return @results;
}
-
######################################################################
#
# Query remote host via SNMP and store data in tempfile
@@ -219,6 +226,14 @@
#
sub snmp_sysquery {
my ($binpath,$host,$community,$item,@grep)=@_;
+
+# changed by Rob de Beir
+# net-snmp performs v3 snmp by default
+# ucd-snmp did not use v3 by default
+# Therefore check the SNMP protocol version your remote host is using
+# and adapt the '-v2c' accordingly
+
+# @result=`$binpath -v2c $host -c $community $item`;
@result=`$binpath $host $community $item`;
foreach $contains (@grep) {
foreach (grep /$contains/, @result) {
|
file:/usr/portage.local/net-analyzer/hotsanic/files/0.4.0/settings.default.patch
Code: |
--- .settings.default 2002-01-01 16:44:44.000000000 +0100
+++ .settings.default.new 2003-08-03 15:52:19.000000000 +0200
@@ -31,7 +31,7 @@
# traffic ok not tested ok
# worms --- should work (it's just log-parsing) ---
#
-OSTYPE="not configured"
+OSTYPE="Linux"
#####################################################################
# #
@@ -44,24 +44,24 @@
#
# DAEMONDIR="/home/daemon/HotSaNIC"
#
-DAEMONDIR="not configured"
+DAEMONDIR="/opt/hotsanic"
# path to the "rrdtool" binary
# this has to be a directory !
#
# BINPATH="/usr/local/rrdtool-1.0.33/bin"
#
-BINPATH="not configured"
+BINPATH="/usr/bin"
# set LOGDIR to the directory where logfiles shall be created
# LOGDIR="$DAEMONDIR/log/"
#
-LOGDIR="$DAEMONDIR/log/"
+LOGDIR="/var/log/hotsanic/"
# path to the pid-file for the daemon
# PIDFILE="$DAEMONDIR/log/rrdtimer.pid"
#
-PIDFILE="$DAEMONDIR/log/rrdtimer.pid"
+PIDFILE="/var/log/hotsanic/rrdtimer.pid"
@@ -108,7 +108,7 @@
# this directory must be writeable for the rrdgraph tool
# because each plugin will create its own subdir here.
#
-WEBDIR="not configured"
+WEBDIR="/home/httpd/htdocs/hotsanic"
# Sizes of all output-graphics in pixels
#
@@ -164,7 +164,7 @@
#
# CONVERTPATH="/usr/X11R6/bin/convert"
#
-CONVERTPATH="not configured"
+CONVERTPATH="/usr/bin/convert"
# How much shall the thumbnails be scaled compared to the originals.
# Default is 20%.
@@ -194,6 +194,6 @@
# configure the full pathes to snmpwalk and snmpget binaries here.
# These may be needed to get data from remote machines.
#
-SNMPWALK="not configured"
-SNMPGET="not configured"
+SNMPWALK="/usr/bin/snmpwalk"
+SNMPGET="/usr/bin/snmpget"
|
You now have all files on your computer besides the source code, manifest, digest and md5 check.
To get these carry out the following:
Code: |
# emerge --fetchonly hotsanic
# ebuild /usr/portage.local/net-analyzer/hotsanic/hotsanic-0.4.0.ebuild digest
|
You can now install the package:
Code: |
# emerge -p hotsanic
# emerge hotsanic
# ebuild /var/db/pkg/net-analyzer/hotsanic-0.4.0/hotsanic-0.4.0.ebuild config
|
To start the system and initialize the graphics type:
Code: |
# /etc/init.d/hotsanic start
# cd /opt/hotsanic
# ./diagrams
# ./convert.sh
# ./makeindex.pl
|
If all went well you can now monitor your system at:
http://localhost/hotsanic/
If you want to make changes in the number of items to monitor you can rerun the hotsanic configuration script:
Code: |
# cd /opt/hotcanic
# ./setup.pl
|
Have fun
.
Thanks for the remarks.
Edited 08/11/2003: Added tar
I have made a tar of this ebuild with all the latest changes. Will make it easier to test/install.
http://www.xs4all.nl/~debeir/gentoo/hotsanic.ebuild.tar.gz
Do the following to make use of this tar:
Code: |
# mkdir -p /usr/portage.local/net-analyzer/
# cd /usr/portge.local/net-analyser
# wget http://www.xs4all.nl/~debeir/gentoo/hotsanic.ebuild.tar.gz
# tar xzf hotsanic.ebuild.tar.gz
# emerge -p hotsanic
# emerge hotsanic
# ebuild /var/db/pkg/net-analyzer/hotsanic-0.4.0/hotsanic-0.4.0.ebuild config
# /etc/init.d/hotsanic start
# rc-update add hotsanic default
# cd /opt/hotsanic
# ./diagrams
# ./makeindex.pl
# ./convert.pl
|
Open your favourite browser and go to http://localhost/hotsanic/
Last edited by smouge on Sun Sep 07, 2003 3:13 pm; edited 6 times in total |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sun Aug 03, 2003 7:37 pm Post subject: |
|
|
It worked for me as written, nice work.
Before they accept it into portage you may want to change a few things.
Remove the comment at the top and put the standard ebuild comment there.
The DEPEND information should be more specific, i.e. instead of imagemagick, put the version you tested it with:
Code: | >=media-gfx/imagemagick-5.5.6 |
Fill in the LICENSE variable.
Use PV in NP
Here's an example:
Code: |
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
S=${WORKDIR}/HotSaNIC
NP="HotSaNIC-${PV}"
DESCRIPTION="Hotsanic HTML overview to System and Network Information Center"
SRC_URI="http://hotsanic.sourceforge.net/archive/HotSaNIC-0.4/${NP}.tgz"
HOMEPAGE="http://www.hotsanic.org"
SLOT="0"
LICENSE="FILL ME IN"
KEYWORDS="~x86" # should probably be marked ~ when you submit it
IUSE=""
DEPEND="
#Make these more specific
perl
rrdtool
net-snmp
imagemagick
"
|
|
|
Back to top |
|
|
Vanquirius Retired Dev
Joined: 14 Jun 2002 Posts: 1297 Location: Ethereal plains
|
Posted: Sun Aug 03, 2003 7:38 pm Post subject: Re: New ebuild hotsanic, testers wanted |
|
|
Edit: Corrected _________________ Hello.
Last edited by Vanquirius on Wed Aug 06, 2003 10:54 pm; edited 1 time in total |
|
Back to top |
|
|
Pythonhead Developer
Joined: 16 Dec 2002 Posts: 1801 Location: Redondo Beach, Republic of Calif.
|
Posted: Sun Aug 03, 2003 7:41 pm Post subject: |
|
|
You might want to make apache as one of the DEPENDs also, unless all the webservers on Gentoo usr /home/httpd/htdocs as the default document location. |
|
Back to top |
|
|
CptanPanic n00b
Joined: 17 Jan 2003 Posts: 48
|
Posted: Wed Aug 06, 2003 2:45 am Post subject: |
|
|
Ebuild failed for me with: Any ideas?
Code: |
>>> emerge (2 of 2) net-analyzer/hotsanic-0.4.0 to /
>>> md5 src_uri ;-) HotSaNIC-0.4.0.tgz
>>> Unpacking source...
>>> Unpacking HotSaNIC-0.4.0.tgz to /var/tmp/portage/hotsanic-0.4.0/work
>>> Source unpacked.
>>> Install hotsanic-0.4.0 into /var/tmp/portage/hotsanic-0.4.0/image/ category net-analyzer
patching file .settings.default
patch: **** malformed patch at line 4: # traffic ok not tested ok
patching file HotSaNIC.pm
Hunk #1 FAILED at 195.
1 out of 1 hunk FAILED -- saving rejects to file HotSaNIC.pm.rej
missing header for unified diff at line 20 of patch
can't find file to patch at input line 20
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|
| $num=0;
| $count=0;
--------------------------
File to patch: Caught signal 2
/usr/local/portage/net-analyzer/hotsanic/hotsanic-0.4.0.ebuild: src_install aborted; exiting.
|
|
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Sun Aug 10, 2003 9:05 am Post subject: |
|
|
Thanks for the remarks.
Have posted a tar of the ebuild, should prevent possible errors with the patch files. |
|
Back to top |
|
|
hakan42 n00b
Joined: 13 Aug 2003 Posts: 3
|
Posted: Wed Aug 13, 2003 11:15 am Post subject: |
|
|
A few suggestions:
- The CVS files (CVS/Root, CVS/Repository, CVS/Entries) are installed to /opt/hotsanic as well. Perhaps you should remove those before installation
- The documentation should be installed in /usr/share/doc/hotsanic-0.4.0. Now, they are left in /opt/hotsanic/Documentation
- The readme file refers to the directory ./doc/ ... O.k., that's not your fault
I'm a little bit new to writing ebuilds, so please forgive me if I don't provide a patch to your ebuild
Regards,
Hakan |
|
Back to top |
|
|
blackcell n00b
Joined: 17 Aug 2002 Posts: 56 Location: Oregon
|
Posted: Thu Aug 14, 2003 3:56 am Post subject: |
|
|
Cool, nice work. Worked for me. _________________ "If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside." |
|
Back to top |
|
|
harrinp1 n00b
Joined: 30 Jul 2003 Posts: 21 Location: Chester, UK
|
Posted: Thu Aug 14, 2003 9:09 am Post subject: |
|
|
Good work works well here too.
Can't get the iptables monitoring working but I think thats a problem with my setup.
Cheers
Paul |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
|
Back to top |
|
|
CptanPanic n00b
Joined: 17 Jan 2003 Posts: 48
|
Posted: Mon Aug 18, 2003 1:28 am Post subject: |
|
|
Worked great for me.
Thanks,
Brian |
|
Back to top |
|
|
hakan42 n00b
Joined: 13 Aug 2003 Posts: 3
|
Posted: Tue Aug 19, 2003 12:55 pm Post subject: |
|
|
Based on your 0.4.0 work, I added an ebuild for 0.5.0_pre4
The archive with both your latest version of 0.4.0 and my 0.5.0_pre4 is located at:
http://www.gurkensalat.com/gentoo/hotsanic.ebuild.tar.gz
The hotsanic development team has tagged the 0.5.0_pre4-release in the CVS repository, but didn't make a corresponding archive available. I have opened a bug report asking the team to create the archive. In the meantime, the ebuild takes the archive from my private website.
Regards,
Hakan |
|
Back to top |
|
|
CptanPanic n00b
Joined: 17 Jan 2003 Posts: 48
|
Posted: Tue Aug 19, 2003 4:47 pm Post subject: |
|
|
What is new with 0.5.0? |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Thu Aug 21, 2003 8:03 am Post subject: |
|
|
THanks for the ebuild, will have a look at it later. _________________ Can't think about anything funny to place here |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Tue Aug 26, 2003 2:03 pm Post subject: |
|
|
tested 0.5 ebuild worked like a champ!
Good work dudes : |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Tue Aug 26, 2003 11:12 pm Post subject: |
|
|
how can i change tweak settings!
i cannot find docs how to change settings that way the daemon is using that changed settings ! |
|
Back to top |
|
|
hakan42 n00b
Joined: 13 Aug 2003 Posts: 3
|
Posted: Wed Aug 27, 2003 5:28 am Post subject: |
|
|
The settings are in the "modules" directories in /opt/hotsanic, e.g. /opt/hotsanic/modules/traffic/settings.
The "main" settings, in which you can configure which modules to use, are in /opt/hotsanic/settings.
As far as I can see, there is no way to "reload" new settings; you have to restart hotsanic after modification....
Hope this helps.
Regards,
Hakan |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Wed Aug 27, 2003 6:45 am Post subject: |
|
|
can you post e.g your sensor settings?
There is no example within the ebuild
Olaf |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Wed Aug 27, 2003 2:22 pm Post subject: |
|
|
Example with some items filled in as on our Transtec 1001 server, all can be found in /opt/hotsanic/data-sensors/settings :
Look for the imems you can use in /proc/sys/dev/sensors/ Also make sure that lmsensors is working and that you have items in this directory.
Code: |
# SHORT DESCRIPTION
#
# all entries have to be of the form:
# SENSOR=<device-file>,<dbname>,<description>,<entry>,<scale-factor>,<add>,<unit>
#
# <device-file> path to the file under /proc which holds the device-data
#
# <dbname> an unique filename for the database
#
# <description> a brief description for the webpage
#
# <entry> 2 for fan-speed and 3 for temperature and voltage
# this represents the position of the value in the
# proc-file
#
# <scale-factor> correction-factor to scale the data correctly
# ( to understand this look at the lm_sensors howto )
#
# <add> value to add to shift the data correctly
# ( for e.g. +12V - see lm_sensors howto )
#
# <unit> unit to be shown in diagrams and on webpage
# ( for example °C, V, Volts, RPM etc... )
#
# Example:
#
# SENSOR=/proc/sys/dev/sensors/gl518sm-i2c-0-2d/temp,temp,CPU temp,3,1,0,°C
# /proc/sys/dev/sensors/w83627hf-isa-0290
#
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/temp1,temp1,temp1,3,1,0,°C
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/temp1,temp2,temp2,3,1,0,°C
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/temp3,temp3,temp3,3,1,0,°C
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/fan1,fan1,fan1,2,1,0,RPM
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/fan2,fan2,fan2,2,1,0,RPM
SENSOR= /proc/sys/dev/sensors/w83627hf-isa-0290/fan3,fan3,fan3,2,1,0,RPM
#SENSOR=/proc/sys/dev/sensors/w83782d-i2c-0-2d/temp2,temp2,temp2,3,1,0,°C,-10,150
#SENSOR=/proc/sys/dev/sensors/w83782d-i2c-0-2d/temp3,temp3,temp3,3,1,0,°C
#SENSOR=/proc/sys/dev/sensors/w83782d-i2c-0-2d/fan1,fan1,fan1,2,1,0,RPM,3000,6000
#SENSOR=/proc/sys/dev/sensors/w83782d-i2c-0-2d/fan2,fan2,fan2,2,1,0,RPM
#SENSOR=/proc/sys/dev/sensors/w83782d-i2c-0-2d/fan3,fan3,fan3,2,1,0,RPM
|
_________________ Can't think about anything funny to place here |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Wed Aug 27, 2003 8:45 pm Post subject: |
|
|
is it possible to make a multiline chart? e.g. voltage is good for that!
I tried /dev/md3 as diskio DEV=9_3,Database but the charts stays empty
does diskio support md raid drives ?
About the ping module this ebuild fails for that because some .ph files are missing!
Oh i was testing the new 0.5 ebuild |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Fri Aug 29, 2003 10:14 am Post subject: |
|
|
drives with dev>16 dont work (kernel bug) |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Sun Aug 31, 2003 6:12 am Post subject: |
|
|
md raid drives should work.
About the ping and ph files, I remember there is said something about that in the documentation _________________ Can't think about anything funny to place here |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Sun Sep 07, 2003 8:40 am Post subject: |
|
|
Final version posted on my web site (see first post) with all te remarks applied.
Will submit this portage to gentoo.bugs soon _________________ Can't think about anything funny to place here |
|
Back to top |
|
|
Gentoo Server Apprentice
Joined: 21 Jul 2003 Posts: 279
|
Posted: Mon Sep 08, 2003 2:16 pm Post subject: |
|
|
smouge wrote: | md raid drives should work.
About the ping and ph files, I remember there is said something about that in the documentation |
md drives dont work imho |
|
Back to top |
|
|
smouge n00b
Joined: 22 Jan 2003 Posts: 66 Location: Oosterhout, the Netherlands
|
Posted: Tue Sep 09, 2003 5:07 pm Post subject: |
|
|
I have:
Code: |
/etc/raidtab
# /boot (RAID 1)
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda1
raid-disk 0
device /dev/hdc1
raid-disk 1
# / (RAID 1)
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda4
raid-disk 0
device /dev/hdc4
raid-disk 1
# /home (RAID 1)
raiddev /dev/md3
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
device /dev/hda2
raid-disk 0
device /dev/hdc2
raid-disk 1
|
Code: |
/proc/mdstat
samba2 root # cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 ide/host0/bus1/target0/lun0/part1[1] ide/host0/bus0/target0/lun0/part1[0]
105728 blocks [2/2] [UU]
md3 : active raid1 ide/host0/bus1/target0/lun0/part2[1] ide/host0/bus0/target0/lun0/part2[0]
5034816 blocks [2/2] [UU]
md2 : active raid1 ide/host0/bus1/target0/lun0/part4[1] ide/host0/bus0/target0/lun0/part4[0]
4097408 blocks [2/2] [UU]
unused devices: <none>
|
and
Code: |
/hotsanic/data-part/settings
DRIVE=/dev/root,/
#DRIVE=/dev/md2,root-filesystem
#DRIVE=tmpfs,/mnt/.init.d
DRIVE=/dev/md0,/boot
DRIVE=/dev/md3,/home
DRIVE=/dev/hdb,/mnt/vol1
DRIVE=/dev/hdd,/mnt/vol2
#DRIVE=tmpfs,/dev/shm
|
If this is of any use to you
I'm not sure if the diskio works as wel, I have my doubts. The charts are generating graphics, but the settings I have used are odd:
Code: |
# /hotsanic/data-diskio/settings
DEV=3_0,hda
DEV=3_1,hda1
|
_________________ Can't think about anything funny to place here |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|