summaryrefslogtreecommitdiffstats
path: root/sbin/vinum/commands.c
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly type large scalar parameters to avoid compilation warningsgrog2000-01-051-10/+132
| | | | | | | | | | | | | | | | | on alpha. Submitted-by: Bernd Walter <ticso@cicely.de> Add function vinum_mv, which moves subdisks to different drives. This function just does the low-level configuration changes; the resultant subdisk is stale if it previously had any contents, otherwise it is empty (i.e. in need of initializing if it's RAID-5). We still need to handle getting the contents moved over, but the current version will suffice to migrate subdisks from a disk which has failed. Submitted-by: Marius Bendiksen <marius@marius.scancall.no> vinum_start: Get the revive block size right.
* 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.
* 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-281-1/+1
|
* 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.
* 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>
* 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.
* 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.
* 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
* Allow a 'start <drive>' command.grog1999-06-221-1/+4
|
* 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.
* vinum_init: count dead children correctly when waiting for completion.grog1999-04-171-2/+5
| | | | vinum_resetstats: count objects correctly.
* Add -w option to init command: wait for init to complete beforegrog1999-04-101-63/+71
| | | | returning.
* vinum_resetstats: Reset stats for drives correctly when recursing.grog1999-03-311-2/+4
|
* vinum_start: Allow user to specify a plex. In this case, revive allgrog1999-03-281-2/+28
| | | | | | | | subdisks in need of revival. vinum_stop: sleep for a second before unloading. This solves a race condition with a potential daemon when the stop command is specified on the command line.
* 'start' command: check that the objects in question aren't already up,grog1999-03-241-17/+49
| | | | and produce an intelligble message if they are.
* Correct ioctl calls VINUM_STARTCONFIG. The last commit broke thegrog1999-03-231-3/+3
| | | | 'vinum start' command.
* vinum_create: pass 'force' flag to ioctl VINUM_STARTCONFIG.grog1999-03-231-1/+1
| | | | | | | | | | Semantics: When creating a new drive, if the drive already has a vinum label, and name doesn't match the specified drive, do it anyway if the 'force' flag is specified. Continually-tripped-over-by: Karl Pielorz <kpielorz@tdx.co.uk>
* create command: get the message right if an error occurs with agrog1999-03-141-3/+5
| | | | non-verbose create.
* create command: if an error occurs, print the offending line even ifgrog1999-03-131-0/+2
| | | | the -v flag has not been set.
* resetconfig: don't log the "obliterated" message, the kernel does thatgrog1999-03-021-11/+47
| | | | | | | | | | | | | | for us. Rebuild the (almost empty) /dev/vinum directory. vinum_start: remove superflous "read" parameter when starting with no parameters. vinum_stop: without an argument, stop Vinum and remove the kld if it's idle. vinum_saveconfig: New command to save configuration.
* Extend 'start' command: if used without any parameters, vinum scansgrog1999-02-111-3/+41
| | | | | all disks known to devstat for vinum drives and reads their configuration.
* Update to reflect changes in kernel lkmgrog1999-01-211-84/+169
|
* Complete change from DEBUG to VINUMDEBUG. Now it still builds whengrog1999-01-061-2/+2
| | | | VINUMDEBUG is set as well.
* Tweaks as a result of having vinum statically buildable in a kernel.peter1998-12-281-2/+2
|
* Remove kludge to set subdisk states when bringing up a plexgrog1998-11-021-50/+1
|
* Import base vinum userland sourcesgrog1998-09-161-0/+1030
OpenPOWER on IntegriCloud