Bioctl

bioctl
Original author(s)Marco Peereboom (2005)
Developer(s)The OpenBSD Project
Initial release23 August 2005; 19 years ago (2005-08-23)
Repository/sbin/bioctl
Written inC
Operating systemOpenBSD since 3.8 (2005); NetBSD since 4.0 (2007)
TypeRAID management and system monitoring
LicenceBSD licence
Websitebioctl(8)

The bio(4) pseudo-device driver and the bioctl(8) utility implement a generic RAID volume management interface in OpenBSD and NetBSD.[1][2] The idea behind this software is similar to ifconfig, where a single utility from the operating system can be used to control any RAID controller using a generic interface, instead of having to rely on many proprietary and custom RAID management utilities specific for each given hardware RAID manufacturer.[3][4][5][6][7] Features include monitoring of the health status of the arrays, controlling identification through blinking the LEDs and managing of sound alarms, and specifying hot spare disks. Additionally, the softraid configuration in OpenBSD is delegated to bioctl as well; whereas the initial creation of volumes and configuration of hardware RAID is left to card BIOS as non-essential after the operating system has already been booted.[4] Interfacing between the kernel and userland is performed through the ioctl system call through the /dev/bio pseudo-device.

Overview

The bio/bioctl subsystem is deemed to be an important part in OpenBSD's advocacy for open hardware documentation, and the 3.8 release title and the titular song were dedicated to the topic — Hackers of the Lost RAID.[5][8][9] The development took place during a time of controversy where Adaptec refused to release appropriate hardware documentation that was necessary in order for the make the aac(4) driver work reliably, which followed with OpenBSD disabling support for the driver.[9]

In the commentary to the 3.8 release,[9] the developers express the irony of hardware RAID controllers' supposed purpose of providing reliability, through redundancy and repair, whereas in reality many vendors expect system administrators to install and depend on huge binary blobs in order to be assess volume health and service their disk arrays. Specifically, OpenBSD is making a reference to the modus operandi of FreeBSD, where the documentation of the aac(4) driver for Adaptec specifically suggests enabling Linux compatibility layer in order to use the management utilities (where the documentation even fails to explain where exactly these utilities must be obtained from, or which versions would be compatible, evidently because the proprietary tools may have expired).[10][11][12]

Likewise, OpenBSD developers intentionally chose to concentrate on supporting only the most basic features of each controller which are uniform across all the brands and variations; specifically, the fact that initial configuration of each controller must still be made through card BIOS was never kept secret from any bio/bioctl announcement.[4][5] This can be contrasted with the approach taken by FreeBSD, for example, where individual utilities exist for several independent RAID drivers, and the interface of each utility is independent of one another; specifically, as of March 2019, FreeBSD includes separate device-specific utilities called mfiutil, mptutil, mpsutil/mprutil and sesutil,[13][14][15][16], each of which provides many options with at least subtle differences in the interface for configuration and management of the controllers, contributes to code bloat, not to mention any additional drivers for which no such tool even exists as open-source software at all.[17] In OpenBSD 6.4 (2018), a dozen of drivers register with the bio framework.[1]

The drive sensors

Monitoring of the state of each logical drive is also duplicated into the hardware monitoring frameworks and their corresponding utilities on both systems where bioctl is available — hw.sensors with sensorsd in OpenBSD[4] and sysmon envsys with envstat and powerd in NetBSD.[18] For example, on OpenBSD since 4.2 release, the status of the drive sensors could be automatically monitored simply by starting sensorsd without any specific configuration being required.[19] More drivers are being converted to use the bio and sensors frameworks with each release.[20]

SES/SAF-TE

In OpenBSD, both SCSI Enclosure Services (SES)[21] and SAF-TE[22] are supported since OpenBSD 3.8 (2005) as well, both of which feature LED blinking through bio and bioctl (by implementing the BIOCBLINK ioctl), helping system administrators identify devices within the enclosures to service. Additionally, both the SES and SAF-TE drivers in OpenBSD feature support for a combination of temperature and fan sensors, PSU, doorlock and alarm indicators; all of this auxiliary sensor data is exported into the hw.sensors framework in OpenBSD,[4] and can be monitored through familiar tools like sysctl, SNMP and sensorsd.

