SGRAIDMON(8)
sgraidmon β SCSI Generic RAID Monitor π
okay bestie, this is the sgraidmon(8) manual β the SCSI Generic RAID Monitor page. It is giving certified sysadmin main-character energy, and we are gonna go through it together, no cap. β¨
πΈ NAME πΈ
sgraidmon β SCSI Generic RAID Monitor
π¦ SYNOPSIS π¦
sgraidmon [-bermnx -t time]
That is the whole summoning spell, iykyk. πͺ
π₯ DESCRIPTION π₯
Sgraidmon is a program that uses the SCSI Generic interface to monitor SCSI devices which may be part of a software RAID, so that hot-removal and hot-insertion events can be detected and acted upon. It also queries the hot-swap backplane, if present, with SAF-TE commands to detect hot-insertions. If an insertion or removal event occurs, this utility invokes a script (/sbin/mdevt). For Insert, mdevt partitions the new disk and remirrors the Linux partitions. The mdevt script can be customized as desired. The SCSI Generic interface requires that the kernel .config file have CONFIG_CHR_DEV_SG set.
quick vibe check: no CONFIG_CHR_DEV_SG, no SCSI Generic interface. Please do not skip that part, bestie. π
A log file, named /var/log/sgraidmon.log, is created which logs the status of the sgraidmon functions and any errors. A separate log file, named /var/log/mdevents, logs messages and errors from the mdevt action script.
β¨ OPTIONS β¨
Command line options are described below β yeah bestie, here is the whole menu. π
-?β displays a summary of the commands accepted bysgraidmon.-bβ causes this utility to run in the background as a daemon.-eβ causes any file writes to be avoided, such as the log file.-mβ max serial number length of12instead of8(the default). This may be needed if you have Fujistu drives.-nβ naming. By default, the device names are displayed as numeric sequences (/dev/sg0). This option shows the device names as alphabetic sequences (/dev/sga).-rβ run once. By default, this utility runs in a continuous loop. This option causes it to only run one pass.-tβ time interval. The default polling interval is5seconds. This option can set the interval to a different number of seconds.-xβ causes extra debug messages to be displayed.
π ERRORS π
Please supply the contents of the /var/log/sgraidmon.log and /var/log/mdevents files with any problem report. Note that sgraidmon has an option for additional debug output (-x). See http://scsirastools.sourceforge.net for a bug list, ChangeLog, and any later versions of sgraidmon.
There are some unique error codes defined in sgraidmon as follows:
-1β is an error from a generic system function, checkerrnovalue.-2β means that the SCSI request returned a check condition (sense error).-3β means that the SCSI request failed while writing the command.-4β means that the SCSI request failed while reading the response.-5β means that the device did not respond to basic SCSIioctlfunctions.-6β means that the SCSI Inquiry returned an invalid size, so that device may be an impostor (failed).
π«Ά SEE ALSO π«Ά
Go check out these other manual pages too, bestie: sgdiskmon(8), sgdiag(8), sgdskfl(8), sgmode(8). π¦
π WARNINGS π
See http://sourceforge.net/projects/scsirastools/ for a bug list and any later versions of this utility.
π COPYRIGHT π
Copyright (C) 2001-2002 Intel Corp.
sgraidmon is open source software. You can redistribute it and/or modify it under the terms of the BSD License. See the COPYING file included with this software package for more details regarding distribution.
sgraidmon is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
π AUTHOR π
Andy Cress <arcress@users.sourceforge.net>
Ok that is the whole page, bestie β final vibe check: this is Version 1.3: 23 Oct 2003, from the System Manager's Manual (SGRAIDMON(8)). Bye, love u, and remember to check CONFIG_CHR_DEV_SG! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- opensuse-leap 16.0: scsirastools 1.6.6-bp160.1.12 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms