summaryrefslogtreecommitdiffstats
path: root/sbin/vinum
Commit message (Collapse)AuthorAgeFilesLines
* Describe the new options of start and init commands.grog1999-10-131-10/+43
|
* Change default init sizes from 64 kB to 60 kB, since the block devicegrog1999-10-131-4/+8
| | | | | | | | | interface limits it to this anyway. Change the name of the v flag variable from 'verbose' to 'vflag', indicating the multiple use (verbose or verify). Add -S flag to specify the size of some operations.
* Change the name of the v flag variable from 'verbose' to 'vflag',grog1999-10-131-9/+20
| | | | | | indicating the multiple use (verbose or verify). Add -S flag to specify the size of some operations.
* Change the name of the v flag variable from 'verbose' to 'vflag',grog1999-10-131-26/+41
| | | | | | | | | | | | | | | | indicating the multiple use (verbose or verify). vinum_ldi: Show active requests for the drive if -v is specified. White space cleanup. vinum_lsi: Show the progress of an init command if -v is specified. vinum_info: Print the number of active requests. Print out loginfo_sdio and loginfo_sdiodone log entries.
* Change the name of the v flag variable from 'verbose' to 'vflag',grog1999-10-131-43/+110
| | | | | | | | | | | | | | | | indicating the multiple use (verbose or verify). initsd: rewrite: Initialization is now done in the kernel. Verify (again!) if -v is specified. Allow specification of a blocksize, the length to be transferred in one transfer. vinum_revive: Allow specification of a blocksize, the length to be transferred in one transfer.
* Add description of checkparity and rebuildparity.grog1999-09-281-4/+9
| | | | | | Remove a half-started message. Reported-by: "Jeffrey J. Mountin" <jeff@mountin.net>
* Brucify comments.grog1999-09-281-23/+66
| | | | | | | | | | | | | | vinum_lpi: Add information about progress of rebuildparity and checkparity commands. listconfig: Print object counts in a different format, don't refer to the internal number of slots allocated: Caused-confusion-to: Norbert Meissner <norbert.meissner@daimlerchrysler.com> vinum_info: Change format of device numbers so that they fit in the column (ignore high-order minor number bits, which aren't really of much interest).
* vinum_init: Fix message typo.grog1999-09-281-1/+50
| | | | | | | vinum_start: bzero the statinfo.dinfo struct. The lack of this was causing sporadic failures of the start command. Add body of vinum_checkparity command.
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Update and tidy descriptions of info -V.grog1999-08-261-30/+69
| | | | | Describe use of -w option with start. Tidy up descriptions of scale factor suffixes.
* Document the setstate command.grog1999-08-241-6/+22
|
* Change declaration for initsd.grog1999-08-241-1/+4
| | | | | Add declarations for vinum_setstate, vinum_checkparity and vinum_rebuildparity.
* parseline(): Reset the -w flag.grog1999-08-241-27/+29
| | | | continue_revive: Implement the -w flag.
* vinum_info(): Add support for logging subdisk I/O.grog1999-08-241-17/+21
|
* Tidy up some indentation and comments.grog1999-08-241-15/+109
| | | | | | | | | | | | | | | | | vinum_init(): Change name of variable plexindex to objindex, which better describes its purpose. initsd(): Add a second parameter to determine whether it should wait for completion or not. This allows it to DTRT when called with the -w flag either directly or via initplex(). Add 'setstate' command (function vinum_setstate ()) to implement the VINUM_SETSTATE_FORCE ioctl for diddling individual object states. This is a repair tool which can also be used for panicing the system. Use with utmost care if at all. Add unimplemented commands 'checkparity' and 'rebuildparity'. Watch this space.
* Minor mdoc fix.mpp1999-08-151-2/+2
|
* Various man page cleanup:mpp1999-08-151-8/+9
| | | | | | | | | | | - Sort xrefs - FreeBSD.ORG -> FreeBSD.org - Properly xref RFCs. - Be consistent with section names as outlined in mdoc(7). - Other misc mdoc cleanup. PR: doc/13144 Submitted by: Alexey M. Zelkin <phantom@cris.net>
* initsd: On completion, put the subdisk in 'initialized' status, notgrog1999-08-151-34/+34
| | | | | | | 'up'. This matches changes in the kernel module. Reported-by: Bernd Walter <ticso@cicely.de> Remy Nonnenmacher <remy@synx.com>
* Correct typo.grog1999-08-141-1/+0
|
* Add declarations for initvol, initplex and initsd helper functions forgrog1999-08-141-0/+3
| | | | vinum_init.
* vinum_info: add code to print out lock events.grog1999-08-141-7/+32
| | | | modify format of other event printouts.
* make_plex_dev: make them raw. Volume-related plex devices willgrog1999-08-141-9/+19
| | | | probably die a death soon (yes, DES, that's correct usage).
* vinum_init: add code to initialize subdisks as well as plexes. Alsogrog1999-08-141-129/+159
| | | | provide for initializing volumes; this code is not yet complete.
* Correct typo.grog1999-08-091-1/+1
| | | | | PR: docs/13050 Reported-by: Dan Langille<junkmale@xtra.co.nz>
* Update to reflect recent changes.grog1999-08-071-55/+46
|
* Remove code to detect RAID-5/non-RAID-5 kernel modules.grog1999-08-071-7/+7
|
* Remove code to detect RAID-5/non-RAID-5 kernel modules.grog1999-08-071-99/+125
| | | | | | | Add function definition for readpol command. Rewrite make_devices with a view to incremental making. In the process, effectively kill off plex-bound subdisk device numbers.
* Import RAID-5 code.grog1999-08-071-30/+120
| | | | | | | | | | | | | | | | | | | | | Add Cybernet copyright. OK'd-by: Chuck Jacobus <chuck@cybernet.com> vinum_ldi: Calculate the percentage used correctly. vinum_lsi: Flag detached subdisks. vinum_info: Request info: get the major and minor numbers and print them correctly. list_defective_objects: New function, for listing objects which aren't up after vinum_start. Requested-by: Steve Taylor <staylor@cybernet.com>
* vinum_init:grog1999-08-071-29/+83
| | | | | | | | | | | | | | | | | | | | | | | wait correctly for completion. set object in initializing state before initializing. Don't set the plex up, it should go up automatically. vinum_start: If any objects are not up on start, list them. Requested-by: Steve Taylor <staylor@cybernet.com> vinum_attach: Make sure we always have the object information before examining it. vinum_replace: Start writing. create_drive, vinum_concat, vinum_stripe, vinum_mirror: Check the ioctl return values correctly vinum_readpol: Start writing.
* Modify device numbering method to work with latest -CURRENT. Briefly,grog1999-07-221-4/+4
| | | | | | | | | the device numbers are now minor number only, so that we can still compare them after dev_t has turned into a blob. Broken-by: dev_t changes Reported-by: Vallo Kallaste <vallo@matti.ee> "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>
* Add definitions for simplified config commandsgrog1999-07-021-1/+11
| | | | | | | | | | | Change definition of sflag Reported-by: Johan Karlsson <k@numeri.campus.luth.se> Doug <Doug@gorean.org> green World-broken-by: grog Pointy-hat-passed-to: grog
* Remove the volume, plex, sd and drive commands which allowed the usergrog1999-07-021-66/+493
| | | | | | | | | | | | | | to bypass the create command. vinum_stop: Allow -f option. Add commands for simplified configuration: concat - create a volume with one concatenated plex stripe - create a volume with one striped plex mirror - create a volume with two concatenated or striped plexes Egged-on-by: jkh
* Change the name of the s option to indicate that it wears more thangrog1999-07-021-12/+12
| | | | | | one hat. Change formats as the result of changes in drive structure.
* Change the name of the s option to indicate that it wears more thangrog1999-07-021-15/+49
| | | | | | | | | | one hat. Add -n option for specifying names of volumes created with the simplified commands. Add function find_drive_by_devname to help the simplified configuration commands.
* Document simplified configuration commands.grog1999-07-021-19/+335
|
* Document the -f flag to detach.grog1999-06-221-2/+8
| | | | Document the dangers of adding subdisks to striped and RAID-5 plexes.
* Remove ancient, mouldy comments.grog1999-06-221-16/+0
|
* vinum_ldi:grog1999-06-221-3/+4
| | | | | | | | | | | | | Show the available sectors relative to the user-available part of the drive (don't include the config space at the beginning). This stops an empty drive reporting only 99% available. Requested-by: staylor printconfig: Show sizes in sectors with the suffix 's' instead of the now-deprecated 'b'.
* Allow a 'start <drive>' command.grog1999-06-221-1/+4
|
* Arrange the "CONFIGURATION FILE" section in the order in which thegrog1999-05-071-24/+45
| | | | | | | | | | | | entries go into the config file. Clarify what names can be used for Vinum drives, and what will happen to you if you use other names. Forcibly-demonstrated-by: Thomas Stromberg <tstromberg@rtci.com> Peter K Campbell <PCampbel@vtrlmel1.telstra.com.au> George Cox <george.cox@sophos.com> many others, but those were the only three today.
* timestamp:grog1999-05-021-1/+3
| | | | | | Assign explicit variable for sec to get it to compile on Alpha. Submitted by: dfr
* Update documentation of new functions.grog1999-05-021-10/+63
| | | | | | | | Describe new scale letter for sizes: 's' (sector) instead of 'b' (block). Both mean 512 bytes, but 'b' is deprecated because it's confusing. Document log file and environment variables.
* Add definitions for history functions and printconfig split.grog1999-05-021-0/+8
|
* printconfig:grog1999-05-021-16/+41
| | | | | | split into vinum_printconfig (interactive) and printconfig (called from vinum_printconfig and from vinum_create when starting an interactive update.
* vinum_create:grog1999-05-021-57/+97
| | | | | | | | | | If no file name is specified, create one and edit it with the editor specified in the EDITOR environment variable, by default vi. vinum_help: Update. Fix typos in messages.
* Maintain a log file, by default /var/log/vinum.history, showing whatgrog1999-05-021-0/+54
| | | | | | | | has been done. This name can be overridden by the value of the VINUM_HISTORY environment variable. Print dates in log file according to the variable VINUM_DATEFORMAT, by default %e %b %Y %H:%M:%S.
* When looking at all objects, look at all objects.grog1999-04-171-7/+7
| | | | | main: If the wrong version is started, execve the correct version.
* When looking at all objects, look at all objects.grog1999-04-171-19/+22
| | | | | | vinum_lsi: Print rough size of plex in parentheses. Print drive info with -v option (previously required -V).
* vinum_init: count dead children correctly when waiting for completion.grog1999-04-171-2/+5
| | | | vinum_resetstats: count objects correctly.
* Add external declaration for wait flag, rather later than intended.grog1999-04-101-0/+1
| | | | | | Complained-about-by: jkh Jim Bloom <bloom@acm.org> Michael Reifenberger <root@nihil.plaut.de>
OpenPOWER on IntegriCloud