summaryrefslogtreecommitdiffstats
path: root/sbin/geom/class/mirror
Commit message (Collapse)AuthorAgeFilesLines
* Rename the generic "CLASS" to the more specific "GEOM_CLASS".obrien2010-12-151-2/+2
| | | | | | While I'm here remove redundancy and inconsistencies. Obtained from: Juniper Networks
* Replace strlen(_PATH_DEV) with sizeof(_PATH_DEV) - 1.ae2010-10-091-2/+2
| | | | | | Suggested by: kib Approved by: kib (mentor) MFC after: 5 days
* - Remove gc_argname field. It was introduced for gpart(8), but if Ipjd2010-09-131-20/+19
| | | | | | | understand everything correctly, we don't really need it. - Provide default numeric value as strings. This allows to simplify a lot of code. - Bump version number.
* - Allow to specify value as const pointers.pjd2010-09-131-3/+4
| | | | - Make optional string values always an empty string.
* The default balance algorithm has changed from "split" toru2009-12-091-2/+2
| | | | (the improved version of) "load".
* Change gmirror default balance algorithm from "split" to "load".mav2009-12-081-1/+1
| | | | | | | | | | | "split" is very ineffective for devices with rotating media as HDDs. To be effective, it needs that transfer time reduction due to block splitting was bigger then access time increase due to non-sequential access. For modern HDDs I was able to reproduce it only with read sizes of 2MB and above, which is almost not applicable in real life. "load" algorithm same time is more universal and effective now. Reviewed by: pjd
* Actually component with the greatest priority is used by the prefer balancepjd2009-09-091-1/+1
| | | | algorithm.
* Add support for changing providers priority.pjd2009-09-062-9/+19
| | | | Submitted by: Mel Flynn
* Add gpart(8).marcel2007-05-151-11/+11
| | | | | | | In order to support gpart(8), geom(8) needs to support a named argument. Also, optional string parameters are a requirement. Both have been added to the infrastructure. The former required all existing classes to be adjusted.
* Remove duplicate "clear" subcommand.ceri2006-12-211-4/+0
| | | | | PR: docs/106947 Submitted by: TAOKA Fumiyoshi
* Bump .Dd for -f|-F.ceri2006-11-021-1/+1
|
* Now, that we have gjournal in the tree add possibility to configurepjd2006-11-012-7/+19
| | | | | | gmirror and graid3 in a way that it is not resynchronized after a power failure or system crash. It is safe when gjournal is running on top of gmirror/graid3.
* Be sure to not create devices with (mediasize % sectorsize) != 0.pjd2006-10-101-0/+1
| | | | | Reported by: xride MFC after: 1 week
* MFp4: G_TYPE_BOOL sounds much better than G_TYPE_NONE.pjd2006-09-301-9/+9
| | | | Changes: 98722
* Markup fixes.ru2006-09-181-3/+5
|
* Add some notes how to properly dump kernel onto gmirror provider.pjd2006-03-081-1/+42
| | | | | Reviewed and corrected by: brueffer MFC after: 3 days
* Remove trailing spaces.pjd2006-02-011-3/+3
|
* - The geom(8) utility only uses three types of arguments: string (char *),pjd2005-12-071-92/+36
| | | | | | | | | | | | | | | | | value (intmax_t) and boolean (int). Based on that provide three functions: - gctl_get_ascii() - gctl_get_int() - gctl_get_intmax() - Hide gctl_get_param() function, as it is only used internally in subr.c. - Allow to provide argument name as (fmt, ...). - Assert geom(8) bugs (missing argument is a geom(8) bug). - Clean-up and simplify the code by using new functions and assumtions (no more checking for missing argument). Tested by: regression tests
* gmirror.8:ceri2005-10-252-2/+4
| | | | | | | | | Note the default balancing algorithm and stripe size. geom_mirror.c: Slightly friendlier error message. Reviewed by: pjd
* Add a note in example as well, that last sector is used for metadata,pjd2005-09-291-1/+2
| | | | | | | so it don't provoke confusions. Noticed by: Victor Sudakov <sudakov@sibptus.tomsk.ru> MFC after: 2 days
* Remove duplicated description of 'clear' subcommand.pjd2005-04-231-2/+0
| | | | | Pointed out by: marck X-MFC-after: few seconds
* Document 'clear' and 'dump' subcommands.pjd2005-04-151-0/+11
| | | | MFC after: 1 week
* Define subcommands' usage inside g_command structure.pjd2005-03-141-30/+29
| | | | MFC after: 1 week
* Instead of documenting every standard subcommand's argument everywhere,pjd2005-03-141-14/+8
| | | | | | just leave reference to geom(8). MFC after: 1 week
* - Document 'status' subcommand.pjd2005-03-131-3/+9
| | | | | | - Update copyrights. MFC after: 1 week
* - Add md_provsize field to metadata, which will help withpjd2005-02-271-1/+3
| | | | | | | | | | | | | | | | | shared-last-sector problem. After this change, even if there is more than one provider with the same last sector, the proper one will be chosen based on its size. It still doesn't fix the 'c' partition problem (when da0s1 can be confused with da0s1c) and situation when 'a' partition starts at offset 0 (then da0s1a can be confused with da0s1 and da0s1c). One can use '-h' option there, when creating device or avoid sharing last sector. Actually, when providers share the same last sector and their size is equal, they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c) isn't important at all. - Provide backward compatibility. - Update copyright's year. MFC after: 1 week
* Fix a couple of grammar nits.trhodes2005-02-241-3/+3
| | | | | PR: 77437 Submitted by: Paul A. Hoadley <paulh@logicsquad.net> (original version)
* Sort sections.ru2005-01-181-2/+2
|
* Added the EXIT STATUS section where appropriate.ru2005-01-171-1/+1
|
* Fix arguments syntax.pjd2005-01-152-29/+20
| | | | | Manual pages fixes by: ru MFC after: 3 days
* Markup fixes.ru2005-01-151-15/+21
|
* - Add genid field to the metadata which will allow to improve reliability a bit.pjd2004-12-221-0/+1
| | | | | | | | | | | | | | | | After this change, when component is disconnected because of an I/O error, it will not be connected and synchronized automatically, it will be logged as broken and skipped. Autosynchronization can occur, when component is disconnected (on orphan event) and connected again - there were no I/O error, so there is no need to not connected the component, but when there were writes while it wasn't connected, it will be synchronized. This fix cases, when component is disconnected because of I/O error and can be connected again and again. - Bump version number. - Add version change history. - Implement backward compatibility mechanism. After this change when metadata in old version is detected, it is automatically upgraded to the new (current) version.
* 'forget' command takes device names, not provider names.pjd2004-12-221-1/+1
|
* Note that sysctls documentation is missing.pjd2004-11-051-0/+2
|
* Grammatical and spelling improvements.ceri2004-11-041-21/+21
| | | | Reviewed by: pjd
* Document '-p' flag for 'insert' command correct.pjd2004-09-181-3/+4
|
* Do not exit after printing usage, give geom(8) a chance to show standardpjd2004-09-171-1/+0
| | | | commands.
* Add a line to BUGS section about the need of implementation description.pjd2004-08-181-0/+2
|
* Add some missing empty lines.pjd2004-08-181-0/+2
|
* Fix typo.pjd2004-08-181-1/+1
|
* Actually one can specify more than one device to stop.pjd2004-08-181-1/+1
|
* Ok, let's try again:pjd2004-08-181-0/+290
| | | | Add manual page for gmirror(8) utility.
* - Add a manual page for gmirror(8) utility.pjd2004-08-181-1/+0
| | | | | | | - Connect it to the build. - Inform geom(8) manual page about it. Reviewed by: trhodes
* Forgot to commit those: introduce hardcoded provider functionality,pjd2004-08-101-14/+31
| | | | | which allow to store provider's name in the metadata and avoid problems when few providers share the same last sector.
* Add '-p' option for 'insert' command which allows to specify prioritypjd2004-07-311-1/+3
| | | | | | of the new component. Version number wasn't bumped (it should be), because I think there are no geom_mirror users yet.
* Add GEOM_MIRROR class which provide RAID1 functionality and has many usefulpjd2004-07-302-0/+419
features. The gmirror(8) utility should be used for control of this class. There is no manual page yet, but I'm working on it with keramida@. Many useful tests provided by: simon (thank you!) Some ideas from: scottl, simon, phk
OpenPOWER on IntegriCloud