As of 2019, in NetBSD, an older SES/SAF-TE driver from NASA from 2000 is still in place, which is not integrated with bio or envsys, but has its own device files with a unique ioctl interface, featuring its own custom SCSI-specific userland tooling;[23][24] this older implementation was also available in OpenBSD between 2000 and 2005, and was removed 2005 (together with its userland tools) just before the new leaner bio- and hw.sensors-based alternative drivers were introduced; SES and SAF-TE are now kept as two separate drivers in OpenBSD, but don't require any separate custom userland utilities anymore, reducing the code bloat and the number of source lines of code.

References

  1. ^ a b Niklas Hallqvist (2002); Marco Peereboom (2006). "bio(4) — block I/O ioctl tunnel pseudo-device". BSD Cross Reference. OpenBSD.{{cite web}}: CS1 maint: numeric names: authors list (link)
  2. ^ Marco Peereboom (2005). "bioctl(8) — RAID management interface". BSD Cross Reference. OpenBSD.
  3. ^ Federico Biancuzzi (2005-05-19). "OpenBSD 3.7: The Wizard of OS". ONLamp. O'Reilly Media. Archived from the original on 2005-05-21. Retrieved 2019-03-20.
  4. ^ a b c d e Theo de Raadt (2005-09-09). "RAID management support coming in OpenBSD 3.8". misc@ (Mailing list). OpenBSD.
  5. ^ a b c Federico Biancuzzi (2005-10-20). "OpenBSD 3.8: Hackers of the Lost RAID". ONLamp. O'Reilly Media. Archived from the original on 2005-12-27. Retrieved 2019-03-20.
  6. ^ Federico Biancuzzi (2006-10-26). "OpenBSD 4.0: Pufferix's Adventures". ONLamp. O'Reilly Media. Archived from the original on 2007-03-10. Retrieved 2019-03-19.
  7. ^ David Gwynne; Marco Peereboom (2006-12-03). bio and sensors in OpenBSD (PDF). OpenCON 2006, 2–3 December 2006. Courtyard Venice Airport, Venice/Tessera, Italy. Retrieved 2019-03-04.
  8. ^ OpenBSD 3.8. OpenBSD. 2005-11-01. ISBN 0-9731791-6-3. Retrieved 2019-03-23. Hackers of the Lost RAID
  9. ^ a b c "3.8: "Hackers of the Lost RAID"". OpenBSD Release Songs. OpenBSD. 2005-11-01. Retrieved 2019-03-23.
  10. ^ Scott Long; Adaptec, Inc (2000). "aac(4) — Adaptec AdvancedRAID Controller driver". BSD Cross Reference. FreeBSD. If the kernel is compiled with the COMPAT_LINUX option, or the aac_linux.ko and linux.ko modules are loaded,...
  11. ^ "Remove expired aaccli". FreshBSD. FreeBSD. 2010-08-03. Archived from the original on 2019-03-26. Retrieved 2019-03-26.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  12. ^ Jonathan Gray (2006-12-02). "Page 26: Only open for business: FreeBSD". Driver Architecture and Implementation in OpenBSD. OpenCON 2006, 2–3 December 2006. Courtyard Venice Airport, Venice/Tessera, Italy. Retrieved 2019-03-27. drivers designed for binary only Linux RAID management tools
  13. ^ "mfiutil — Utility for managing LSI MegaRAID SAS controllers". BSD Cross Reference. FreeBSD. 2009.
  14. ^ "mptutil — Utility for managing LSI Fusion-MPT controllers". BSD Cross Reference. FreeBSD. 2009.
  15. ^ "mpsutil, mprutil — Utility for managing LSI Fusion-MPT 2/3 controllers". BSD Cross Reference. FreeBSD. 2015.
  16. ^ "sesutil — Utility for managing SCSI Enclosure Services (SES) device". BSD Cross Reference. FreeBSD. 2015.
  17. ^ Theo de Raadt (2016-12-03). "Page 10: The hardware: drive controllers". Open Documentation for Hardware. OpenCON 2006, 2–3 December 2006. Courtyard Venice Airport, Venice/Tessera, Italy. Retrieved 2019-03-27. RAID management is almost completely undocumented
  18. ^ Constantine A. Murenin (2010-05-21). "1.1. Motivation; 4. Sensor Drivers; 7.1. NetBSD envsys / sysmon". OpenBSD Hardware Sensors — Environmental Monitoring and Fan Control (MMath thesis). University of Waterloo: UWSpace. hdl:10012/5234. Document ID: ab71498b6b1a60ff817b29d56997a418.
  19. ^ Federico Biancuzzi (2007-11-01). "Puffy's Marathon: What's New in OpenBSD 4.2". ONLamp. O'Reilly Media. Archived from the original on 2011-10-13. Retrieved 2019-03-03.
  20. ^ Federico Biancuzzi (2009-06-15). "PuffyTron recommends OpenBSD 4.5". O'Reilly Media. Archived from the original on 2009-06-19. Retrieved 2019-03-19.
  21. ^ David Gwynne (2005). "/sys/scsi/ses.c — SCSI Enclosure Services". BSD Cross Reference. OpenBSD.
  22. ^ David Gwynne (2005). "/sys/scsi/safte.c — SCSI Accessed Fault-Tolerant Enclosure". BSD Cross Reference. OpenBSD.
  23. ^ Matthew Jacob; National Aeronautics & Space Administration (2000). "dev/scsipi/ses.c — SCSI Environmental Services Driver". BSD Cross Reference. NetBSD.
  24. ^ Matthew Jacob (2000). "sesd: sesd, getencstat, setencstat, setobjstat — monitor SCSI Environmental Services Devices". BSD Cross Reference. NetBSD.

