259065 |
07-Dec-2013 |
gjb |
- Copy stable/10 (r259064) to releng/10.0 as part of the 10.0-RELEASE cycle. - Update __FreeBSD_version [1] - Set branch name to -RC1
[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so start releng/10.0 at '100' so the branch is started with a value ending in zero.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
254275 |
13-Aug-2013 |
mav |
Return error when opening read-only volumes (like RAID4/5/...) for writing. Previously opens succeeded, but actual write operations returned errors.
Requested by: peter MFC after: 2 weeks
|
254271 |
13-Aug-2013 |
mav |
Oops, wrong constant at r254269.
|
254269 |
13-Aug-2013 |
mav |
Fix reasonable but safe Clang warnings.
|
253706 |
27-Jul-2013 |
mav |
Introduce 3 seconds timeout on `graid stop` command (mostly with -f flag). Since completion waiting goes in g_event thread, it may cause GEOM deadlock if consumer on top (for example, ZFS) uses g_event thread for closing.
|
250819 |
20-May-2013 |
mav |
Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit. In some cases it could cause kernel panic during failed drive replacement.
Reported by: trasz MFC after: 1 week
|
249974 |
27-Apr-2013 |
mav |
Return "descr" field alike to "Intel RAID1 volume" for GEOM RAID to make it look better in bsdinstall.
|
248720 |
26-Mar-2013 |
mav |
Remove extra bio_data and bio_length copying to child request after calling g_clone_bio(), that already copied them.
|
248068 |
08-Mar-2013 |
sbruno |
Add legacy support to geom raid to create a /dev/arX device for support of upgrading older machines using ataraid(4) to newer releases.
This optional parameter is controlled via kern.geom.raid.legacy_aliases and will create a /dev/ar0 device that will point at /dev/raid/r0 for example.
Tested on Dell SC 1425 DDF-1 format software raid controllers installing from stable/7 and upgrading to stable/9 without having to adjust /etc/fstab
Reviewed by: mav Obtained from: Yahoo! MFC after: 2 Weeks
|
247918 |
07-Mar-2013 |
mav |
Fix panic when Secondary_Element_Count == 1 and Secondary_Element_Seq is not set (255).
Reported by: sbruno MFC after: 1 week
|
245533 |
17-Jan-2013 |
mav |
- Fix rebuild position broken at r245522. - Identify one more metadata field.
|
245522 |
17-Jan-2013 |
mav |
For Promise/AMD metadata add support for disks with capacity above 2TiB and for volumes with sector size above 512 bytes.
|
245519 |
17-Jan-2013 |
mav |
Recalculate volume size only for real CONCATs. For SINGLE trust volume size given by metadata, as it should be correct and in some cases can be smaller then subdisk size.
|
245433 |
14-Jan-2013 |
mav |
Keep value of orig_config_id metadata field. Windows driver writes there previous value of config_id when it is changed in some cases. I guess it may be used do avoid some split-brain conditions.
|
245425 |
14-Jan-2013 |
mav |
Small cosmetic tuning of the IRRT status constants.
|
245423 |
14-Jan-2013 |
mav |
Print some more metadata fields.
|
245400 |
14-Jan-2013 |
mav |
Windows driver writes relative volume IDs to metadata field. Use that value as a hint for raid/rX device number to make it persistent across reboots.
|
245398 |
13-Jan-2013 |
mav |
- Add checks for Intel metadata version and attributes. Ignore disks with unsupported metadata types like Intel Smart Response to not corrupt them. - Improve setting of these things during metadata writing to protect from incapable BIOS'es and other implementations.
|
245363 |
13-Jan-2013 |
mav |
Improve support for disabled disks. If disabled disk disconnected and then reconnected back, leave it as disconnected. If new disk inserted instead of disabled, rebuild it and leave as enabled.
|
245341 |
12-Jan-2013 |
mav |
Windows handles INIT and VERIFY as array-wide and it doesn't specify which disks should be rebuilt. Our rebuild code is same time disk-centric. To handle this situation properly check all disks for RBLD flags, and if no disk specified try rebuild/resync all of them except newly inserted.
|
245338 |
12-Jan-2013 |
mav |
Implement migration from single disk to RAID1/IRRT for Intel metadata. Windows driver uses such migration when it creates new arrays. While GEOM RAID has no mechanism to implement migration in general case, this specifc case still can be handled easily via degraded RAID1 creation followed by regular rebuild.
|
245326 |
12-Jan-2013 |
mav |
Add basic support for Intel Rapid Recover Technology (Intel RRT). It is alike to RAID1, but with dedicating master and recovery disks and providing manual control over synchronization. It allows to use recovery disk as snapshot of the master disk from the time of the last sync.
This implementation is not functionaly complete comparing to Windows, but it is better then silent conversion to RAID1 on first boot.
|
242328 |
29-Oct-2012 |
mav |
Minor addition to r242323: Alike to BIO_WRITE, report success if at least one subdisk succeeded with BIO_DELETE. But unlike BIO_WRITE don't fail disk on BIO_DELETE error.
Sponsored by: iXsystems, Inc. MFC after: 1 month
|
242323 |
29-Oct-2012 |
mav |
Add basic BIO_DELETE support to GEOM RAID class for all RAID levels.
If at least one subdisk in the volume supports it, BIO_DELETE requests will be propagated down. Unfortunatelly, for RAID levels with redundancy unmapped blocks will be mapped back during first rebuild/resync process.
Sponsored by: iXsystems, Inc. MFC after: 1 month
|
242314 |
29-Oct-2012 |
mav |
Make GEOM RAID more aggressive in marking volumes as clean on shutdown and move that action from shutdown_pre_sync to shutdown_post_sync stage to avoid extra flapping.
ZFS tends to not close devices on shutdown, that doesn't allow GEOM RAID to shutdown gracefully. To handle that, mark volume as clean just when shutdown time comes and there are no active writes.
MFC after: 2 weeks
|
241418 |
10-Oct-2012 |
mav |
NULL-ify last previously used pointer instead of last possible pointer. This should be only a cosmetic change.
Found by: Clang Static Analyzer
|
241329 |
07-Oct-2012 |
mav |
Make graid command line a bit more friendly by allowing volume name or provider name to be specified instead of geom name (first argument in all subcommands except label). In most cases there is only one array used any way, so it is not really useful to make user type ugly geom names like Intel-f0bdf223 or SiI-732c2b9448cf. Though they can be used in some cases.
Sponsored by: iXsystems, Inc. MFC after: 1 month
|
240465 |
13-Sep-2012 |
mav |
Add global and per-module sysctls/tunables to enable/disable metadata taste. That should help to handle some cases when disk has some RAID metadata that should be ignored, especially during boot.
MFC after: 3 days
|
239175 |
10-Aug-2012 |
mav |
Add missing FAILED event to g_raid_subdisk_event2str() to print it properly in debug messages.
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
|
235270 |
11-May-2012 |
mav |
- Prevent error status leak if write to some of the RAID1/1E volume disks failed while write to some other succeeded. Instead mark disk as failed. - Make RAID1E less aggressive in failing disks to avoid volume breakage.
MFC after: 2 weeks
|
235096 |
06-May-2012 |
mav |
Remove some hardcoded constants from code.
|
235080 |
06-May-2012 |
mav |
Plug small memory leaks.
|
235076 |
06-May-2012 |
mav |
Add support for RAID5R. Slightly improve support for RAIDMDF.
|
234994 |
04-May-2012 |
mav |
Fix bug causing memory corruption and panics with big-endian metadata.
|
234993 |
04-May-2012 |
mav |
Implement read-only support for volumes in optimal state (without using redundancy) for the following RAID levels: RAID4/5E/5EE/6/MDF.
|
234940 |
03-May-2012 |
mav |
Add optional -o argument to the `graid label ` to specify some metadata format options. Use it for specifying byte order for the DDF metadata: big-endian defined by specification and little-endian used by Adaptec.
|
234899 |
01-May-2012 |
mav |
Improve spare disks support. Unluckily, for some reason Adaptec 1430SA RAID BIOS doesn't want to understand spare disks created by graid. But at least spares created by BIOS are working fine now.
|
234869 |
01-May-2012 |
mav |
Implement volume deletion if disk has more then one partition.
|
234868 |
01-May-2012 |
mav |
Improve DDF metadata writing.
|
234848 |
30-Apr-2012 |
mav |
Add to GEOM RAID class module, supporting the DDF metadata format, as 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.
|
234816 |
29-Apr-2012 |
mav |
s/gmirror/graid/
|
234727 |
27-Apr-2012 |
mav |
Fix RAID5 level names changed at r234603.
|
234610 |
23-Apr-2012 |
mav |
Fix copy-paste typo in r234603.
Submitted by: kan
|
234603 |
23-Apr-2012 |
mav |
Add names for all primary RAID levels defined by DDF 2.0 specification.
|
234601 |
23-Apr-2012 |
mav |
Add sos@ copyrights to RAID metadata modules, respecting his efforts in decoding metadata formats in ataraid(4) code.
|
234458 |
19-Apr-2012 |
mav |
Add to GEOM RAID class module for reading non-degraded RAID5 volumes and some environment to differentiate 4 possible RAID5 on-disk layouts.
Tested with Intel and AMD RAID BIOSes.
MFC after: 2 weeks
|
229886 |
09-Jan-2012 |
jimharris |
Add support for >2TB disks in GEOM RAID for Intel metadata format.
Reviewed by: mav Approved by: scottl MFC after: 1 week
|
227309 |
07-Nov-2011 |
ed |
Mark all SYSCTL_NODEs static that have no corresponding SYSCTL_DECLs.
The SYSCTL_NODE macro defines a list that stores all child-elements of that node. If there's no SYSCTL_DECL macro anywhere else, there's no reason why it shouldn't be static.
|
226816 |
26-Oct-2011 |
mav |
Clarify disks/volumes above 2TiB support in geom_raid: - 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
|
223921 |
11-Jul-2011 |
ae |
Include sys/sbuf.h directly.
Reviewed by: pjd
|
220790 |
18-Apr-2011 |
mav |
Reduce geom_raid log verbosity.
|
220210 |
31-Mar-2011 |
mav |
Bunch of small bugfixes and cleanups.
Found with: Clang Static Analyzer
|
220209 |
31-Mar-2011 |
mav |
Bunch of small bugfixes and cleanups.
Found with: Coverity Prevent(tm) CID: 9656, 9658, 9693, 9705, 9706, 9707, 9808, 9809, 9810, 9711, 9712, 9713, 9714
|
219974 |
24-Mar-2011 |
mav |
MFgraid/head: Add new RAID GEOM class, that is going to replace ataraid(4) in supporting various BIOS-based software RAIDs. Unlike ataraid(4) this implementation does not depend on legacy ata(4) subsystem and can be used with any disk drivers, including new CAM-based ones (ahci(4), siis(4), mvs(4), ata(4) with `options ATA_CAM`). To make code more readable and extensible, this implementation follows modular design, including core part and two sets of modules, implementing support for different metadata formats and RAID levels.
Support for such popular metadata formats is now implemented: Intel, JMicron, NVIDIA, Promise (also used by AMD/ATI) and SiliconImage.
Such RAID levels are now supported: RAID0, RAID1, RAID1E, RAID10, SINGLE, CONCAT.
For any all of these RAID levels and metadata formats this class supports full cycle of volume operations: reading, writing, creation, deletion, disk removal and insertion, rebuilding, dirty shutdown detection and resynchronization, bad sector recovery, faulty disks tracking, hot-spare disks. For Intel and Promise formats there is support multiple volumes per disk set.
Look graid(8) manual page for additional details.
Co-authored by: imp Sponsored by: Cisco Systems, Inc. and iXsystems, Inc.
|