aboutsummaryrefslogtreecommitdiff
path: root/sbin/geom
Commit message (Collapse)AuthorAgeFilesLines
* Add global and per-module sysctls/tunables to enable/disable metadata taste.Alexander Motin2012-09-131-1/+5
| | | | | | | | | | That should help to handle some cases when disk has some RAID metadata that should be ignored, especially during boot. MFC after: 3 days Notes: svn path=/head/; revision=240465
* Change the gptboot example so the boot partition is aligned on a 4 kBDag-Erling Smørgrav2012-08-291-2/+3
| | | | | | | | | boundary. MFC after: 3 days Notes: svn path=/head/; revision=239836
* Document "destroy" as an alias for "stop".Jim Harris2012-08-031-1/+8
| | | | Notes: svn path=/head/; revision=239022
* New command "gmultipath prefer" to force selection of a specifiedThomas Quinot2012-08-032-1/+34
| | | | | | | | | | provider in an Active/Passive configuration. Reviewed by: mav MFC after: 4 weeks Notes: svn path=/head/; revision=239012
* Remove trailing whitespace.Joel Dahl2012-07-301-1/+1
| | | | Notes: svn path=/head/; revision=238899
* The ad(4) driver no longer exists in FreeBSD CURRENT or 9, so change theIsabell Long2012-07-261-7/+7
| | | | | | | | | | | | references to it in gsched(8) to the existing ada(4) driver. PR: docs/170085 Submitted by: olgeni Approved by: gavin MFC after: 5 days Notes: svn path=/head/; revision=238813
* Improve description of various key used by GELI.Pawel Jakub Dawidek2012-07-041-74/+154
| | | | | | | | | PR: docs/169089 Submitted by: John W. O'Brien <john@saltant.com> MFC after: 3 days Notes: svn path=/head/; revision=238117
* Use possessive "its", no apostrophe.Warren Block2012-06-271-1/+1
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=237620
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-243-5/+6
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* Clarify error that geli generatesEitan Adler2012-05-091-0/+3
| | | | | | | | | | | | | when it finds corrupt data. PR: kern/165695 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: pjd Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=235201
* Add support for RAID5R. Slightly improve support for RAIDMDF.Alexander Motin2012-05-061-3/+3
| | | | Notes: svn path=/head/; revision=235076
* Add description for GEOM RAID tunables/sysctls.Alexander Motin2012-05-061-1/+28
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=235071
* Don't ignore start offset value when user specifies it togetherAndrey V. Elsukov2012-05-041-1/+4
| | | | | | | | | | | with alignment. PR: bin/167567 Tested by: Warren Block MFC after: 1 week Notes: svn path=/head/; revision=235033
* Implement read-only support for volumes in optimal state (without usingAlexander Motin2012-05-041-4/+6
| | | | | | | redundancy) for the following RAID levels: RAID4/5E/5EE/6/MDF. Notes: svn path=/head/; revision=234993
* Add optional -o argument to the `graid label ` to specify some metadataAlexander Motin2012-05-032-3/+11
| | | | | | | | format options. Use it for specifying byte order for the DDF metadata: big-endian defined by specification and little-endian used by Adaptec. Notes: svn path=/head/; revision=234940
* Add to GEOM RAID class module, supporting the DDF metadata format, asAlexander Motin2012-04-301-1/+14
| | | | | | | | | | | | | | | | | | defined by the SNIA Common RAID Disk Data Format Specification v2.0. Supports multiple volumes per array and multiple partitions per disk. Supports standard big-endian and Adaptec's little-endian byte ordering. Supports all single-layer RAID levels. Dual-layer RAID levels except RAID10 are not supported now because of GEOM RAID design limitations. Some work is still to be done, but the present code already manages basic interoperation with RAID BIOS of the Adaptec 1430SA SATA RAID controller. MFC after: 1 month Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=234848
* As of r226840, GELI starts one thread per CPU.Glen Barber2012-04-281-2/+1
| | | | | | | | | PR: 167382 Submitted by: John W. O'Brien (john%saltant.com) X-Needs-MFC: r226840 Notes: svn path=/head/; revision=234770
* Add to GEOM RAID class module for reading non-degraded RAID5 volumes andAlexander Motin2012-04-191-2/+3
| | | | | | | | | | | some environment to differentiate 4 possible RAID5 on-disk layouts. Tested with Intel and AMD RAID BIOSes. MFC after: 2 weeks Notes: svn path=/head/; revision=234458
* Some improvements to GEOM MULTIPATH:Alexander Motin2012-04-182-8/+45
| | | | | | | | | | | | | | | | | | | - Implement "configure" command to allow switching operation mode of running device on-fly without destroying and recreation. - Implement Active/Read mode as hybrid of Active/Active and Active/Passive. In this mode all paths not marked FAIL may handle reads same time, but unlike Active/Active only one path handles write requests at any point in time. It allows to closer follow original write request order if above layers need it for data consistency (not waiting for requisite write completion before sending dependent write). - Hide duplicate messages about device status change. - Remove periodic thread wake up with 10Hz rate. MFC after: 2 weeks Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=234415
* Remove superfluous paragraph macro.Joel Dahl2012-03-253-5/+0
| | | | Notes: svn path=/head/; revision=233458
* Document GEOM_PART_LDM scheme and partition types.Andrey V. Elsukov2012-03-191-2/+38
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=233179
* Fix a variety of grammar issues and style nits.Eitan Adler2012-03-041-74/+75
| | | | | | | | | | | PR: docs/165668 Submitted by: Robert Simmons <rsimmons0@gmail.com> Reviewed by: kaduk@mit.edu Approved by: cperciva MFC after: 1 week Notes: svn path=/head/; revision=232502
* Remove reference to gsched_as module, which doesn'tEitan Adler2012-02-221-1/+1
| | | | | | | | | | | | actually exist. PR: docs/163043 Submitted by: olgeni Approved by: brd MFC after: 3 days Notes: svn path=/head/; revision=231992
* Provide a better explanation for the sizing of the boot partition, andDag-Erling Smørgrav2012-01-131-10/+14
| | | | | | | | | | | reduce the size of the partition in the example from 128 blocks to 94 blocks so it will end on a 128-block boundary. Also remove the -b option from the next example. MFC after: 3 weeks Notes: svn path=/head/; revision=230059
* Fix warning when compiling with gcc46:Eitan Adler2012-01-101-2/+1
| | | | | | | | | | | error: variable 'secsz' set but not used Reviewed by: ae Approved by: dim MFC after: 3 days Notes: svn path=/head/; revision=229916
* Add support for >2TB disks in GEOM RAID for Intel metadata format.Jim Harris2012-01-091-1/+1
| | | | | | | | | Reviewed by: mav Approved by: scottl MFC after: 1 week Notes: svn path=/head/; revision=229886
* Whitespace-only fix. Translators, please feel free to ignore.Warren Block2012-01-091-3/+4
| | | | | | | | | Approved by: gjb (mentor) MFC after: 3 days X-MFC-with: r227774, r227777, r227800 Notes: svn path=/head/; revision=229847
* Clarity improvements.Warren Block2012-01-091-8/+8
| | | | | | | | Approved by: gjb (mentor) MFC after: 3 days Notes: svn path=/head/; revision=229838
* Correct and expand BSD partitioning scheme description.Warren Block2011-11-211-7/+9
| | | | | | | | | | | Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227800
* Fix date.Warren Block2011-11-211-1/+1
| | | | | | | | Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227777
* Add a section that explicitly describes partitioning schemes. ModifyWarren Block2011-11-211-126/+154
| | | | | | | | | | | | existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227774
* Fix build on some archs after r227464.Alexander Motin2011-11-121-3/+4
| | | | Notes: svn path=/head/; revision=227473
* Fix buildworld breakage due after r227464.Dimitry Andric2011-11-121-1/+1
| | | | | | | Pointy hat to: mav Notes: svn path=/head/; revision=227471
* Major GEOM MULTIPATH class rewrite:Alexander Motin2011-11-122-98/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Improved locking and destruction process to fix crashes. - Improved "automatic" configuration method to make it consistent and safe by reading metadata back from all specified paths after writing to one. - Added provider size check to reduce chance of ordering conflict with other GEOM classes. - Added "manual" configuration method without using on-disk metadata. - Added "add" and "remove" commands to allow manage paths manually. - Failed paths are no longer dropped from geom, but only marked as FAIL and excluded from I/O operations. - Automatically restore failed paths when all others paths are marked as failed, for example, because of device-caused (not transport) errors. - Added "fail" and "restore" commands to manually control FAIL flag. - geom is now destroyed on last path disconnection. - Added optional Active/Active mode support. Unlike Active/Passive mode, load evenly distributed between all working paths. If supported by the device, it allows to significantly improve performance, utilizing bandwidth of all paths. It is controlled by -A option during creation. Disabled by default now. - Improved `status` and `list` commands output. Sponsored by: iXsystems, inc. MFC after: 1 month Notes: svn path=/head/; revision=227464
* Clarify disks/volumes above 2TiB support in geom_raid:Alexander Motin2011-10-261-1/+4
| | | | | | | | | | | | | - add support for volumes above 2TiB with Promise metadata format; - enforse and document other limitations: - Intel and Promise metadata formats do not support disks above 2TiB; - NVIDIA metadata format does not support volumes above 2TiB. Sponsored by: iXsystems, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=226816
* Add support for creating GELI devices with older metadata version for usePawel Jakub Dawidek2011-10-252-7/+84
| | | | | | | | | | | | | | | | | with older FreeBSD versions: - Add -V option to 'geli init' to specify version number. If no -V is given the most recent version is used. - If -V is given don't allow to use features not supported by this version. - Print version in 'geli list' output. - Update manual page and add table describing which GELI version is supported by which FreeBSD version, so one can use it when preparing GELI device for older FreeBSD version. Inspired by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=226733
* Add 'geli version' subcommand, which will print GELI metadata version of eachPawel Jakub Dawidek2011-10-252-0/+62
| | | | | | | | | | given GEOM provider or if not providers are given it will print versions supported by userland geli(8) utility and by ELI GEOM class. MFC after: 3 days Notes: svn path=/head/; revision=226723
* When we detect GELI metadata version that is newer than the highest wePawel Jakub Dawidek2011-10-251-5/+35
| | | | | | | | | | support, inform the user about that instead of 'MD5 hash mismatch'. Suggested by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=226722
* Simplify eli_resize() function.Pawel Jakub Dawidek2011-10-251-10/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226720
* Simplify eli_dump() function and allow to dump metadata stored in backup file.Pawel Jakub Dawidek2011-10-251-13/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226719
* If 'req' is NULL, print error on stderr.Pawel Jakub Dawidek2011-10-251-2/+7
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226718
* Simplify eli_is_attached() function and make it return boot instead of int.Pawel Jakub Dawidek2011-10-251-6/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226717
* Simplify eli_backup_create() and eli_backup_restore() functions.Pawel Jakub Dawidek2011-10-251-87/+28
| | | | | | | | | | As a side-effect it is now possible to backup unsupported (newer) GELI metadata versions. MFC after: 3 days Notes: svn path=/head/; revision=226716
* Sort includes.Pawel Jakub Dawidek2011-10-251-13/+13
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226715
* - change "is is" to "is" or "it is"Eitan Adler2011-10-161-1/+1
| | | | | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days Notes: svn path=/head/; revision=226436
* Don't use the whole free space when resizing partition to a larger sizeAndrey V. Elsukov2011-09-081-6/+6
| | | | | | | | | | | | | | on a disk with non zero stripesize (e.g. disks with 4k sector size)[1]. Also do not use automatic alignment when size is exactly specified, but an alignment is not. Use automatic alignment only for case when user omits both "-s" and "-a" options. Reported by: Mikael Fridh <frimik at gmail> [1] Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225445
* o Fix mdoc formatting for the '.Fx' macro. [1]Andrey V. Elsukov2011-08-201-3/+13
| | | | | | | | | | | o Add information about APM scheme and fix typos. [2] Submitted by: gjb [1], nwhitehorn [2] Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225023
* Add new section "BOOTSTRAPPING" to the gpart(8), that describesAndrey V. Elsukov2011-08-191-12/+90
| | | | | | | | | | | | bootstrap code images used to boot from MBR, GPT, BSD and VTOC8 schemes. Reviewed by: marius (previous version) Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=225003
* When user specifies the bootcode with size smaller than VTOC_BOOTCODE,Andrey V. Elsukov2011-06-211-1/+4
| | | | | | | | | | | gpart_write_partcode_vtoc8 does access out of range of allocated memory. Check size of bootcode before writing it. Pointed out by: ru MFC after: 1 week Notes: svn path=/head/; revision=223364
* Mod the offset padding by alignment. Without this change we mayXin LI2011-06-211-2/+2
| | | | | | | | | pad too much when underlying GEOM object have a zero stripesize. MFC after: 1 month Notes: svn path=/head/; revision=223356