Read other articles:

Katedral BeogradKatedral Santa Perawan MariaKatedrala Blažene Device Marijebahasa Serbia: Катедрала Блажене Девице МаријеKatedral BeogradLokasiBeogradNegara SerbiaDenominasiGereja Katolik RomaSejarahTanggal konsekrasi25 September 1925 (gereja lama)1988 (gereja baru)ArsitekturStatusKatedralStatus fungsionalAktifDibangun1924-1925 (gereja lama)1938-1988 (gereja baru)AdministrasiKeuskupan AgungKeuskupan Agung Beograd Katedral Santa Perawan Maria (bahasa Serbi...

 

.uy

.uyDiperkenalkan10 September 1990Jenis TLDTLD kode negara InternetStatusAktifRegistriServicio Central de InformaticaSponsorUniversidad de la RepúblicaPemakaian yang diinginkanEntitas yang terhubung dengan  UruguayPemakaian aktualSangat umum di UruguayStrukturRegistrasi dilakukan di tingkat kedua atau ketigaDokumenRulesKebijakan sengketaArbitrationSitus web.uy NIC.uy adalah top-level domain kode negara Internet untuk Uruguay. lbsRanah tingkat teratas kode negara (ccTLD)ISO 3166-1 A ...

 

Panorama kota Teater Reduta Spišská Nová Vesⓘ (bahasa Jerman: (Zipser) Neu(en)dorf, bahasa Hungaria: Igló) merupakan sebuah kota di Slowakia yang berpenduduk 38.000 jiwa. Kota ini terletak di tenggara Pegunungan Tatry Tinggi di kawasan Spiš, dan di dalam kota ini mengalir Sungai Hornád. Spišská Nová Ves adalah ibu kota dan kota terbesar di distrik dengan nama serupa. Daya tarik untuk wisatawan di sini termasuk kota Levoča (peninggalan Abad Pertengahan), Kastil Spiš dan Taman Nasi...

Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Virtual International Authority File – berita · surat kabar · buku · cendekiawan · JSTOR (September 2012) Virtual International Authority File (VIAF)Virtual International Authority File (VIAF)URLVIAF.orgNama ...

 

В Википедии есть статьи о других людях с такой фамилией, см. Мстиславский; Мстиславский, Иван. Иван Фёдорович Мстиславский Лицевой летописный свод: «Той же зимой прислал к царю и великому князю боярин его и воевода князь Иван Федорович Мстиславский с товарищами Дмитрия Г�...

 

Nama ini menggunakan cara penamaan Spanyol: nama keluarga pertama atau paternalnya adalah Lalaguna dan nama keluarga kedua atau maternalnya adalah Royo. Mireia LalagunaMireia pada tahun 2016LahirMireia Lalaguna Royo28 November 1992 (umur 31)Barcelona, SpanyolPekerjaan Model Tinggi1,77 m (5 ft 9+1⁄2 in)Pemenang kontes kecantikanGelarMiss Atlántico Internacional 2014Miss World Spain 2015Warna rambutPirangWarna mataBiruKompetisiutamaMiss Atlántico Internacional 2...

Governo Giolitti IV Stato Italia Presidente del ConsiglioGiovanni Giolitti LegislaturaXXIII, XXIV Giuramento30 marzo 1911 Dimissioni10 marzo 1914 Governo successivoSalandra I21 marzo 1914 Luzzatti Salandra I Il Governo Giolitti IV è stato il governo del Regno d'Italia in carica dal 30 marzo 1911[1] al 21 marzo 1914[2], per un totale di 1.076 giorni, ovvero 2 anni, 11 mesi e 22 giorni. Il governo, presieduto dal politico Giovanni Giolitti (1842-1928), nacque dalla pro...

 

Building in Cluj-Napoca, RomaniaBánffy PalaceExterior viewGeneral informationArchitectural styleBaroqueTown or cityCluj-NapocaCountryRomaniaConstruction started1774Completed1786ClientGyörgy Bánffy, governor of TransylvaniaDesign and constructionArchitect(s)Johann Eberhard Blaumann Bánffy Castle is a baroque building of the 18th century in Cluj-Napoca, designed by the German architect Johann Eberhard Blaumann.[1] Built between 1774 and 1775 it is considered the most representative ...

 

«DLE» redirige aquí. Para otras acepciones, véase DLE (animación). Diccionario de la lengua española de la Real Academia Española Portada de la vigesimotercera ediciónGénero DiccionarioIdioma Español Editorial Real Academia Española País España Fecha de publicación 21 de octubre de 2014 [editar datos en Wikidata] Vigesimosegunda edición del Diccionario de la lengua española El Diccionario de la lengua española es un diccionario del idioma español editado y ela...

40°43′12″N 74°00′32″W / 40.72000°N 74.00889°W / 40.72000; -74.00889 Street in Manhattan, New York North Moore Street is a moderately trafficked street in TriBeCa, a neighborhood in the New York City borough of Manhattan. It runs roughly east–west between West Broadway and West Street. Automotive traffic is westbound only. Naming On street signs and maps, the street is usually written as N. Moore Street. The street was named in 1790 for Benjamin Moore (174...

 

Foul-smelling organic chemical compound Putrescine Skeletal formula Ball-and-stick model[1][2] Names Preferred IUPAC name Butane-1,4-diamine Other names 1,4-Diaminobutane, 1,4-Butanediamine Identifiers CAS Number 110-60-1 Y 3D model (JSmol) Interactive image 3DMet B00037 Beilstein Reference 605282 ChEBI CHEBI:17148 N ChEMBL ChEMBL46257 Y ChemSpider 13837702 Y DrugBank DB01917 N ECHA InfoCard 100.003.440 EC Number 203-782-3 Gmelin Reference 1715 IUPHAR/...

 

För andra betydelser, se Athos (olika betydelser). nygrekiska: Άγιο Όροςklassisk grekiska:Ἅγιον Ὄροςserbiska: Света Гораmakedonska: Света Гораryska: Афонgeorgiska: აიონ-ოროსიbulgariska: Атонrumänska: Muntele Athos läge HuvudstadKaryes Officiellt språk koine, kyrkoslaviska, grekiska, serbiska, ryska, georgiska, bulgariska, rumänska Statsskick Valmonarki  -  Statschefer Bartholomeus IDimitrios Droutsas Självständigh...

14th Miss Universe pageant Miss Universe 1965Apasra Hongsakula being crowned Miss Universe 1965Date24 July 1965PresentersJack LinkletterVenueMiami Beach Auditorium, Miami Beach, Florida, United StatesBroadcasterCBSEntrants56Placements15DebutsBermudaWithdrawalsArgentinaChileDominican RepublicGrenadaNigeriaRepublic of ChinaSt. VincentSurinamTrinidad and TobagoReturnsCubaMexicoPortugalThailandWinnerApasra Hongsakula  ThailandCongenialityIngrid Bethke  GermanyBest National CostumeSue Do...

 

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府...

 

Speech by US president Donald Trump 2020 State of the Union AddressFull video of the speech as published by the White HouseDateFebruary 4, 2020 (2020-02-04)Time9:00 p.m. ESTDuration1 hour, 18 minutes[1]VenueHouse Chamber, United States CapitolLocationWashington, D.C.Coordinates38°53′19.8″N 77°00′32.8″W / 38.888833°N 77.009111°W / 38.888833; -77.009111TypeState of the Union AddressParticipantsDonald TrumpMike PenceNancy PelosiFootageC-...

2002 FontanaRace detailsRace 18 of 19 in the 2002 CART seasonCalifornia Speedway track layoutDateNovember 3, 2002Official name2002 The 500 Presented by ToyotaLocationCalifornia Speedway, Fontana, California, United StatesCourse2 Mile Banked Oval2.029 mi / 3.265 kmDistance250 laps507.250 mi / 816.250 kmWeatherMostly CloudyPole positionDriverTony Kanaan (Mo Nunn Racing)Time31.483Fastest lapDriverOriol Servià (Patrick Racing)Time31.469 (on lap 234 of 250)PodiumFirstJimmy Vasser&...

 

Atlantic subtropical storm in 1982 Subtropical Storm One Subtropical Storm One traveling up the Eastern Seaboard on June 18Meteorological historyFormedJune 18, 1982ExtratropicalJune 20DissipatedJune 22, 1982Subtropical storm1-minute sustained (SSHWS/NWS)Highest winds70 mph (110 km/h)Lowest pressure984 mbar (hPa); 29.06 inHgOverall effectsFatalities3 directDamage$10 million (1982 USD)Areas affectedCuba, Florida, Georgia, Virginia, North Carolina, South Carolina an...

 

Political party in Nepal This article is about party led by Upendra Yadav. For new socialist party under Ashok Rai faction of this party, see People's Socialist Party. People's Socialist Party, Nepal जनता समाजवादी पार्टी, नेपालAbbreviationPSP-NChairpersonUpendra YadavSpokespersonManish Kumar Suman[1]Founded22 April 2020; 4 years ago (2020-04-22)Merger ofRJPNSPNHeadquartersBalkumari, LalitpurStudent wingSocialist Stud...

Data about data In the 21st century, metadata typically refers to digital forms, but traditional card catalogs contain metadata, with cards holding information about books in a library (author, title, subject, etc.). Metadata can come in different layers: This physical herbarium record of Cenchrus ciliaris consists of the specimens as well as metadata about them, while the barcode points to a digital record with metadata about the physical record. Metadata for a Sphagnum papillosum pot that i...

 

Mexican professional wrestler In this Spanish name, the first or paternal surname is Coccó and the second or maternal family name is Flores. MasakreMasakre in 1993Birth nameAristóteles Radamés Coccó FloresBorn(1954-05-13)May 13, 1954Mexico City, MexicoDiedApril 12, 2012(2012-04-12) (aged 57)[1][2]Charlotte, North Carolina, United States[2]Professional wrestling careerRing name(s)DrakulaMasakreMS-2YetiBilled height1.86 m (6 ft 1 in)Billed...