msgid "" msgstr "Project-Id-Version: 0\nPOT-Creation-Date: 2022-07-30 18:23+0200\nPO-Revision-Date: 2022-09-20 00:56+0000\nLast-Translator: d \nLanguage-Team: Catalan \nLanguage: ca-ES\nMIME-Version: 1.0\nContent-Type: application/x-publican; charset=UTF-8\nContent-Transfer-Encoding: 8bit\nPlural-Forms: nplurals=2; plural=n != 1;\nX-Generator: Weblate 4.14.1\n" msgid "RAID" msgstr "RAID" msgid "LVM" msgstr "LVM" msgid "FAI" msgstr "FAI" msgid "Preseeding" msgstr "Preseeding" msgid "Monitoring" msgstr "Monitorització" msgid "Virtualization" msgstr "Virtualització" msgid "Xen" msgstr "Xen" msgid "LXC" msgstr "LXC" msgid "Advanced Administration" msgstr "Administració avançada" msgid "This chapter revisits some aspects we already described, with a different perspective: instead of installing one single computer, we will study mass-deployment systems; instead of creating RAID or LVM volumes at install time, we'll learn to do it by hand so we can later revise our initial choices. Finally, we will discuss monitoring tools and virtualization techniques. As a consequence, this chapter is more particularly targeting professional administrators, and focuses somewhat less on individuals responsible for their home network." msgstr "Aquest capítol revisa alguns aspectes que ja hem descrit, amb una perspectiva diferent: en lloc d'instal·lar un sol ordinador, estudiarem els sistemes de desplegament massiu; en lloc de crear volums RAID o LVM en el moment de la instal·lació, aprendrem a fer-ho a mà perquè puguem revisar més endavant les nostres opcions inicials. Finalment, parlarem de les eines de monitorització i de les tècniques de virtualització. Com a conseqüència, aquest capítol està dirigit més especialment als administradors professionals, i se centra una mica menys en les persones responsables de la seva xarxa domèstica." msgid "RAID and LVM" msgstr "RAID i LVM" msgid "RAID" msgstr "RAID" msgid "LVM" msgstr "LVM" #, fuzzy #| msgid "Logical Volume Manager" msgid "Logical Volume ManagerLVM" msgstr "Logical Volume Manager" #, fuzzy #| msgid "installationautomated installation" msgid "volumelogical volume" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "volumeraid volume" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "filesystemredundancy" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid " presented these technologies from the point of view of the installer, and how it integrated them to make their deployment easy from the start. After the initial installation, an administrator must be able to handle evolving storage space needs without having to resort to an expensive reinstallation. They must therefore understand the required tools for manipulating RAID and LVM volumes." msgid " presented these technologies from the point of view of the installer, and how it integrated them to make their deployment easy from the start. After the initial installation, an administrator must be able to handle evolving storage space needs without having to resort to an expensive re-installation. They must therefore understand the required tools for manipulating RAID and LVM volumes." msgstr "A es van presentar aquestes tecnologies des del punt de vista de l'instal·lador, i com les va integrar per facilitar el seu desplegament des del principi. Després de la instal·lació inicial, un administrador ha de ser capaç de gestionar les necessitats d'emmagatzematge en evolució sense haver de recórrer a una reinstal·lació costosa. Per tant, s'han d'entendre les eines necessàries per a manipular els volums RAID i LVM." #, fuzzy #| msgid "installationautomated installation" msgid "volumemanagement" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID and LVM are both techniques to abstract the mounted volumes from their physical counterparts (actual hard-disk drives or partitions thereof); the former ensures the security and availability of the data in case of hardware failure by introducing redundancy, the latter makes volume management more flexible and independent of the actual size of the underlying disks. In both cases, the system ends up with new block devices, which can be used to create filesystems or swap space, without necessarily having them mapped to one physical disk. RAID and LVM come from quite different backgrounds, but their functionality can overlap somewhat, which is why they are often mentioned together." msgstr "RAID i LVM són dues tècniques per abstraure els volums muntats dels dispositius físics (unitats de disc dur o particions); el primer assegura la seguretat i la disponibilitat de les dades en cas d'una fallada del maquinari mitjançant la introducció de redundància, mentre que el segon fa que la gestió del volum sigui més flexible i independent de la mida real dels discs subjacents. En tots dos casos, el sistema acaba amb nous dispositius de blocs, que es poden utilitzar per crear sistemes de fitxers o espai d'intercanvi, sense necessàriament tenir-los mapejats a un disc físic. RAID i LVM provenen d'orígens diferents, però la seva funcionalitat pot solapar-se una mica, i per això sovint s'esmenten junts." msgid "PERSPECTIVE Btrfs combines LVM and RAID" msgstr "PERSPECTIVA Btrfs combina LVM i RAID" #, fuzzy #| msgid "xm" msgid "mountBtrfs" msgstr "xm" #, fuzzy #| msgid "preseed" msgid "Btrfs" msgstr "presembrar" #, fuzzy #| msgid "While LVM and RAID are two distinct kernel subsystems that come between the disk block devices and their filesystems, btrfs is a filesystem, initially developed at Oracle, that purports to combine the featuresets of LVM and RAID and much more. " msgid "While LVM and RAID are two distinct kernel subsystems that come between the disk block devices and their filesystems, btrfs is a filesystem, initially developed at Oracle, that purports to combine the feature sets of LVM and RAID and much more. " msgstr "Mentre que LVM i RAID són dos subsistemes del nucli diferents que es troben entre els dispositius de blocs de disc i els seus sistemes de fitxers, btrfs és un sistema de fitxers, inicialment desenvolupat a Oracle, que pretén combinar els conjunts de característiques de LVM i RAID i molt més. " msgid "Among the noteworthy features are the ability to take a snapshot of a filesystem tree at any point in time. This snapshot copy doesn't initially use any disk space, the data only being duplicated when one of the copies is modified. The filesystem also handles transparent compression of files, and checksums ensure the integrity of all stored data." msgstr "Entre les característiques destacades hi ha la capacitat de prendre una instantània d'un arbre del sistema de fitxers en qualsevol moment. Aquesta còpia instantània no utilitza inicialment cap espai de disc, les dades només es dupliquen quan es modifica una de les còpies. El sistema de fitxers també gestiona transparentment la compressió dels fitxers, i les sumes de verificació garanteixen la integritat de totes les dades emmagatzemades." #, fuzzy #| msgid "installationautomated installation" msgid "filesystemsnapshot" msgstr "instal·lacióinstal·lació automatitzada" msgid "In both the RAID and LVM cases, the kernel provides a block device file, similar to the ones corresponding to a hard disk drive or a partition. When an application, or another part of the kernel, requires access to a block of such a device, the appropriate subsystem routes the block to the relevant physical layer. Depending on the configuration, this block can be stored on one or several physical disks, and its physical location may not be directly correlated to the location of the block in the logical device." msgstr "En els casos de RAID i LVM, el nucli proporciona un fitxer de dispositiu de blocs, similar als que corresponen a un disc dur o una partició. Quan una aplicació, o una altra part del nucli, requereix accés a un bloc d'aquest dispositiu, el subsistema apropiat dirigeix el bloc a la capa física pertinent. Depenent de la configuració, aquest bloc es pot emmagatzemar en un o diversos discos físics, i la seva ubicació física pot no estar directament relacionada amb la ubicació del bloc en el dispositiu lògic." msgid "Software RAID" msgstr "RAID per software" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDSoftware RAID" msgstr "instal·lacióinstal·lació automatitzada" msgid "Redundant Array of Independent DisksRAID" msgstr "" msgid "RAID means Redundant Array of Independent Disks. The goal of this system is to prevent data loss and ensure availability in case of hard disk failure. The general principle is quite simple: data are stored on several physical disks instead of only one, with a configurable level of redundancy. Depending on this amount of redundancy, and even in the event of an unexpected disk failure, data can be losslessly reconstructed from the remaining disks." msgstr "RAID vol dir «Redundant Array of Independent Disks» o “conjunt redundant de discos independents”. L'objectiu d'aquest sistema és prevenir la pèrdua de dades i assegurar la disponibilitat en cas d'una fallada en un disc dur. El principi general és bastant simple: les dades s'emmagatzemen en diversos discs físics en lloc de només en un, amb un nivell de redundància configurable. Depenent d'aquesta quantitat de redundància, i fins i tot en cas d'una fallada inesperada del disc, les dades es poden reconstruir sense pèrdues a partir dels discos restants." msgid "CULTURE Independent or inexpensive?" msgstr "CULTURA Independent o barat?" msgid "The I in RAID initially stood for inexpensive, because RAID allowed a drastic increase in data safety without requiring investing in expensive high-end disks. Probably due to image concerns, however, it is now more customarily considered to stand for independent, which doesn't have the unsavory flavor of cheapness." msgstr "La lletra “I” de RAID inicialment era de «inexpensive» (en anglès, barat), perquè RAID va permetre un augment dràstic en la seguretat de les dades sense requerir la inversió en costosos discos d'alta gamma. Probablement a causa de les preocupacions per la imatge, ara es considera més habitual que sigui de independent, que no té la desagradable connotació de barat." #, fuzzy #| msgid "installationautomated installation" msgid "RAIDHardware RAID" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDdegraded" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDreconstruction" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID can be implemented either by dedicated hardware (RAID modules integrated into SCSI or SATA controller cards) or by software abstraction (the kernel). Whether hardware or software, a RAID system with enough redundancy can transparently stay operational when a disk fails; the upper layers of the stack (applications) can even keep accessing the data in spite of the failure. Of course, this “degraded mode” can have an impact on performance, and redundancy is reduced, so a further disk failure can lead to data loss. In practice, therefore, one will strive to only stay in this degraded mode for as long as it takes to replace the failed disk. Once the new disk is in place, the RAID system can reconstruct the required data so as to return to a safe mode. The applications won't notice anything, apart from potentially reduced access speed, while the array is in degraded mode or during the reconstruction phase." msgstr "El RAID es pot implementar amb maquinari dedicat (mòduls RAID integrats en targetes de controlador SCSI o SATA) o amb abstracció de programari (el nucli). Ja sigui via maquinari o via programari, un sistema RAID amb prou redundància pot romandre operatiu quan un disc falla; les capes superiors de la pila (les aplicacions) poden fins i tot seguir accedint a les dades malgrat la fallada. Per descomptat, aquest “mode degradat” pot tenir un impacte en el rendiment, i la redundància es redueix, de manera que una altra fallada en el disc pot provocar la pèrdua de dades. A la pràctica, per tant, hom hauria d'esforçar-se per mantenir-se només en aquest mode degradat el que es trigui a substituir el disc espatllat. Un cop el nou disc és a lloc, el sistema RAID pot reconstruir les dades necessàries per tornar a un mode segur. Les aplicacions no notaran res, a part d'una potencial reducció de la velocitat d'accés, mentre el sistema està en mode degradat o durant la fase de reconstrucció." msgid "When RAID is implemented by hardware, its configuration generally happens within the BIOS setup tool, and the kernel will consider a RAID array as a single disk, which will work as a standard physical disk, although the device name may be different (depending on the driver)." msgstr "Quan el RAID és implementat per maquinari, la seva configuració generalment es dóna dins de l'eina de configuració a la BIOS, i el nucli considerarà un conjunt RAID com un sol disc, que funcionarà com un disc físic estàndard, encara que el nom del dispositiu pot ser diferent (depenent del controlador)." msgid "We only focus on software RAID in this book." msgstr "Només ens centrarem en el RAID de programari en aquest llibre." msgid "Different RAID Levels" msgstr "Diferents nivells de RAID" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDlevel" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID is actually not a single system, but a range of systems identified by their levels; the levels differ by their layout and the amount of redundancy they provide. The more redundant, the more failure-proof, since the system will be able to keep working with more failed disks. The counterpart is that the usable space shrinks for a given set of disks; seen the other way, more disks will be needed to store a given amount of data." msgstr "El RAID no és en realitat un sol sistema, sinó una sèrie de sistemes identificats pels seus nivells; els nivells difereixen pel seu disseny i la quantitat de redundància que proporcionen. Com més redundància, més a prova de fallades serà, ja que el sistema podrà continuar treballant amb més discs espatllats. La contrapartida és que, per a un conjunt donat de discos, l'espai utilitzable es redueix; vist a l'inrevés, es necessitaran més discos per emmagatzemar una quantitat donada de dades." msgid "Linear RAID" msgstr "RAID lineal" msgid "Even though the kernel's RAID subsystem allows creating “linear RAID”, this is not proper RAID, since this setup doesn't involve any redundancy. The kernel merely aggregates several disks end-to-end and provides the resulting aggregated volume as one virtual disk (one block device). That is about its only function. This setup is rarely used by itself (see later for the exceptions), especially since the lack of redundancy means that one disk failing makes the whole aggregate, and therefore all the data, unavailable." msgstr "Tot i que el subsistema RAID del nucli permet crear un “RAID lineal”, això no és un RAID adequat, ja que aquesta configuració no implica cap redundància. El nucli simplement agrega diversos discs d'extrem a extrem i proporciona el volum agregat resultant com un disc virtual (un dispositiu de bloc). Aquesta és la seva única funció. Aquesta configuració és rarament utilitzada per si mateixa (vegeu més endavant les excepcions), especialment perquè la manca de redundància significa que un disc que falli fa que tot el conjunt, i per tant totes les dades, quedi fora de servei." #, fuzzy #| msgid "installationautomated installation" msgid "RAIDlinear" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID-0" msgstr "RAID-0" msgid "This level doesn't provide any redundancy either, but disks aren't simply stuck on end one after another: they are divided in stripes, and the blocks on the virtual device are stored on stripes on alternating physical disks. In a two-disk RAID-0 setup, for instance, even-numbered blocks of the virtual device will be stored on the first physical disk, while odd-numbered blocks will end up on the second physical disk." msgstr "Aquest nivell tampoc proporciona cap redundància, però els discs no estan simplement un darrere l'altre: estan dividits en tires, i els blocs del dispositiu virtual s'emmagatzemen en tires en discs físics alterns. En una configuració RAID-0 de dos discso, per exemple, els blocs parells del dispositiu virtual s'emmagatzemaran en el primer disc físic, mentre que els blocs senars acabaran en el segon disc físic." #, fuzzy #| msgid "installationautomated installation" msgid "RAIDstripes" msgstr "instal·lacióinstal·lació automatitzada" msgid "This system doesn't aim at increasing reliability, since (as in the linear case) the availability of all the data is jeopardized as soon as one disk fails, but at increasing performance: during sequential access to large amounts of contiguous data, the kernel will be able to read from both disks (or write to them) in parallel, which increases the data transfer rate. The disks are utilized entirely by the RAID device, so they should have the same size not to lose performance." msgstr "Aquest sistema no té com a objectiu augmentar la fiabilitat, ja que (com en el cas lineal) la disponibilitat de totes les dades es posa en perill tan aviat com un disc falla, sinó en un rendiment millorat: durant l'accés seqüencial a grans quantitats de dades contigües, el nucli podrà llegir des dels dos discos (o escriure-hi) en paral·lel, la qual cosa augmenta la taxa de transferència de dades. Els discs són utilitzats íntegrament pel dispositiu RAID, de manera que haurien de tenir la mateixa mida per no perdre el rendiment." msgid "RAID-0 use is shrinking, its niche being filled by LVM (see later)." msgstr "L'ús de RAID-0 s'està reduint, i el seu nínxol és ocupat per LVM (vegeu més endavant)." #, fuzzy #| msgid "installationautomated installation" msgid "RAID0" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID-1" msgstr "RAID-1" msgid "This level, also known as “RAID mirroring”, is both the simplest and the most widely used setup. In its standard form, it uses two physical disks of the same size, and provides a logical volume of the same size again. Data are stored identically on both disks, hence the “mirror” nickname. When one disk fails, the data is still available on the other. For really critical data, RAID-1 can of course be set up on more than two disks, with a direct impact on the ratio of hardware cost versus available payload space." msgstr "Aquest nivell, també conegut com a “RAID en mirall” (o «RAID mirroring») és tant la configuració més simple com la més utilitzada. En la seva forma estàndard, utilitza dos discos físics de la mateixa mida, i proporciona un volum lògic d'aquesta mateixa mida. Les dades s'emmagatzemen idènticament en ambdós discs, d'aquí el sobrenom de “mirall” (o «mirror» en anglès). Quan un disc falla, les dades encara estan disponibles a l'altre. Per a dades realment crítiques, el RAID-1 es pot configurar en més de dos discos, amb un impacte directe en la relació cost de maquinari enfront de l'espai de dades disponible." #, fuzzy #| msgid "installationautomated installation" msgid "RAID1" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDmirror" msgstr "instal·lacióinstal·lació automatitzada" msgid "NOTE Disks and cluster sizes" msgstr "NOTA Discos i mides de «cluster»" msgid "If two disks of different sizes are set up in a mirror, the bigger one will not be fully used, since it will contain the same data as the smallest one and nothing more. The useful available space provided by a RAID-1 volume therefore matches the size of the smallest disk in the array. This still holds for RAID volumes with a higher RAID level, even though redundancy is stored differently." msgstr "Si es configuren dos discos de diferents mides en “mirall”, el més gran no s'utilitzarà plenament, ja que conté les mateixes dades que el més petit i prou. L'espai disponible útil proporcionat per un volum RAID-1 coincideix per tant amb la mida del disc més petit del conjunt. Això també és vàlid per a volums RAID amb un nivell de RAID més alt, tot i que la redundància s'emmagatzema de manera diferent." msgid "It is therefore important, when setting up RAID arrays (except for RAID-0 and “linear RAID”), to only assemble disks of identical, or very close, sizes, to avoid wasting resources." msgstr "Per tant, és important, quan s'estableixen conjunts RAID (excepte per RAID-0 i RAID lineal), només muntar discos de mides idèntiques, o molt similars, per evitar el balafiament de recursos." msgid "NOTE Spare disks" msgstr "NOTA Discos lliures" #, fuzzy #| msgid "preseed" msgid "spare disk" msgstr "presembrar" msgid "RAID levels that include redundancy allow assigning more disks than required to an array. The extra disks are used as spares when one of the main disks fails. For instance, in a mirror of two disks plus one spare, if one of the first two disks fails, the kernel will automatically (and immediately) reconstruct the mirror using the spare disk, so that redundancy stays assured after the reconstruction time. This can be used as another kind of safeguard for critical data." msgstr "Els nivells RAID que inclouen redundància permeten assignar més discos dels requerits al conjunt. Els discos extres s'utilitzen com a recanvi quan un dels discos principals falla. Per exemple, en un mirall de dos discos més un de recanvi, si un dels dos primers falla, el nucli reconstruirà automàticament (i immediatament) el mirall utilitzant el disc de recanvi, de manera que la redundància romangui assegurada després del temps de reconstrucció. Això es pot utilitzar com una altra mena de salvaguarda per a les dades crítiques." msgid "One would be forgiven for wondering how this is better than simply mirroring on three disks to start with. The advantage of the “spare disk” configuration is that the spare disk can be shared across several RAID volumes. For instance, one can have three mirrored volumes, with redundancy assured even in the event of one disk failure, with only seven disks (three pairs, plus one shared spare), instead of the nine disks that would be required by three triplets." msgstr "Hom es podria preguntar què pot ser millor que simplement configurar un mirall de tres discos per començar. L'avantatge de la configuració amb “disc de reserva” és que el disc de recanvi es pot compartir entre diversos volums RAID. Per exemple, es poden tenir tres volums en mirall, amb la redundància assegurada fins i tot en cas de fallada d'un disc, amb només set discos (tres parells, més un com a recanvi compartit), en lloc dels nou discs que serien requerits per tres triplets." msgid "This RAID level, although expensive (since only half of the physical storage space, at best, is useful), is widely used in practice. It is simple to understand, and it allows very simple backups: since both disks have identical contents, one of them can be temporarily extracted with no impact on the working system. Read performance is often increased since the kernel can read half of the data on each disk in parallel, while write performance isn't too severely degraded. In case of a RAID-1 array of N disks, the data stays available even with N-1 disk failures." msgstr "Aquest nivell RAID, encara que car (com a màxim, només la meitat de l'espai d'emmagatzematge físic és usable), s'utilitza àmpliament a la pràctica. És fàcil d'entendre, i permet còpies de seguretat molt simples: ja que tots dos discs tenen continguts idèntics, un d'ells pot ser extret temporalment sense cap impacte en el sistema de treball. El rendiment de lectura sovint s'incrementa, ja que el nucli pot llegir la meitat de les dades de cada disc en paral·lel, mentre que el rendiment d'escriptura no es degrada massa. En cas d'una matriu RAID-1 de N discos, les dades es mantenen disponibles fins i tot amb la fallada d'N-1 discos." #, fuzzy #| msgid "TIP RAID, disks and partitions" msgid "CAUTION RAID is not Backup" msgstr "SUGGERIMENT RAID, discos i particions" #, fuzzy #| msgid "debian-cd" msgid "backup" msgstr "debian-cd" msgid "RAID systems are not backup mechanisms. While RAID increases the redundancy - and therefore the availability of a system - and protects against disk failures, backups are done to protect data from being altered, deleted, getting corrupted, etc., and to be able to restore them if necessary. To demonstrate this: If you remove one or all files by accident, a RAID will mirror this change, but it will not provide the means to restore the file(s). So while there is clearly an overlap, they are not the same and should be used in conjunction with each other." msgstr "" msgid "RAID-4" msgstr "RAID-4" msgid "This RAID level, not widely used, uses N disks to store useful data, and an extra disk to store redundancy information. If that disk fails, the system can reconstruct its contents from the other N. If one of the N data disks fails, the remaining N-1 combined with the “parity” disk contain enough information to reconstruct the required data." msgstr "Aquest nivell RAID, no gaire utilitzat, utilitza N discos per emmagatzemar dades útils, i un disc extra per emmagatzemar informació de redundància. Si aquest disc falla, el sistema pot reconstruir el seu contingut a partir dels altres N. Si un dels N discos de dades falla, els N-1 restants combinats amb el disc de “paritat” conté prou informació per reconstruir les dades necessàries." #, fuzzy #| msgid "installationautomated installation" msgid "RAID4" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDparity" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID-4 isn't too expensive since it only involves a one-in-N increase in costs and has no noticeable impact on read performance, but writes are slowed down. Furthermore, since a write to any of the N disks also involves a write to the parity disk, the latter sees many more writes than the former, and its lifespan can shorten dramatically as a consequence. Data on a RAID-4 array is safe only up to one failed disk (of the N+1)." msgstr "RAID-4 no és massa costós, ja que només implica un augment d'un sobre N en els costos i no té cap impacte notable en el rendiment de lectura, però les escriptures s'alenteixen. A més, ja que una escriptura a qualsevol dels N discs també implica una escriptura al disc de paritat, aquest últim veu moltes més escriptures que l'anterior, i la seva vida útil pot escurçar-se dramàticament com a conseqüència. Les dades d'un conjunt RAID-4 són segures només fins a un sol disc espatllat (dels N+1)." msgid "RAID-5" msgstr "RAID-5" msgid "RAID-5 addresses the asymmetry issue of RAID-4: parity blocks are spread over all of the N+1 disks, with no single disk having a particular role." msgstr "RAID-5 resol el problema de l'asimetria de RAID-4: els blocs de paritat s'escampen en tots els N+1 discos, sense que cap disc tingui un paper particular." #, fuzzy #| msgid "installationautomated installation" msgid "RAID5" msgstr "instal·lacióinstal·lació automatitzada" msgid "Read and write performance are identical to RAID-4. Here again, the system stays functional with up to one failed disk (of the N+1), but no more." msgstr "El rendiment de lectura i escriptura és idèntic a RAID-4. Aquí de nou, el sistema roman funcional amb fins a un sol disc espatllat (dels N+1), però no més." msgid "RAID-6" msgstr "RAID-6" msgid "RAID-6 can be considered an extension of RAID-5, where each series of N blocks involves two redundancy blocks, and each such series of N+2 blocks is spread over N+2 disks." msgstr "RAID-6 es pot considerar una extensió de RAID-5, on cada sèrie d'N blocs implica dos blocs de redundància, i cada sèrie d'N+2 blocs es distribueix per N+2 discos." #, fuzzy #| msgid "installationautomated installation" msgid "RAID6" msgstr "instal·lacióinstal·lació automatitzada" msgid "This RAID level is slightly more expensive than the previous two, but it brings some extra safety since up to two drives (of the N+2) can fail without compromising data availability. The counterpart is that write operations now involve writing one data block and two redundancy blocks, which makes them even slower." msgstr "Aquest nivell RAID és lleugerament més car que els dos anteriors, però aporta una mica de seguretat addicional, ja que fins a dues unitats (de les N+2) poden fallar sense comprometre la disponibilitat de dades. La contrapartida és que les operacions d'escriptura ara impliquen escriure un bloc de dades i dos blocs de redundància, la qual cosa els fa encara més lents." msgid "RAID-1+0" msgstr "RAID-1+0" msgid "This isn't strictly speaking, a RAID level, but a stacking of two RAID groupings. Starting from 2×N disks, one first sets them up by pairs into N RAID-1 volumes; these N volumes are then aggregated into one, either by “linear RAID” or (increasingly) by LVM. This last case goes farther than pure RAID, but there is no problem with that." msgstr "Això no és, estrictament parlant, un nivell RAID, sinó una combinació de dos grups RAID. A partir de 2xN discos, hom primer els estableix per parells en N volums RAID-1; aquests N volums s'agregaran en un, ja sigui amb RAID lineal o (cada cop més) amb LVM. Aquest últim cas va més enllà del RAID estricte, però no hi ha cap problema amb això." #, fuzzy #| msgid "installationautomated installation" msgid "RAID1+0" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID-1+0 can survive multiple disk failures: up to N in the 2×N array described above, provided that at least one disk keeps working in each of the RAID-1 pairs." msgstr "RAID-1+0 pot sobreviure a múltiples fallades de disc: fins a N en la matriu 2xN descrita anteriorment, sempre que almenys un disc continuï funcional en cadascun dels parells RAID-1." msgid "GOING FURTHER RAID-10" msgstr "ANANT MÉS ENLLÀ RAID-10" #, fuzzy #| msgid "installationautomated installation" msgid "RAID10" msgstr "instal·lacióinstal·lació automatitzada" msgid "RAID-10 is generally considered a synonym of RAID-1+0, but a Linux specificity makes it actually a generalization. This setup allows a system where each block is stored on two different disks, even with an odd number of disks, the copies being spread out along a configurable model." msgstr "El RAID-10 és generalment considerat un sinònim de RAID-1+0, però una especificat de Linux fa que sigui realment una generalització. Aquesta configuració permet un sistema on cada bloc s'emmagatzema en dos discs diferents, fins i tot amb un nombre senar de discos, i les còpies s'estenen al llarg d'un model configurable." msgid "Performances will vary depending on the chosen repartition model and redundancy level, and of the workload of the logical volume." msgstr "El rendiment variarà depenent del model de repartició i el nivell de redundància escollits, i de la càrrega de treball del volum lògic." msgid "Obviously, the RAID level will be chosen according to the constraints and requirements of each application. Note that a single computer can have several distinct RAID arrays with different configurations." msgstr "Òbviament, el nivell RAID es triarà d'acord amb les restriccions i requisits de cada aplicació. Tingueu en compte que un sol ordinador pot tenir diversos conjunts RAID amb diferents configuracions." msgid "Setting up RAID" msgstr "Configuració del RAID" msgid "mdadm" msgstr "mdadm" #, fuzzy #| msgid "installationautomated installation" msgid "RAIDcreate" msgstr "instal·lacióinstal·lació automatitzada" msgid "Setting up RAID volumes requires the mdadm package; it provides the mdadm command, which allows creating and manipulating RAID arrays, as well as scripts and tools integrating it to the rest of the system, including the monitoring system." msgstr "La configuració de volums RAID requereix el paquet mdadm; aquest proporciona la comanda mdadm, que permet crear i manipular conjunts RAID, així com scripts i eines que els integren a la resta del sistema, inclòs el sistema de monitorització." msgid "Our example will be a server with a number of disks, some of which are already used, the rest being available to setup RAID. We initially have the following disks and partitions:" msgstr "El nostre exemple serà un servidor amb una sèrie de discos, alguns dels quals ja s'utilitzen, i la resta estarà disponible per configurar el RAID. Inicialment tenim els següents discos i particions:" msgid "the sdb disk, 4 GB, is entirely available;" msgstr "el disc sdb, de 4 GB, està tot disponible;" msgid "the sdc disk, 4 GB, is also entirely available;" msgstr "el disc sdc, de 4 GB, està també disponible completament;" msgid "on the sdd disk, only partition sdd2 (about 4 GB) is available;" msgstr "al disc sdd només hi ha disponible la partició sdd2 (al voltant de 4 GB);" msgid "finally, a sde disk, still 4 GB, entirely available." msgstr "finalment, un disc sde, també de 4 GB, completament disponible." msgid "NOTE Identifying existing RAID volumes" msgstr "NOTA Identificació de volums RAID existents" #, fuzzy #| msgid "installationautomated installation" msgid "/proc/proc/mdstat" msgstr "instal·lacióinstal·lació automatitzada" msgid "The /proc/mdstat file lists existing volumes and their states. When creating a new RAID volume, care should be taken not to name it the same as an existing volume." msgstr "El fitxer /proc/mdstat llista els volums existents i els seus estats. En crear un nou volum RAID s'ha de tenir cura de no anomenar-lo igual que un volum ja existent." msgid "We're going to use these physical elements to build two volumes, one RAID-0 and one mirror (RAID-1). Let's start with the RAID-0 volume:" msgstr "Farem servir aquests elements físics per construir dos volums, un RAID-0 i un mirall (RAID-1). Comencem amb el volum RAID-0:" #, fuzzy #| msgid "" #| "# mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc\n" #| "mdadm: Defaulting to version 1.2 metadata\n" #| "mdadm: array /dev/md0 started.\n" #| "# mdadm --query /dev/md0\n" #| "/dev/md0: 8.00GiB raid0 2 devices, 0 spares. Use mdadm --detail for more detail.\n" #| "# mdadm --detail /dev/md0\n" #| "/dev/md0:\n" #| " Version : 1.2\n" #| " Creation Time : Tue Jun 25 08:47:49 2019\n" #| " Raid Level : raid0\n" #| " Array Size : 8378368 (7.99 GiB 8.58 GB)\n" #| " Raid Devices : 2\n" #| " Total Devices : 2\n" #| " Persistence : Superblock is persistent\n" #| "\n" #| " Update Time : Tue Jun 25 08:47:49 2019\n" #| " State : clean \n" #| " Active Devices : 2\n" #| " Working Devices : 2\n" #| " Failed Devices : 0\n" #| " Spare Devices : 0\n" #| "\n" #| " Chunk Size : 512K\n" #| "\n" #| "Consistency Policy : none\n" #| "\n" #| " Name : mirwiz:0 (local to host debian)\n" #| " UUID : 146e104f:66ccc06d:71c262d7:9af1fbc7\n" #| " Events : 0\n" #| "\n" #| " Number Major Minor RaidDevice State\n" #| " 0 8 32 0 active sync /dev/sdb\n" #| " 1 8 48 1 active sync /dev/sdc\n" #| "# mkfs.ext4 /dev/md0\n" #| "mke2fs 1.44.5 (15-Dec-2018)\n" #| "Discarding device blocks: done \n" #| "Creating filesystem with 2094592 4k blocks and 524288 inodes\n" #| "Filesystem UUID: 413c3dff-ab5e-44e7-ad34-cf1a029cfe98\n" #| "Superblock backups stored on blocks: \n" #| "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632\n" #| "\n" #| "Allocating group tables: done \n" #| "Writing inode tables: done \n" #| "Creating journal (16384 blocks): done\n" #| "Writing superblocks and filesystem accounting information: done \n" #| "\n" #| "# mkdir /srv/raid-0\n" #| "# mount /dev/md0 /srv/raid-0\n" #| "# df -h /srv/raid-0\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/md0 7.9G 36M 7.4G 1% /srv/raid-0\n" #| "" msgid "" "# mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc\n" "mdadm: Defaulting to version 1.2 metadata\n" "mdadm: array /dev/md0 started.\n" "# mdadm --query /dev/md0\n" "/dev/md0: 7.99GiB raid0 2 devices, 0 spares. Use mdadm --detail for more detail.\n" "# mdadm --detail /dev/md0\n" "/dev/md0:\n" " Version : 1.2\n" " Creation Time : Mon Feb 28 01:54:24 2022\n" " Raid Level : raid0\n" " Array Size : 8378368 (7.99 GiB 8.58 GB)\n" " Raid Devices : 2\n" " Total Devices : 2\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Mon Feb 28 01:54:24 2022\n" " State : clean \n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 0\n" " Spare Devices : 0\n" "\n" " Layout : -unknown-\n" " Chunk Size : 512K\n" "\n" "Consistency Policy : none\n" "\n" " Name : debian:0 (local to host debian)\n" " UUID : a75ac628:b384c441:157137ac:c04cd98c\n" " Events : 0\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 0 0 active sync /dev/sdb\n" " 1 8 16 1 active sync /dev/sdc\n" "# mkfs.ext4 /dev/md0\n" "mke2fs 1.46.2 (28-Feb-2021)\n" "Discarding device blocks: done \n" "Creating filesystem with 2094592 4k blocks and 524288 inodes\n" "Filesystem UUID: ef077204-c477-4430-bf01-52288237bea0\n" "Superblock backups stored on blocks: \n" "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632\n" "\n" "Allocating group tables: done \n" "Writing inode tables: done \n" "Creating journal (16384 blocks): done\n" "Writing superblocks and filesystem accounting information: done \n" "\n" "# mkdir /srv/raid-0\n" "# mount /dev/md0 /srv/raid-0\n" "# df -h /srv/raid-0\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/md0 7.8G 24K 7.4G 1% /srv/raid-0\n" "" msgstr "" "# mdadm --create /dev/md0 --level=0 --raid-devices=2 /dev/sdb /dev/sdc\n" "mdadm: Defaulting to version 1.2 metadata\n" "mdadm: array /dev/md0 started.\n" "# mdadm --query /dev/md0\n" "/dev/md0: 8.00GiB raid0 2 devices, 0 spares. Use mdadm --detail for more detail.\n" "# mdadm --detail /dev/md0\n" "/dev/md0:\n" " Version : 1.2\n" " Creation Time : Tue Jun 25 08:47:49 2019\n" " Raid Level : raid0\n" " Array Size : 8378368 (7.99 GiB 8.58 GB)\n" " Raid Devices : 2\n" " Total Devices : 2\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Tue Jun 25 08:47:49 2019\n" " State : clean \n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 0\n" " Spare Devices : 0\n" "\n" " Chunk Size : 512K\n" "\n" "Consistency Policy : none\n" "\n" " Name : mirwiz:0 (local to host debian)\n" " UUID : 146e104f:66ccc06d:71c262d7:9af1fbc7\n" " Events : 0\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 32 0 active sync /dev/sdb\n" " 1 8 48 1 active sync /dev/sdc\n" "# mkfs.ext4 /dev/md0\n" "mke2fs 1.44.5 (15-Dec-2018)\n" "Discarding device blocks: done \n" "Creating filesystem with 2094592 4k blocks and 524288 inodes\n" "Filesystem UUID: 413c3dff-ab5e-44e7-ad34-cf1a029cfe98\n" "Superblock backups stored on blocks: \n" "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632\n" "\n" "Allocating group tables: done \n" "Writing inode tables: done \n" "Creating journal (16384 blocks): done\n" "Writing superblocks and filesystem accounting information: done \n" "\n" "# mkdir /srv/raid-0\n" "# mount /dev/md0 /srv/raid-0\n" "# df -h /srv/raid-0\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/md0 7.9G 36M 7.4G 1% /srv/raid-0\n" "" msgid "The mdadm --create command requires several parameters: the name of the volume to create (/dev/md*, with MD standing for Multiple Device), the RAID level, the number of disks (which is compulsory despite being mostly meaningful only with RAID-1 and above), and the physical drives to use. Once the device is created, we can use it like we'd use a normal partition, create a filesystem on it, mount that filesystem, and so on. Note that our creation of a RAID-0 volume on md0 is nothing but coincidence, and the numbering of the array doesn't need to be correlated to the chosen amount of redundancy. It is also possible to create named RAID arrays, by giving mdadm parameters such as /dev/md/linear instead of /dev/md0." msgstr "La comanda mdadm --create requereix diversos paràmetres: el nom del volum a crear (/dev/md*, amb MD representant «Multiple Device» o “dispositiu múltiple”), el nivell RAID, el nombre de discos (que és obligatori tot i ser sobretot significatiu només amb RAID-1 i superiors), i les unitats físiques a utilitzar. Una vegada creat el dispositiu, es pot utilitzar com es fa servir una partició normal, crear-hi un sistema de fitxers, muntar aquest sistema de fitxers, etc. Tingueu en compte que la creació d'un volum RAID-0 a md0 no és més que una coincidència, i la numeració de conjunt no necessita estar correlacionada amb la quantitat de redundància triada. També és possible crear conjunts RAID amb nom, proporcionant a mdadm paràmetres com ara /dev/md/linear en lloc de /dev/md0." msgid "Creation of a RAID-1 follows a similar fashion, the differences only being noticeable after the creation:" msgstr "La creació d'un RAID-1 segueix un estil similar, les diferències només es poden observar després de la creació:" #, fuzzy #| msgid "" #| "# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd2 /dev/sde\n" #| "mdadm: Note: this array has metadata at the start and\n" #| " may not be suitable as a boot device. If you plan to\n" #| " store '/boot' on this device please ensure that\n" #| " your boot-loader understands md/v1.x metadata, or use\n" #| " --metadata=0.90\n" #| "mdadm: largest drive (/dev/sdd2) exceeds size (4192192K) by more than 1%\n" #| "Continue creating array? y\n" #| "mdadm: Defaulting to version 1.2 metadata\n" #| "mdadm: array /dev/md1 started.\n" #| "# mdadm --query /dev/md1\n" #| "/dev/md1: 4.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| " Version : 1.2\n" #| " Creation Time : Tue Jun 25 10:21:22 2019\n" #| " Raid Level : raid1\n" #| " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" #| " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" #| " Raid Devices : 2\n" #| " Total Devices : 2\n" #| " Persistence : Superblock is persistent\n" #| "\n" #| " Update Time : Tue Jun 25 10:22:03 2019\n" #| " State : clean, resyncing \n" #| " Active Devices : 2\n" #| " Working Devices : 2\n" #| " Failed Devices : 0\n" #| " Spare Devices : 0\n" #| "\n" #| "Consistency Policy : resync\n" #| "\n" #| " Resync Status : 93% complete\n" #| "\n" #| " Name : mirwiz:1 (local to host debian)\n" #| " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" #| " Events : 16\n" #| "\n" #| " Number Major Minor RaidDevice State\n" #| " 0 8 64 0 active sync /dev/sdd2\n" #| " 1 8 80 1 active sync /dev/sde\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| "[...]\n" #| " State : clean\n" #| "[...]\n" #| "" msgid "" "# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd2 /dev/sde\n" "mdadm: Note: this array has metadata at the start and\n" " may not be suitable as a boot device. If you plan to\n" " store '/boot' on this device please ensure that\n" " your boot-loader understands md/v1.x metadata, or use\n" " --metadata=0.90\n" "mdadm: largest drive (/dev/sdc2) exceeds size (4189184K) by more than 1%\n" "Continue creating array? y\n" "mdadm: Defaulting to version 1.2 metadata\n" "mdadm: array /dev/md1 started.\n" "# mdadm --query /dev/md1\n" "/dev/md1: 4.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" " Version : 1.2\n" " Creation Time : Mon Feb 28 02:07:48 2022\n" " Raid Level : raid1\n" " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" " Raid Devices : 2\n" " Total Devices : 2\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Mon Feb 28 02:08:09 2022\n" " State : clean, resync\n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 0\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Rebuild Status : 13% complete\n" "\n" " Name : debian:1 (local to host debian)\n" " UUID : 2dfb7fd5:e09e0527:0b5a905a:8334adb8\n" " Events : 17\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 34 0 active sync /dev/sdd2\n" " 1 8 48 1 active sync /dev/sde\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " State : clean\n" "[...]\n" "" msgstr "" "# mdadm --create /dev/md1 --level=1 --raid-devices=2 /dev/sdd2 /dev/sde\n" "mdadm: Note: this array has metadata at the start and\n" " may not be suitable as a boot device. If you plan to\n" " store '/boot' on this device please ensure that\n" " your boot-loader understands md/v1.x metadata, or use\n" " --metadata=0.90\n" "mdadm: largest drive (/dev/sdd2) exceeds size (4192192K) by more than 1%\n" "Continue creating array? y\n" "mdadm: Defaulting to version 1.2 metadata\n" "mdadm: array /dev/md1 started.\n" "# mdadm --query /dev/md1\n" "/dev/md1: 4.00GiB raid1 2 devices, 0 spares. Use mdadm --detail for more detail.\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" " Version : 1.2\n" " Creation Time : Tue Jun 25 10:21:22 2019\n" " Raid Level : raid1\n" " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" " Raid Devices : 2\n" " Total Devices : 2\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Tue Jun 25 10:22:03 2019\n" " State : clean, resyncing \n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 0\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Resync Status : 93% complete\n" "\n" " Name : mirwiz:1 (local to host debian)\n" " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" " Events : 16\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 64 0 active sync /dev/sdd2\n" " 1 8 80 1 active sync /dev/sde\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " State : clean\n" "[...]\n" "" msgid "TIP RAID, disks and partitions" msgstr "SUGGERIMENT RAID, discos i particions" #, fuzzy #| msgid "As illustrated by our example, RAID devices can be constructed out of disk partitions, and do not require full disks." msgid "As illustrated by our example, RAID devices can be constructed out of disk partitions as well, and do not require full disks." msgstr "Com il·lustra el nostre exemple, els dispositius RAID es poden construir a partir de particions de disc, i no requereixen discos sencers." msgid "A few remarks are in order. First, mdadm notices that the physical elements have different sizes; since this implies that some space will be lost on the bigger element, a confirmation is required." msgstr "Hi ha algunes observacions a fer. En primer lloc, mdadm observa que els elements físics tenen mides diferents; ja que això implica que algun espai es perdrà en l'element més gran, es requereix una confirmació." msgid "More importantly, note the state of the mirror. The normal state of a RAID mirror is that both disks have exactly the same contents. However, nothing guarantees this is the case when the volume is first created. The RAID subsystem will therefore provide that guarantee itself, and there will be a synchronization phase as soon as the RAID device is created. After some time (the exact amount will depend on the actual size of the disks…), the RAID array switches to the “active” or “clean” state. Note that during this reconstruction phase, the mirror is in a degraded mode, and redundancy isn't assured. A disk failing during that risk window could lead to losing all the data. Large amounts of critical data, however, are rarely stored on a freshly created RAID array before its initial synchronization. Note that even in degraded mode, the /dev/md1 is usable, and a filesystem can be created on it, as well as some data copied on it." msgstr "I cosa que és més important, noteu l'estat del mirall. L'estat normal d'un mirall RAID és que ambdós discos tinguin exactament el mateix contingut. No obstant això, res garanteix que sigui així quan es crea el volum per primera vegada. El subsistema RAID, per tant, proporcionarà aquesta garantia per si mateix i hi haurà una fase de sincronització tan aviat com es creï el dispositiu RAID. Després d'un cert temps (la quantitat exacta dependrà de la mida real dels discos...), la matriu RAID canviarà a l'estat «active» (actiu) o «clean» (net). Tingueu en compte que durant aquesta fase de reconstrucció el mirall està en mode degradat, i la redundància no està assegurat. Un disc que falli durant aquesta finestra de risc podria provocar la pèrdua de totes les dades. Grans quantitats de dades crítiques, però, rarament s'emmagatzemen en una matriu RAID creada just abans de la seva sincronització inicial. Tingueu en compte que fins i tot en mode degradat /dev/md1 és utilitzable, s'hi pot crear un sistema de fitxers, i així com també copiar-hi dades." msgid "TIP Starting a mirror in degraded mode" msgstr "SUGGERIMENT Iniciar un mirall en mode degradat" msgid "Sometimes two disks are not immediately available when one wants to start a RAID-1 mirror, for instance because one of the disks one plans to include is already used to store the data one wants to move to the array. In such circumstances, it is possible to deliberately create a degraded RAID-1 array by passing missing instead of a device file as one of the arguments to mdadm. Once the data have been copied to the “mirror”, the old disk can be added to the array. A synchronization will then take place, giving us the redundancy that was wanted in the first place." msgstr "A vegades, dos discos no estan immediatament disponibles quan es vol iniciar un mirall RAID-1, per exemple perquè un dels discos que es preveu incloure ja s'utilitza per emmagatzemar les dades que es vol moure a la matriu. En aquestes circumstàncies, és possible crear deliberadament una matriu RAID-1 degradada passant «missing» (falta) en lloc d'un fitxer de dispositiu com un dels arguments a mdadm. Una vegada que les dades s'han copiat al “mirall”, el disc antic es pot afegir a la matriu. Llavors es produirà una sincronització que donarà la redundància que es vol en primer lloc." msgid "TIP Setting up a mirror without synchronization" msgstr "SUGGERIMENT Configuració d'un mirall sense sincronització" msgid "RAID-1 volumes are often created to be used as a new disk, often considered blank. The actual initial contents of the disk is therefore not very relevant, since one only needs to know that the data written after the creation of the volume, in particular the filesystem, can be accessed later." msgstr "Els volums RAID-1 sovint es creen per ser utilitzats com un nou disc, sovint considerat en blanc. Per tant, el contingut inicial del disc no és molt rellevant, ja que només cal saber que les dades escrites després de la creació del volum, en particular el sistema de fitxers, es poden accedir més tard." msgid "One might therefore wonder about the point of synchronizing both disks at creation time. Why care whether the contents are identical on zones of the volume that we know will only be read after we have written to them?" msgstr "Per tant, cal preguntar-se pel sentit de sincronitzar els dos discos en el moment de la creació. Per què preocupar-se si el contingut és idèntic en zones del volum que sabem que només es llegiran després d'haver-hi escrit?" msgid "Fortunately, this synchronization phase can be avoided by passing the --assume-clean option to mdadm. However, this option can lead to surprises in cases where the initial data will be read (for instance if a filesystem is already present on the physical disks), which is why it isn't enabled by default." msgstr "Afortunadament, aquesta fase de sincronització es pot evitar passant l'opció --assume-clean a mdadm. No obstant això, aquesta opció pot portar a sorpreses en els casos en què les dades inicials es llegiran (per exemple si un sistema de fitxers ja està present en els discos físics), per la qual cosa no està habilitat per defecte." #, fuzzy #| msgid "installationautomated installation" msgid "RAIDfailing" msgstr "instal·lacióinstal·lació automatitzada" msgid "Now let's see what happens when one of the elements of the RAID-1 array fails. mdadm, in particular its --fail option, allows simulating such a disk failure:" msgstr "Ara vegem què passa quan un dels elements del conjunt RAID-1 falla. mdadm, en particular la seva opció --fail, permet simular un error de disc d'aquest tipus:" #, fuzzy #| msgid "" #| "# mdadm /dev/md1 --fail /dev/sde\n" #| "mdadm: set /dev/sde faulty in /dev/md1\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| "[...]\n" #| " Update Time : Tue Jun 25 11:03:44 2019\n" #| " State : clean, degraded \n" #| " Active Devices : 1\n" #| " Working Devices : 1\n" #| " Failed Devices : 1\n" #| " Spare Devices : 0\n" #| "\n" #| "Consistency Policy : resync\n" #| "\n" #| " Name : mirwiz:1 (local to host debian)\n" #| " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" #| " Events : 20\n" #| "\n" #| " Number Major Minor RaidDevice State\n" #| " - 0 0 0 removed\n" #| " 1 8 80 1 active sync /dev/sdd2\n" #| "\n" #| " 0 8 64 - faulty /dev/sde" msgid "" "# mdadm /dev/md1 --fail /dev/sde\n" "mdadm: set /dev/sde faulty in /dev/md1\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" " Version : 1.2\n" " Creation Time : Mon Feb 28 02:07:48 2022\n" " Raid Level : raid1\n" " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" " Raid Devices : 2\n" " Total Devices : 2\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Mon Feb 28 02:15:34 2022\n" " State : clean, degraded \n" " Active Devices : 1\n" " Working Devices : 1\n" " Failed Devices : 1\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Name : debian:1 (local to host debian)\n" " UUID : 2dfb7fd5:e09e0527:0b5a905a:8334adb8\n" " Events : 19\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 34 0 active sync /dev/sdd2\n" " - 0 0 1 removed\n" "\n" " 1 8 48 - faulty /dev/sde\n" "" msgstr "" "# mdadm /dev/md1 --fail /dev/sde\n" "mdadm: set /dev/sde faulty in /dev/md1\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " Update Time : Tue Jun 25 11:03:44 2019\n" " State : clean, degraded \n" " Active Devices : 1\n" " Working Devices : 1\n" " Failed Devices : 1\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Name : mirwiz:1 (local to host debian)\n" " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" " Events : 20\n" "\n" " Number Major Minor RaidDevice State\n" " - 0 0 0 removed\n" " 1 8 80 1 active sync /dev/sdd2\n" "\n" " 0 8 64 - faulty /dev/sde" msgid "The contents of the volume are still accessible (and, if it is mounted, the applications don't notice a thing), but the data safety isn't assured anymore: should the sdd disk fail in turn, the data would be lost. We want to avoid that risk, so we'll replace the failed disk with a new one, sdf:" msgstr "El contingut del volum encara és accessible (i, si està muntat, les aplicacions no se n'adonen de res), però la seguretat de les dades ja no està assegurada: si el disc sdd falla, les dades es perdrien. Volem evitar aquest risc, així que substituirem el disc espatllat per un nou, sdf:" #, fuzzy #| msgid "" #| "# mdadm /dev/md1 --add /dev/sdf\n" #| "mdadm: added /dev/sdf\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| "[...]\n" #| " Raid Devices : 2\n" #| " Total Devices : 3\n" #| " Persistence : Superblock is persistent\n" #| "\n" #| " Update Time : Tue Jun 25 11:09:42 2019\n" #| " State : clean, degraded, recovering \n" #| " Active Devices : 1\n" #| " Working Devices : 2\n" #| " Failed Devices : 1\n" #| " Spare Devices : 1\n" #| "\n" #| "Consistency Policy : resync\n" #| "\n" #| " Rebuild Status : 27% complete\n" #| "\n" #| " Name : mirwiz:1 (local to host debian)\n" #| " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" #| " Events : 26\n" #| "\n" #| " Number Major Minor RaidDevice State\n" #| " 2 8 96 0 spare rebuilding /dev/sdf\n" #| " 1 8 80 1 active sync /dev/sdd2\n" #| "\n" #| " 0 8 64 - faulty /dev/sde\n" #| "# [...]\n" #| "[...]\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| "[...]\n" #| " Update Time : Tue Jun 25 11:10:47 2019\n" #| " State : clean \n" #| " Active Devices : 2\n" #| " Working Devices : 2\n" #| " Failed Devices : 1\n" #| " Spare Devices : 0\n" #| "\n" #| "Consistency Policy : resync\n" #| "\n" #| " Name : mirwiz:1 (local to host debian)\n" #| " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" #| " Events : 39\n" #| "\n" #| " Number Major Minor RaidDevice State\n" #| " 2 8 96 0 active sync /dev/sdd2\n" #| " 1 8 80 1 active sync /dev/sdf\n" #| "\n" #| " 0 8 64 - faulty /dev/sde" msgid "" "# mdadm /dev/md1 --add /dev/sdf\n" "mdadm: added /dev/sdf\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" " Version : 1.2\n" " Creation Time : Mon Feb 28 02:07:48 2022\n" " Raid Level : raid1\n" " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" " Raid Devices : 2\n" " Total Devices : 3\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Mon Feb 28 02:25:34 2022\n" " State : clean, degraded, recovering \n" " Active Devices : 1\n" " Working Devices : 2\n" " Failed Devices : 1\n" " Spare Devices : 1\n" "\n" "Consistency Policy : resync\n" "\n" " Rebuild Status : 47% complete\n" "\n" " Name : debian:1 (local to host debian)\n" " UUID : 2dfb7fd5:e09e0527:0b5a905a:8334adb8\n" " Events : 39\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 34 0 active sync /dev/sdd2\n" " 2 8 64 1 spare rebuilding /dev/sdf\n" "\n" " 1 8 48 - faulty /dev/sde\n" "# [...]\n" "[...]\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" " Version : 1.2\n" " Creation Time : Mon Feb 28 02:07:48 2022\n" " Raid Level : raid1\n" " Array Size : 4189184 (4.00 GiB 4.29 GB)\n" " Used Dev Size : 4189184 (4.00 GiB 4.29 GB)\n" " Raid Devices : 2\n" " Total Devices : 3\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Mon Feb 28 02:25:34 2022\n" " State : clean\n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 1\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Name : debian:1 (local to host debian)\n" " UUID : 2dfb7fd5:e09e0527:0b5a905a:8334adb8\n" " Events : 41\n" "\n" " Number Major Minor RaidDevice State\n" " 0 8 34 0 active sync /dev/sdd2\n" " 2 8 64 1 active sync /dev/sdf\n" "\n" " 1 8 48 - faulty /dev/sde\n" "" msgstr "" "# mdadm /dev/md1 --add /dev/sdf\n" "mdadm: added /dev/sdf\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " Raid Devices : 2\n" " Total Devices : 3\n" " Persistence : Superblock is persistent\n" "\n" " Update Time : Tue Jun 25 11:09:42 2019\n" " State : clean, degraded, recovering \n" " Active Devices : 1\n" " Working Devices : 2\n" " Failed Devices : 1\n" " Spare Devices : 1\n" "\n" "Consistency Policy : resync\n" "\n" " Rebuild Status : 27% complete\n" "\n" " Name : mirwiz:1 (local to host debian)\n" " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" " Events : 26\n" "\n" " Number Major Minor RaidDevice State\n" " 2 8 96 0 spare rebuilding /dev/sdf\n" " 1 8 80 1 active sync /dev/sdd2\n" "\n" " 0 8 64 - faulty /dev/sde\n" "# [...]\n" "[...]\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " Update Time : Tue Jun 25 11:10:47 2019\n" " State : clean \n" " Active Devices : 2\n" " Working Devices : 2\n" " Failed Devices : 1\n" " Spare Devices : 0\n" "\n" "Consistency Policy : resync\n" "\n" " Name : mirwiz:1 (local to host debian)\n" " UUID : 7d123734:9677b7d6:72194f7d:9050771c\n" " Events : 39\n" "\n" " Number Major Minor RaidDevice State\n" " 2 8 96 0 active sync /dev/sdd2\n" " 1 8 80 1 active sync /dev/sdf\n" "\n" " 0 8 64 - faulty /dev/sde" msgid "Here again, the kernel automatically triggers a reconstruction phase during which the volume, although still accessible, is in a degraded mode. Once the reconstruction is over, the RAID array is back to a normal state. One can then tell the system that the sde disk is about to be removed from the array, so as to end up with a classical RAID mirror on two disks:" msgstr "Aquí de nou, el nucli desencadena automàticament una fase de reconstrucció durant la qual el volum, encara que encara és accessible, es troba en mode degradat. Una vegada que la reconstrucció ha acabat, el conjunt RAID torna a un estat normal. Llavors es pot dir al sistema que el disc sde està a punt de ser eliminat del conjunt, per tal d'acabar amb un mirall RAID clàssic en dos discos:" #, fuzzy #| msgid "" #| "# mdadm /dev/md1 --remove /dev/sde\n" #| "mdadm: hot removed /dev/sde from /dev/md1\n" #| "# mdadm --detail /dev/md1\n" #| "/dev/md1:\n" #| "[...]\n" #| " Number Major Minor RaidDevice State\n" #| " 2 8 96 0 active sync /dev/sdd2\n" #| " 1 8 80 1 active sync /dev/sdf" msgid "" "# mdadm /dev/md1 --remove /dev/sde\n" "mdadm: hot removed /dev/sde from /dev/md1\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " Number Major Minor RaidDevice State\n" " 0 8 34 0 active sync /dev/sdd2\n" " 2 8 64 1 active sync /dev/sdf\n" "" msgstr "" "# mdadm /dev/md1 --remove /dev/sde\n" "mdadm: hot removed /dev/sde from /dev/md1\n" "# mdadm --detail /dev/md1\n" "/dev/md1:\n" "[...]\n" " Number Major Minor RaidDevice State\n" " 2 8 96 0 active sync /dev/sdd2\n" " 1 8 80 1 active sync /dev/sdf" msgid "From then on, the drive can be physically removed when the server is next switched off, or even hot-removed when the hardware configuration allows hot-swap. Such configurations include some SCSI controllers, most SATA disks, and external drives operating on USB or Firewire." msgstr "A partir d'aleshores, la unitat es pot retirar físicament quan el servidor s'apagui, o fins i tot es pot retirar en calent si la configuració del maquinari permet la desconnexió en calent. Aquestes configuracions inclouen alguns controladors SCSI, la majoria de discos SATA i unitats externes que operen amb USB o Firewire." msgid "Backing up the Configuration" msgstr "Fent còpies de seguretat de la configuració" #, fuzzy #| msgid "Most of the meta-data concerning RAID volumes are saved directly on the disks that make up these arrays, so that the kernel can detect the arrays and their components and assemble them automatically when the system starts up. However, backing up this configuration is encouraged, because this detection isn't fail-proof, and it is only expected that it will fail precisely in sensitive circumstances. In our example, if the sde disk failure had been real (instead of simulated) and the system had been restarted without removing this sde disk, this disk could start working again due to having been probed during the reboot. The kernel would then have three physical elements, each claiming to contain half of the same RAID volume. Another source of confusion can come when RAID volumes from two servers are consolidated onto one server only. If these arrays were running normally before the disks were moved, the kernel would be able to detect and reassemble the pairs properly; but if the moved disks had been aggregated into an md1 on the old server, and the new server already has an md1, one of the mirrors would be renamed." msgid "Most of the meta-data concerning RAID volumes are saved directly on the disks that make up these arrays, so that the kernel can detect the arrays and their components and assemble them automatically when the system starts up. However, backing up this configuration is encouraged, because this detection isn't fail-proof, and it is only expected that it will fail precisely in sensitive circumstances. In our example, if the sde disk failure had been real (instead of simulated) and the system had been restarted without removing this sde disk, this disk could start working again due to having been probed during the reboot. The kernel would then have three physical elements, each claiming to contain half of the same RAID volume. In reality this leads to the RAID starting from the individual disks alternately - distributing the data also alternately, depending on which disk started the RAID in degraded mode Another source of confusion can come when RAID volumes from two servers are consolidated onto one server only. If these arrays were running normally before the disks were moved, the kernel would be able to detect and reassemble the pairs properly; but if the moved disks had been aggregated into an md1 on the old server, and the new server already has an md1, one of the mirrors would be renamed." msgstr "La majoria de les metadades relatives als volums RAID es guarden directament en els discos que componen aquestes volums, de manera que el nucli pot detectar els volums i els seus components i muntar-los automàticament quan el sistema s'inicia. No obstant això, es recomana la còpia de seguretat d'aquesta configuració, perquè aquesta detecció no és a prova de fallades, i només s'espera que falli precisament en circumstàncies sensibles. En el nostre exemple, si la fallada del disc sde hagués estat real (en lloc de simulada) i el sistema s'hagués reiniciat sense eliminar aquest disc sde, aquest disc podria començar a funcionar de nou a causa d'haver estat detectat durant el reinici. El nucli tindria llavors tres elements físics, cadascun reclamant contenir la meitat del mateix volum RAID. Una altra font de confusió pot arribar quan els volums RAID de dos servidors es consoliden en un sol servidor. Si aquests volums s'executessin normalment abans que els discos es moguessin, el nucli podria detectar i tornar a muntar les parelles correctament; però si els discs moguts s'haguessin agregat en un md1 en el servidor antic, i el nou servidor ja té un md1, un dels miralls seria reanomenat." msgid "Backing up the configuration is therefore important, if only for reference. The standard way to do it is by editing the /etc/mdadm/mdadm.conf file, an example of which is listed here:" msgstr "Per tant, és important fer una còpia de seguretat de la configuració, encara que només sigui com a referència. La forma estàndard de fer-ho és editant el fitxer /etc/mdadm/mdadm.conf, un exemple del qual es mostra aquí:" #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/mdadm/mdadm.conf" msgstr "instal·lacióinstal·lació automatitzada" msgid "mdadm configuration file" msgstr "Fitxer de configuració de mdadm" #, fuzzy #| msgid "" #| "# mdadm.conf\n" #| "#\n" #| "# !NB! Run update-initramfs -u after updating this file.\n" #| "# !NB! This will ensure that initramfs has an uptodate copy.\n" #| "#\n" #| "# Please refer to mdadm.conf(5) for information about this file.\n" #| "#\n" #| "\n" #| "# by default (built-in), scan all partitions (/proc/partitions) and all\n" #| "# containers for MD superblocks. alternatively, specify devices to scan, using\n" #| "# wildcards if desired.\n" #| "DEVICE /dev/sd*\n" #| "\n" #| "# auto-create devices with Debian standard permissions\n" #| "CREATE owner=root group=disk mode=0660 auto=yes\n" #| "\n" #| "# automatically tag new arrays as belonging to the local system\n" #| "HOMEHOST <system>\n" #| "\n" #| "# instruct the monitoring daemon where to send mail alerts\n" #| "MAILADDR root\n" #| "\n" #| "# definitions of existing MD arrays\n" #| "ARRAY /dev/md0 metadata=1.2 name=mirwiz:0 UUID=146e104f:66ccc06d:71c262d7:9af1fbc7\n" #| "ARRAY /dev/md1 metadata=1.2 name=mirwiz:1 UUID=7d123734:9677b7d6:72194f7d:9050771c\n" #| "\n" #| "# This configuration was auto-generated on Tue, 25 Jun 2019 07:54:35 -0400 by mkconf" msgid "" "\n" "\n" "# instruct the monitoring daemon where to send mail alerts\n" "MAILADDR root\n" "\n" "# definitions of existing MD arrays\n" "ARRAY /dev/md/0 metadata=1.2 UUID=a75ac628:b384c441:157137ac:c04cd98c name=debian:0\n" "ARRAY /dev/md/1 metadata=1.2 UUID=2dfb7fd5:e09e0527:0b5a905a:8334adb8 name=debian:1\n" "# This configuration was auto-generated on Mon, 28 Feb 2022 01:53:48 +0100 by mkconf\n" "]]>" msgstr "" "# mdadm.conf\n" "#\n" "# !NB! Run update-initramfs -u after updating this file.\n" "# !NB! This will ensure that initramfs has an uptodate copy.\n" "#\n" "# Please refer to mdadm.conf(5) for information about this file.\n" "#\n" "\n" "# by default (built-in), scan all partitions (/proc/partitions) and all\n" "# containers for MD superblocks. alternatively, specify devices to scan, using\n" "# wildcards if desired.\n" "DEVICE /dev/sd*\n" "\n" "# auto-create devices with Debian standard permissions\n" "CREATE owner=root group=disk mode=0660 auto=yes\n" "\n" "# automatically tag new arrays as belonging to the local system\n" "HOMEHOST <system>\n" "\n" "# instruct the monitoring daemon where to send mail alerts\n" "MAILADDR root\n" "\n" "# definitions of existing MD arrays\n" "ARRAY /dev/md0 metadata=1.2 name=mirwiz:0 UUID=146e104f:66ccc06d:71c262d7:9af1fbc7\n" "ARRAY /dev/md1 metadata=1.2 name=mirwiz:1 UUID=7d123734:9677b7d6:72194f7d:9050771c\n" "\n" "# This configuration was auto-generated on Tue, 25 Jun 2019 07:54:35 -0400 by mkconf" msgid "One of the most useful details is the DEVICE option, which lists the devices where the system will automatically look for components of RAID volumes at start-up time. In our example, we replaced the default value, partitions containers, with an explicit list of device files, since we chose to use entire disks and not only partitions, for some volumes." msgstr "Un dels detalls més útils és l'opció DEVICE, que llista els dispositius on el sistema buscarà automàticament els components dels volums RAID en el moment d'inici. En el nostre exemple, substituïm el valor per defecte, partitions containers, amb una llista explícita de fitxers de dispositius, ja que es va optar per utilitzar discos sencers i no només particions, per a alguns volums." msgid "The last two lines in our example are those allowing the kernel to safely pick which volume number to assign to which array. The metadata stored on the disks themselves are enough to re-assemble the volumes, but not to determine the volume number (and the matching /dev/md* device name)." msgstr "Les dues últimes línies en el nostre exemple són aquelles que permeten al nucli triar amb seguretat quin número de volum assignar a quina matriu. Les metadades emmagatzemades en els discos són suficients per tornar a muntar els volums, però no per determinar el número de volum (i el corresponent nom de dispositiu /dev/md*)." msgid "Fortunately, these lines can be generated automatically:" msgstr "Afortunadament, aquestes línies es poden generar automàticament:" #, fuzzy #| msgid "" #| "# mdadm --misc --detail --brief /dev/md?\n" #| "ARRAY /dev/md0 metadata=1.2 name=mirwiz:0 UUID=146e104f:66ccc06d:71c262d7:9af1fbc7\n" #| "ARRAY /dev/md1 metadata=1.2 name=mirwiz:1 UUID=7d123734:9677b7d6:72194f7d:9050771c" msgid "" "# mdadm --misc --detail --brief /dev/md?\n" "ARRAY /dev/md/0 metadata=1.2 UUID=a75ac628:b384c441:157137ac:c04cd98c name=debian:0\n" "ARRAY /dev/md/1 metadata=1.2 UUID=2dfb7fd5:e09e0527:0b5a905a:8334adb8 name=debian:1\n" "" msgstr "" "# mdadm --misc --detail --brief /dev/md?\n" "ARRAY /dev/md0 metadata=1.2 name=mirwiz:0 UUID=146e104f:66ccc06d:71c262d7:9af1fbc7\n" "ARRAY /dev/md1 metadata=1.2 name=mirwiz:1 UUID=7d123734:9677b7d6:72194f7d:9050771c" msgid "The contents of these last two lines doesn't depend on the list of disks included in the volume. It is therefore not necessary to regenerate these lines when replacing a failed disk with a new one. On the other hand, care must be taken to update the file when creating or deleting a RAID array." msgstr "El contingut d'aquestes dues últimes línies no depèn de la llista de discs inclosos al volum. Per tant, no és necessari regenerar aquestes línies quan se substitueix un disc fallit per un de nou. D'altra banda, s'ha de tenir cura d'actualitzar l'arxiu quan es crea o se suprimeix un conjunt RAID." msgid "LVM, the Logical Volume Manager, is another approach to abstracting logical volumes from their physical supports, which focuses on increasing flexibility rather than increasing reliability. LVM allows changing a logical volume transparently as far as the applications are concerned; for instance, it is possible to add new disks, migrate the data to them, and remove the old disks, without unmounting the volume." msgstr "LVM, el «Logical Volume Manager» o “Gestor de volums lògics”, és un altre enfocament de l'abstracció de volums lògics respecte dels seus suports físics, que se centra en augmentar la flexibilitat en lloc d'augmentar la fiabilitat. LVM permet canviar un volum lògic de manera transparent pel que fa a les aplicacions; per exemple, és possible afegir nous discs, migrar-hi les dades, i eliminar els discos antics, sense desmuntar el volum." msgid "LVM Concepts" msgstr "Conceptes d'LVM" #, fuzzy #| msgid "installationautomated installation" msgid "LVMconcept" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "LVM" msgid "PV" msgstr "LVM" #, fuzzy #| msgid "Logical Volume Manager" msgid "Physical VolumePV" msgstr "Logical Volume Manager" msgid "This flexibility is attained by a level of abstraction involving three concepts." msgstr "Aquesta flexibilitat s'aconsegueix mitjançant un nivell d'abstracció que implica tres conceptes." msgid "First, the PV (Physical Volume) is the entity closest to the hardware: it can be partitions on a disk, or a full disk, or even any other block device (including, for instance, a RAID array). Note that when a physical element is set up to be a PV for LVM, it should only be accessed via LVM, otherwise the system will get confused." msgstr "En primer lloc, el PV («Physical Volum» o “Volum físic”) és l'entitat més propera al maquinari: poden ser particions en un disc, o un disc complet, o fins i tot qualsevol altre dispositiu de blocs (incloent, per exemple, un volum RAID). Cal tenir en compte que quan un element físic està configurat per ser un PV d'LVM, només s'hi ha d'accedir a través de LVM, en cas contrari el sistema es confondrà." #, fuzzy #| msgid "LVM" msgid "VG" msgstr "LVM" #, fuzzy #| msgid "Logical Volume Manager" msgid "Volume GroupVG" msgstr "Logical Volume Manager" msgid "A number of PVs can be clustered in a VG (Volume Group), which can be compared to disks both virtual and extensible. VGs are abstract, and don't appear in a device file in the /dev hierarchy, so there is no risk of using them directly." msgstr "Un nombre de PVs es poden agrupar en un VG («Volum Group» o “Grup de volums”), que es pot comparar amb discs virtuals i extensibles. Els VG són abstractes, i no apareixen en un fitxer de dispositiu en la jerarquia de /dev, així que no hi ha risc d'usar-los directament." #, fuzzy #| msgid "LVM" msgid "LV" msgstr "LVM" #, fuzzy #| msgid "Logical Volume Manager" msgid "Logical VolumeLV" msgstr "Logical Volume Manager" msgid "The third kind of object is the LV (Logical Volume), which is a chunk of a VG; if we keep the VG-as-disk analogy, the LV compares to a partition. The LV appears as a block device with an entry in /dev, and it can be used as any other physical partition can be (most commonly, to host a filesystem or swap space)." msgstr "El tercer tipus d'objecte és l'LV («Logical Volume» o “volum lògic”), que és un tros d'un VG; si mantenim l'analogia de “VG-com-a-disc”, l'LV es compara amb una partició. L'LV apareix com un dispositiu de blocs amb una entrada a /dev, i es pot utilitzar com qualsevol altra partició física (habitualment per albergar un sistema de fitxers o espai d'intercanvi)." msgid "The important thing is that the splitting of a VG into LVs is entirely independent of its physical components (the PVs). A VG with only a single physical component (a disk for instance) can be split into a dozen logical volumes; similarly, a VG can use several physical disks and appear as a single large logical volume. The only constraint, obviously, is that the total size allocated to LVs can't be bigger than the total capacity of the PVs in the volume group." msgstr "L'important és que la divisió d'un VG en LVs és totalment independent dels seus components físics (els PV). Un VG amb un únic component físic (un disc per exemple) es pot dividir en una dotzena de volums lògics; de manera similar, un VG pot utilitzar diversos discos físics i aparèixer com un únic i gran volum lògic. L'única restricció, òbviament, és que la grandària total assignada als LV no pot ser més gran que la capacitat total dels PV del grup de volums." msgid "It often makes sense, however, to have some kind of homogeneity among the physical components of a VG, and to split the VG into logical volumes that will have similar usage patterns. For instance, if the available hardware includes fast disks and slower disks, the fast ones could be clustered into one VG and the slower ones into another; chunks of the first one can then be assigned to applications requiring fast data access, while the second one will be kept for less demanding tasks." msgstr "No obstant això, sovint té sentit tenir algun tipus d'homogeneïtat entre els components físics d'un VG, i dividir el VG en volums lògics que tindran patrons d'ús similars. Per exemple, si el maquinari disponible inclou discos ràpids i discos més lents, els ràpids es podrien agrupar en un VG i els més lents en un altre; els trossos del primer es poden assignar a aplicacions que requereixin accés ràpid de dades, mentre que el segon es mantindria per a tasques menys exigents." msgid "In any case, keep in mind that an LV isn't particularly attached to any one PV. It is possible to influence where the data from an LV are physically stored, but this possibility isn't required for day-to-day use. On the contrary: when the set of physical components of a VG evolves, the physical storage locations corresponding to a particular LV can be migrated across disks (while staying within the PVs assigned to the VG, of course)." msgstr "En qualsevol cas, tingueu en compte que un LV no està particularment vinculat a cap PV. És possible influir on les dades d'un LV s'emmagatzemen físicament, però aquesta possibilitat no és necessària per a l'ús diari. Al contrari: quan el conjunt de components físics d'un VG evoluciona, les localitzacions d'emmagatzematge físic corresponents a un LV particular es poden migrar entre discos (sempre romanent dins dels PV assignats al VG, per descomptat)." msgid "Setting up LVM" msgstr "Configuració d'LVM" #, fuzzy #| msgid "installationautomated installation" msgid "LVMsetup" msgstr "instal·lacióinstal·lació automatitzada" msgid "Let us now follow, step by step, the process of setting up LVM for a typical use case: we want to simplify a complex storage situation. Such a situation usually happens after some long and convoluted history of accumulated temporary measures. For the purposes of illustration, we'll consider a server where the storage needs have changed over time, ending up in a maze of available partitions split over several partially used disks. In more concrete terms, the following partitions are available:" msgstr "Seguim ara, pas a pas, el procés de creació d'un LVM per a un cas típic d'ús: volem simplificar una complexa situació d'emmagatzematge. Aquesta situació sol produir-se després d'una llarga i complicada història de mesures temporals acumulades. A tall il·lustratiu, considerarem un servidor on les necessitats d'emmagatzematge han canviat amb el temps, acabant en un laberint de particions disponibles dividides en diversos discs parcialment utilitzats. En termes més concrets, estan disponibles les següents particions:" msgid "on the sdb disk, a sdb2 partition, 4 GB;" msgstr "al disc sdb, una partición sdb2 de 4Gb;" msgid "on the sdc disk, a sdc3 partition, 3 GB;" msgstr "al disco sdc, una partició sdc3 de 3 GB;" msgid "the sdd disk, 4 GB, is fully available;" msgstr "el disc sdd, de 4 GB, completament disponible;" msgid "on the sdf disk, a sdf1 partition, 4 GB; and a sdf2 partition, 5 GB." msgstr "al disc sdf, una partición sdf1 de 4 GB i una partició sdf2 de 5GB." msgid "In addition, let's assume that disks sdb and sdf are faster than the other two." msgstr "A més, suposem que els discos sdb i sdf són més ràpids que els altres dos." msgid "Our goal is to set up three logical volumes for three different applications: a file server requiring 5 GB of storage space, a database (1 GB) and some space for back-ups (12 GB). The first two need good performance, but back-ups are less critical in terms of access speed. All these constraints prevent the use of partitions on their own; using LVM can abstract the physical size of the devices, so the only limit is the total available space." msgstr "El nostre objectiu és establir tres volums lògics per a tres aplicacions diferents: un servidor d'arxius que requereix 5 GB d'espai d'emmagatzematge, una base de dades (1 GB) i una mica d'espai per a còpies de seguretat (12 GB). Les dues primeres necessiten un bon rendiment, però les còpies de seguretat són menys crítiques en termes de velocitat d'accés. Totes aquestes restriccions eviten l'ús de particions per si soles; l'ús de LVM pot absteure la mida física dels dispositius, de manera que l'únic límit és l'espai total disponible." #, fuzzy #| msgid "mdadm" msgid "lvm2" msgstr "mdadm" #, fuzzy #| msgid "installationautomated installation" msgid "LVMcreate PV" msgstr "instal·lacióinstal·lació automatitzada" msgid "The required tools are in the lvm2 package and its dependencies. When they're installed, setting up LVM takes three steps, matching the three levels of concepts." msgstr "Les eines necessàries són en el paquet lvm2 i les seves dependències. Quan estan instal·lats, la instal·lació de l'LVM consisteix en tres passos, corresponents als tres nivells dels conceptes." msgid "First, we prepare the physical volumes using pvcreate:" msgstr "Primer, preparem els volums físics utilitzant pvcreate:" #, fuzzy #| msgid "xe" msgid "pvcreate" msgstr "xe" #, fuzzy #| msgid "virsh" msgid "pvdisplay" msgstr "virsh" #, fuzzy #| msgid "" #| "# pvcreate /dev/sdb2\n" #| " Physical volume \"/dev/sdb2\" successfully created.\n" #| "# pvdisplay\n" #| " \"/dev/sdb2\" is a new physical volume of \"4.00 GiB\"\n" #| " --- NEW Physical volume ---\n" #| " PV Name /dev/sdb2\n" #| " VG Name \n" #| " PV Size 4.00 GiB\n" #| " Allocatable NO\n" #| " PE Size 0 \n" #| " Total PE 0\n" #| " Free PE 0\n" #| " Allocated PE 0\n" #| " PV UUID z4Clgk-T5a4-C27o-1P0E-lIAF-OeUM-e7EMwq\n" #| "\n" #| "# for i in sdc3 sdd sdf1 sdf2 ; do pvcreate /dev/$i ; done\n" #| " Physical volume \"/dev/sdc3\" successfully created.\n" #| " Physical volume \"/dev/sdd\" successfully created.\n" #| " Physical volume \"/dev/sdf1\" successfully created.\n" #| " Physical volume \"/dev/sdf2\" successfully created.\n" #| "# pvdisplay -C\n" #| " PV VG Fmt Attr PSize PFree \n" #| " /dev/sdb2 lvm2 --- 4.00g 4.00g\n" #| " /dev/sdc3 lvm2 --- 3.00g 3.00g\n" #| " /dev/sdd lvm2 --- 4.00g 4.00g\n" #| " /dev/sdf1 lvm2 --- 4.00g 4.00g\n" #| " /dev/sdf2 lvm2 --- <5.00g <5.00g\n" #| "" msgid "" "# pvcreate /dev/sdb2\n" " Physical volume \"/dev/sdb2\" successfully created.\n" "# pvdisplay\n" " \"/dev/sdb2\" is a new physical volume of \"4.00 GiB\"\n" " --- NEW Physical volume ---\n" " PV Name /dev/sdb2\n" " VG Name \n" " PV Size 4.00 GiB\n" " Allocatable NO\n" " PE Size 0 \n" " Total PE 0\n" " Free PE 0\n" " Allocated PE 0\n" " PV UUID yK0K6K-clbc-wt6e-qk9o-aUh9-oQqC-k1T71B\n" "\n" "# for i in sdc3 sdd sdf1 sdf2 ; do pvcreate /dev/$i ; done\n" " Physical volume \"/dev/sdc3\" successfully created.\n" " Physical volume \"/dev/sdd\" successfully created.\n" " Physical volume \"/dev/sdf1\" successfully created.\n" " Physical volume \"/dev/sdf2\" successfully created.\n" "# pvdisplay -C\n" " PV VG Fmt Attr PSize PFree\n" " /dev/sdb2 lvm2 --- 4.00g 4.00g\n" " /dev/sdc3 lvm2 --- 3.00g 3.00g\n" " /dev/sdd lvm2 --- 4.00g 4.00g\n" " /dev/sdf1 lvm2 --- 4.00g 4.00g\n" " /dev/sdf2 lvm2 --- 5.00g 5.00g\n" "" msgstr "" "# pvcreate /dev/sdb2\n" " Physical volume \"/dev/sdb2\" successfully created.\n" "# pvdisplay\n" " \"/dev/sdb2\" is a new physical volume of \"4.00 GiB\"\n" " --- NEW Physical volume ---\n" " PV Name /dev/sdb2\n" " VG Name \n" " PV Size 4.00 GiB\n" " Allocatable NO\n" " PE Size 0 \n" " Total PE 0\n" " Free PE 0\n" " Allocated PE 0\n" " PV UUID z4Clgk-T5a4-C27o-1P0E-lIAF-OeUM-e7EMwq\n" "\n" "# for i in sdc3 sdd sdf1 sdf2 ; do pvcreate /dev/$i ; done\n" " Physical volume \"/dev/sdc3\" successfully created.\n" " Physical volume \"/dev/sdd\" successfully created.\n" " Physical volume \"/dev/sdf1\" successfully created.\n" " Physical volume \"/dev/sdf2\" successfully created.\n" "# pvdisplay -C\n" " PV VG Fmt Attr PSize PFree \n" " /dev/sdb2 lvm2 --- 4.00g 4.00g\n" " /dev/sdc3 lvm2 --- 3.00g 3.00g\n" " /dev/sdd lvm2 --- 4.00g 4.00g\n" " /dev/sdf1 lvm2 --- 4.00g 4.00g\n" " /dev/sdf2 lvm2 --- <5.00g <5.00g\n" "" msgid "So far, so good; note that a PV can be set up on a full disk as well as on individual partitions of it. As shown above, the pvdisplay command lists the existing PVs, with two possible output formats." msgstr "Fins aquí tot bé; tingueu en compte que un PV es pot configurar en un disc complet així com en particions individuals d'ell. Com es mostra a dalt, l'ordre pvdisplay llista els PV existents, amb dos formats de sortida possibles." #, fuzzy #| msgid "xe" msgid "vgcreate" msgstr "xe" #, fuzzy #| msgid "virsh" msgid "vgdisplay" msgstr "virsh" msgid "Now let's assemble these physical elements into VGs using vgcreate. We'll gather only PVs from the fast disks into a vg_critical VG; the other VG, vg_normal, will also include slower elements." msgstr "Ara ajuntem aquests elements físics en VG utilitzant vgcreate. Només agafarem els PV dels discos ràpids en un VG vg_critical; l'altre VG, vg_normal, també inclourà elements més lents." #, fuzzy #| msgid "installationautomated installation" msgid "LVMcreate VG" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "" #| "# vgcreate vg_critical /dev/sdb2 /dev/sdf1\n" #| " Volume group \"vg_critical\" successfully created\n" #| "# vgdisplay\n" #| " --- Volume group ---\n" #| " VG Name vg_critical\n" #| " System ID \n" #| " Format lvm2\n" #| " Metadata Areas 2\n" #| " Metadata Sequence No 1\n" #| " VG Access read/write\n" #| " VG Status resizable\n" #| " MAX LV 0\n" #| " Cur LV 0\n" #| " Open LV 0\n" #| " Max PV 0\n" #| " Cur PV 2\n" #| " Act PV 2\n" #| " VG Size 7.99 GiB\n" #| " PE Size 4.00 MiB\n" #| " Total PE 2046\n" #| " Alloc PE / Size 0 / 0 \n" #| " Free PE / Size 2046 / 7.99 GiB\n" #| " VG UUID wAbBjx-d82B-q7St-0KFf-z40h-w5Mh-uAXkNZ\n" #| "\n" #| "# vgcreate vg_normal /dev/sdc3 /dev/sdd /dev/sdf2\n" #| " Volume group \"vg_normal\" successfully created\n" #| "# vgdisplay -C\n" #| " VG #PV #LV #SN Attr VSize VFree \n" #| " vg_critical 2 0 0 wz--n- 7.99g 7.99g\n" #| " vg_normal 3 0 0 wz--n- <11.99g <11.99g\n" #| "" msgid "" "# vgcreate vg_critical /dev/sdb2 /dev/sdf1\n" " Volume group \"vg_critical\" successfully created\n" "# vgdisplay\n" " --- Volume group ---\n" " VG Name vg_critical\n" " System ID \n" " Format lvm2\n" " Metadata Areas 2\n" " Metadata Sequence No 1\n" " VG Access read/write\n" " VG Status resizable\n" " MAX LV 0\n" " Cur LV 0\n" " Open LV 0\n" " Max PV 0\n" " Cur PV 2\n" " Act PV 2\n" " VG Size 7.99 GiB\n" " PE Size 4.00 MiB\n" " Total PE 2046\n" " Alloc PE / Size 0 / 0 \n" " Free PE / Size 2046 / 7.99 GiB\n" " VG UUID JgFWU3-emKg-9QA1-stPj-FkGX-mGFb-4kzy1G\n" "\n" "# vgcreate vg_normal /dev/sdc3 /dev/sdd /dev/sdf2\n" " Volume group \"vg_normal\" successfully created\n" "# vgdisplay -C\n" "" msgstr "" "# vgcreate vg_critical /dev/sdb2 /dev/sdf1\n" " Volume group \"vg_critical\" successfully created\n" "# vgdisplay\n" " --- Volume group ---\n" " VG Name vg_critical\n" " System ID \n" " Format lvm2\n" " Metadata Areas 2\n" " Metadata Sequence No 1\n" " VG Access read/write\n" " VG Status resizable\n" " MAX LV 0\n" " Cur LV 0\n" " Open LV 0\n" " Max PV 0\n" " Cur PV 2\n" " Act PV 2\n" " VG Size 7.99 GiB\n" " PE Size 4.00 MiB\n" " Total PE 2046\n" " Alloc PE / Size 0 / 0 \n" " Free PE / Size 2046 / 7.99 GiB\n" " VG UUID wAbBjx-d82B-q7St-0KFf-z40h-w5Mh-uAXkNZ\n" "\n" "# vgcreate vg_normal /dev/sdc3 /dev/sdd /dev/sdf2\n" " Volume group \"vg_normal\" successfully created\n" "# vgdisplay -C\n" " VG #PV #LV #SN Attr VSize VFree \n" " vg_critical 2 0 0 wz--n- 7.99g 7.99g\n" " vg_normal 3 0 0 wz--n- <11.99g <11.99g\n" "" msgid "Here again, commands are rather straightforward (and vgdisplay proposes two output formats). Note that it is quite possible to use two partitions of the same physical disk into two different VGs. Note also that we used a vg_ prefix to name our VGs, but it is nothing more than a convention." msgstr "Aquí, de nou, les ordres són bastant senzilles (i vgdisplay proposa dos formats de sortida). Tingueu en compte que és possible utilitzar dues particions del mateix disc físic en dos VG diferents. Tingueu en compte també que hem utilitzat un prefix vg_ per anomenar els nostres VG, però no és més que una convenció." msgid "We now have two “virtual disks”, sized about 8 GB and 12 GB respectively. Let's now carve them up into “virtual partitions” (LVs). This involves the lvcreate command, and a slightly more complex syntax:" msgstr "Ara tenim dos “discos virtuals”, de mides aproximadament 8 GB i 12 GB respectivament. Ara els hem de dividir en “particions virtuals” (LV). Això involucra l'ordre lvcreate, i una sintaxi lleugerament més complexa:" #, fuzzy #| msgid "installationautomated installation" msgid "LVMcreate LV" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "xe" msgid "lvcreate" msgstr "xe" #, fuzzy #| msgid "virsh" msgid "lvdisplay" msgstr "virsh" #, fuzzy #| msgid "" #| "# lvdisplay\n" #| "# lvcreate -n lv_files -L 5G vg_critical\n" #| " Logical volume \"lv_files\" created.\n" #| "# lvdisplay\n" #| " --- Logical volume ---\n" #| " LV Path /dev/vg_critical/lv_files\n" #| " LV Name lv_files\n" #| " VG Name vg_critical\n" #| " LV UUID W6XT08-iBBx-Nrw2-f8F2-r2y4-Ltds-UrKogV\n" #| " LV Write Access read/write\n" #| " LV Creation host, time debian, 2019-11-30 22:45:46 -0500\n" #| " LV Status available\n" #| " # open 0\n" #| " LV Size 5.00 GiB\n" #| " Current LE 1280\n" #| " Segments 2\n" #| " Allocation inherit\n" #| " Read ahead sectors auto\n" #| " - currently set to 256\n" #| " Block device 254:0\n" #| "\n" #| "# lvcreate -n lv_base -L 1G vg_critical\n" #| " Logical volume \"lv_base\" created.\n" #| "# lvcreate -n lv_backups -L 11.98G vg_normal\n" #| " Rounding up size to full physical extent 11.98 GiB\n" #| " Logical volume \"lv_backups\" created.\n" #| "# lvdisplay -C\n" #| " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" #| " lv_base vg_critical -wi-a--- 1.00g \n" #| " lv_files vg_critical -wi-a--- 5.00g \n" #| " lv_backups vg_normal -wi-a--- 11.98g" msgid "" "# lvdisplay\n" "# lvcreate -n lv_files -L 5G vg_critical\n" " Logical volume \"lv_files\" created.\n" "# lvdisplay\n" " --- Logical volume ---\n" " LV Path /dev/vg_critical/lv_files\n" " LV Name lv_files\n" " VG Name vg_critical\n" " LV UUID Nr62xe-Zu7d-0u3z-Yyyp-7Cj1-Ej2t-gw04Xd\n" " LV Write Access read/write\n" " LV Creation host, time debian, 2022-03-01 00:17:46 +0100\n" " LV Status available\n" " # open 0\n" " LV Size 5.00 GiB\n" " Current LE 1280\n" " Segments 2\n" " Allocation inherit\n" " Read ahead sectors auto\n" " - currently set to 256\n" " Block device 253:0\n" "\n" "# lvcreate -n lv_base -L 1G vg_critical\n" " Logical volume \"lv_base\" created.\n" "# lvcreate -n lv_backups -L 11.98G vg_normal\n" " Rounding up size to full physical extent 11.98 GiB\n" " Rounding up size to full physical extent 11.98 GiB\n" " Logical volume \"lv_backups\" created.\n" "# lvdisplay -C\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_base vg_critical -wi-a----- 1.00g \n" " lv_files vg_critical -wi-a----- 5.00g \n" " lv_backups vg_normal -wi-a----- 11.98g \n" "" msgstr "" "# lvdisplay\n" "# lvcreate -n lv_files -L 5G vg_critical\n" " Logical volume \"lv_files\" created.\n" "# lvdisplay\n" " --- Logical volume ---\n" " LV Path /dev/vg_critical/lv_files\n" " LV Name lv_files\n" " VG Name vg_critical\n" " LV UUID W6XT08-iBBx-Nrw2-f8F2-r2y4-Ltds-UrKogV\n" " LV Write Access read/write\n" " LV Creation host, time debian, 2019-11-30 22:45:46 -0500\n" " LV Status available\n" " # open 0\n" " LV Size 5.00 GiB\n" " Current LE 1280\n" " Segments 2\n" " Allocation inherit\n" " Read ahead sectors auto\n" " - currently set to 256\n" " Block device 254:0\n" "\n" "# lvcreate -n lv_base -L 1G vg_critical\n" " Logical volume \"lv_base\" created.\n" "# lvcreate -n lv_backups -L 11.98G vg_normal\n" " Rounding up size to full physical extent 11.98 GiB\n" " Logical volume \"lv_backups\" created.\n" "# lvdisplay -C\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_base vg_critical -wi-a--- 1.00g \n" " lv_files vg_critical -wi-a--- 5.00g \n" " lv_backups vg_normal -wi-a--- 11.98g" msgid "Two parameters are required when creating logical volumes; they must be passed to the lvcreate as options. The name of the LV to be created is specified with the -n option, and its size is generally given using the -L option. We also need to tell the command what VG to operate on, of course, hence the last parameter on the command line." msgstr "Es requereixen dos paràmetres al crear volums lògics; s'han de passar a lvcreate com a opcions. El nom de l'LV a crear s'especifica amb l'opció -n, i la seva mida es dona generalment utilitzant l'opció -L. També hem de dir-li a l'ordre en quin VG ha d'operar, per descomptat; d'aquí l'últim paràmetre de la línia d'ordres." msgid "GOING FURTHER lvcreate options" msgstr "ANANT MÉS ENLLÀ Opcions d'lvcreate" msgid "The lvcreate command has several options to allow tweaking how the LV is created." msgstr "L'ordre lvcreate té diverses opcions per permetre retocar com es crea un LV." msgid "Let's first describe the -l option, with which the LV's size can be given as a number of blocks (as opposed to the “human” units we used above). These blocks (called PEs, physical extents, in LVM terms) are contiguous units of storage space in PVs, and they can't be split across LVs. When one wants to define storage space for an LV with some precision, for instance to use the full available space, the -l option will probably be preferred over -L." msgstr "Descrivim primer l'opció -l, amb la qual la mida de l'LV es pot donar com a una sèrie de blocs (en oposició a les unitats “humanes” que hem utilitzat anteriorment). Aquests blocs (anomenats , en termes LVM, PE, «physical extents» o “extensions físiques”) són unitats contigües d'espai d'emmagatzematge en PV, i no es poden dividir entre els LV. Quan es vol definir l'espai d'emmagatzematge per a un LV amb certa precisió, per exemple per utilitzar l'espai disponible complet, l'opció -l probablement es preferirà més que no pas -L." msgid "It is also possible to hint at the physical location of an LV, so that its extents are stored on a particular PV (while staying within the ones assigned to the VG, of course). Since we know that sdb is faster than sdf, we may want to store the lv_base there if we want to give an advantage to the database server compared to the file server. The command line becomes: lvcreate -n lv_base -L 1G vg_critical /dev/sdb2. Note that this command can fail if the PV doesn't have enough free extents. In our example, we would probably have to create lv_base before lv_files to avoid this situation – or free up some space on sdb2 with the pvmove command." msgstr "També és possible donar a conèixer la ubicació física d'un LV, de manera que les seves extensions s'emmagatzemin en un PV en particular (sempre romanent dins dels assignats al VG, per descomptat). Com que sabem que sdb és més ràpid que sdf, és possible que hi vulguem emmagatzemar la lv_base si volem donar un avantatge al servidor de bases de dades en comparació amb el servidor de fitxers. La línia d'ordres esdevé: lvcreate -n lv_base -L 1G vg_critical /dev/sdb2. Tingueu en compte que aquesta ordre pot fallar si el PV no té prou extensions lliures. En el nostre exemple, probablement hauríem de crear lv_base abans que lv_files per evitar aquesta situació – o alliberar espai a sdb2 amb l'ordre pvmove." #, fuzzy #| msgid "xe" msgid "pvmove" msgstr "xe" msgid "Logical volumes, once created, end up as block device files in /dev/mapper/:" msgstr "Els volums lògics, un cop creats, esdevenen fitxers de dispositius de blocs a /dev/mapper/:" #, fuzzy #| msgid "installationautomated installation" msgid "/dev/dev/mapper/" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "deviceblock" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "" #| "# ls -l /dev/mapper\n" #| "total 0\n" #| "crw------- 1 root root 10, 236 Jun 10 16:52 control\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_critical-lv_base -> ../dm-1\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_critical-lv_files -> ../dm-0\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_normal-lv_backups -> ../dm-2\n" #| "# ls -l /dev/dm-*\n" #| "brw-rw---T 1 root disk 253, 0 Jun 10 17:05 /dev/dm-0\n" #| "brw-rw---- 1 root disk 253, 1 Jun 10 17:05 /dev/dm-1\n" #| "brw-rw---- 1 root disk 253, 2 Jun 10 17:05 /dev/dm-2\n" #| "" msgid "" "# ls -l /dev/mapper\n" " ../dm-1\n" "lrwxrwxrwx 1 root root 7 Mar 1 00:17 vg_critical-lv_files -> ../dm-0\n" "lrwxrwxrwx 1 root root 7 Mar 1 00:19 vg_normal-lv_backups -> ../dm-2 ]]>\n" "# ls -l /dev/dm-*\n" "brw-rw---- 1 root disk 253, 0 Mar 1 00:17 /dev/dm-0\n" "brw-rw---- 1 root disk 253, 1 Mar 1 00:19 /dev/dm-1\n" "brw-rw---- 1 root disk 253, 2 Mar 1 00:19 /dev/dm-2\n" "" msgstr "" "# ls -l /dev/mapper\n" "total 0\n" "crw------- 1 root root 10, 236 Jun 10 16:52 control\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_critical-lv_base -> ../dm-1\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_critical-lv_files -> ../dm-0\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 vg_normal-lv_backups -> ../dm-2\n" "# ls -l /dev/dm-*\n" "brw-rw---T 1 root disk 253, 0 Jun 10 17:05 /dev/dm-0\n" "brw-rw---- 1 root disk 253, 1 Jun 10 17:05 /dev/dm-1\n" "brw-rw---- 1 root disk 253, 2 Jun 10 17:05 /dev/dm-2\n" "" msgid "NOTE Auto-detecting LVM volumes" msgstr "NOTA Autodetecció de volums LVM" #, fuzzy #| msgid "installationautomated installation" msgid "servicelvm2-activation.service" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "xe" msgid "vgchange" msgstr "xe" msgid "When the computer boots, the lvm2-activation systemd service unit executes vgchange -aay to “activate” the volume groups: it scans the available devices; those that have been initialized as physical volumes for LVM are registered into the LVM subsystem, those that belong to volume groups are assembled, and the relevant logical volumes are started and made available. There is therefore no need to edit configuration files when creating or modifying LVM volumes." msgstr "Quan l'ordinador arrenca, la unitat de servei systemd lvm2-activation executa vgchange -aay per “activar” els grups de volums: explora els dispositius disponibles; els que han estat inicialitzats com a volums físics per a LVM són registrats al subsistema LVM, els que pertanyen a grups de volums són agrupats, i els volums lògics pertinents s'inicien i es posen a disposició. Per tant, no hi ha necessitat d'editar els fitxers de configuració quan es creen o modifiquen volums LVM." msgid "Note, however, that the layout of the LVM elements (physical and logical volumes, and volume groups) is backed up in /etc/lvm/backup, which can be useful in case of a problem (or just to sneak a peek under the hood)." msgstr "No obstant això, cal tenir en compte que la disposició dels elements LVM (volums físics i lògics, i grups de volums) està reflectida a /etc/lvm/backup, que pot ser útil en cas de problema (o simplement per mirar-hi de reüll)." #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/lvm/backup" msgstr "instal·lacióinstal·lació automatitzada" msgid "To make things easier, convenience symbolic links are also created in directories matching the VGs:" msgstr "Per facilitar les coses, també es creen enllaços simbòlics de conveniència als directoris que coincideixen amb els VG:" #, fuzzy #| msgid "" #| "# ls -l /dev/vg_critical\n" #| "total 0\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_base -> ../dm-1\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_files -> ../dm-0\n" #| "# ls -l /dev/vg_normal\n" #| "total 0\n" #| "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_backups -> ../dm-2" msgid "" "# ls -l /dev/vg_critical\n" " ../dm-1\n" "lrwxrwxrwx 1 root root 7 Mar 1 00:17 lv_files -> ../dm-0 ]]>\n" "# ls -l /dev/vg_normal\n" " ../dm-2 ]]>\n" "" msgstr "" "# ls -l /dev/vg_critical\n" "total 0\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_base -> ../dm-1\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_files -> ../dm-0\n" "# ls -l /dev/vg_normal\n" "total 0\n" "lrwxrwxrwx 1 root root 7 Jun 10 17:05 lv_backups -> ../dm-2" msgid "The LVs can then be used exactly like standard partitions:" msgstr "Els LV es poden utilitzar exactament com a particions estàndard:" #, fuzzy #| msgid "" #| "# mkfs.ext4 /dev/vg_normal/lv_backups\n" #| "mke2fs 1.44.5 (15-Dec-2018)\n" #| "Discarding device blocks: done \n" #| "Creating filesystem with 3140608 4k blocks and 786432 inodes\n" #| "Filesystem UUID: b9e6ed2f-cb37-43e9-87d8-e77568446225\n" #| "Superblock backups stored on blocks: \n" #| "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208\n" #| "\n" #| "Allocating group tables: done \n" #| "Writing inode tables: done \n" #| "Creating journal (16384 blocks): done\n" #| "Writing superblocks and filesystem accounting information: done \n" #| "\n" #| "# mkdir /srv/backups\n" #| "# mount /dev/vg_normal/lv_backups /srv/backups\n" #| "# df -h /srv/backups\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/mapper/vg_normal-lv_backups 12G 41M 12G 1% /srv/backups\n" #| "# [...]\n" #| "[...]\n" #| "# cat /etc/fstab\n" #| "[...]\n" #| "/dev/vg_critical/lv_base /srv/base ext4 defaults 0 2\n" #| "/dev/vg_critical/lv_files /srv/files ext4 defaults 0 2\n" #| "/dev/vg_normal/lv_backups /srv/backups ext4 defaults 0 2" msgid "" "# mkfs.ext4 /dev/vg_normal/lv_backups\n" "mke2fs 1.46.2 (28-Feb-2021)\n" "Discarding device blocks: done \n" "Creating filesystem with 3140608 4k blocks and 786432 inodes\n" "Filesystem UUID: 7eaf0340-b740-421e-96b2-942cdbf29cb3\n" "Superblock backups stored on blocks: \n" "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208\n" "\n" "Allocating group tables: done \n" "Writing inode tables: done \n" "Creating journal (16384 blocks): done\n" "Writing superblocks and filesystem accounting information: done \n" "\n" "# mkdir /srv/backups\n" "# mount /dev/vg_normal/lv_backups /srv/backups\n" "# df -h /srv/backups\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_normal-lv_backups 12G 24K 12G 1% /srv/backups\n" "# [...]\n" "[...]\n" "# cat /etc/fstab\n" "[...]\n" "/dev/vg_critical/lv_base /srv/base ext4 defaults 0 2\n" "/dev/vg_critical/lv_files /srv/files ext4 defaults 0 2\n" "/dev/vg_normal/lv_backups /srv/backups ext4 defaults 0 2\n" "" msgstr "" "# mkfs.ext4 /dev/vg_normal/lv_backups\n" "mke2fs 1.44.5 (15-Dec-2018)\n" "Discarding device blocks: done \n" "Creating filesystem with 3140608 4k blocks and 786432 inodes\n" "Filesystem UUID: b9e6ed2f-cb37-43e9-87d8-e77568446225\n" "Superblock backups stored on blocks: \n" "\t32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208\n" "\n" "Allocating group tables: done \n" "Writing inode tables: done \n" "Creating journal (16384 blocks): done\n" "Writing superblocks and filesystem accounting information: done \n" "\n" "# mkdir /srv/backups\n" "# mount /dev/vg_normal/lv_backups /srv/backups\n" "# df -h /srv/backups\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_normal-lv_backups 12G 41M 12G 1% /srv/backups\n" "# [...]\n" "[...]\n" "# cat /etc/fstab\n" "[...]\n" "/dev/vg_critical/lv_base /srv/base ext4 defaults 0 2\n" "/dev/vg_critical/lv_files /srv/files ext4 defaults 0 2\n" "/dev/vg_normal/lv_backups /srv/backups ext4 defaults 0 2" msgid "From the applications' point of view, the myriad small partitions have now been abstracted into one large 12 GB volume, with a friendlier name." msgstr "Des del punt de vista de les aplicacions, l'escampall de petites particions s'han abstret en un volum gran de 12 GB, i amb un nom més amistós." msgid "LVM Over Time" msgstr "LVM amb el temps" #, fuzzy #| msgid "virsh" msgid "lvresize" msgstr "virsh" #, fuzzy #| msgid "xe" msgid "resize2fs" msgstr "xe" #, fuzzy #| msgid "installationautomated installation" msgid "volumeresize" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "LVMresize LV" msgstr "instal·lacióinstal·lació automatitzada" msgid "Even though the ability to aggregate partitions or physical disks is convenient, this is not the main advantage brought by LVM. The flexibility it brings is especially noticed as time passes, when needs evolve. In our example, let's assume that new large files must be stored, and that the LV dedicated to the file server is too small to contain them. Since we haven't used the whole space available in vg_critical, we can grow lv_files. For that purpose, we'll use the lvresize command, then resize2fs to adapt the filesystem accordingly:" msgstr "Tot i que la capacitat d'afegir particions o discos físics és convenient, aquest no és el principal avantatge aportat per l'LVM. La flexibilitat que aporta es percep especialment a mesura que passa el temps, quan les necessitats evolucionen. En el nostre exemple, suposem que s'han d'emmagatzemar nous fitxers grans, i que el LV dedicat al servidor de fitxers és massa petit per contenir-los. Com que no hem utilitzat tot l'espai disponible de vg_critical, podem fer créixer lv_files. Per a aquest propòsit, utilitzarem la comanda lvresize, i després reize2fs per adaptar el sistema de fitxers en conseqüència:" #, fuzzy #| msgid "" #| "# df -h /srv/files/\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/mapper/vg_critical-lv_files 4.9G 4.2G 485M 90% /srv/files\n" #| "# lvdisplay -C vg_critical/lv_files\n" #| " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" #| " lv_files vg_critical -wi-ao-- 5.00g\n" #| "# vgdisplay -C vg_critical\n" #| " VG #PV #LV #SN Attr VSize VFree\n" #| " vg_critical 2 2 0 wz--n- 7.99g 1.99g\n" #| "# lvresize -L 6G vg_critical/lv_files\n" #| " Size of logical volume vg_critical/lv_files changed from 5.00 GiB (1280 extents) to 6.00 GiB (1536 extents).\n" #| " Logical volume vg_critical/lv_files successfully resized.\n" #| "# lvdisplay -C vg_critical/lv_files\n" #| " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" #| " lv_files vg_critical -wi-ao---- 6.00g\n" #| "# resize2fs /dev/vg_critical/lv_files\n" #| "resize2fs 1.44.5 (15-Dec-2018)\n" #| "Filesystem at /dev/vg_critical/lv_files is mounted on /srv/files; on-line resizing required\n" #| "old_desc_blocks = 1, new_desc_blocks = 1\n" #| "The filesystem on /dev/vg_critical/lv_files is now 1572864 (4k) blocks long.\n" #| "\n" #| "# df -h /srv/files/\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/mapper/vg_critical-lv_files 5.9G 4.2G 1.5G 75% /srv/files" msgid "" "# df -h /srv/files/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_files 4.9G 4.2G 485M 90% /srv/files\n" "# lvdisplay -C vg_critical/lv_files\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_files vg_critical -wi-ao---- 5.00g \n" "# vgdisplay -C vg_critical\n" " VG #PV #LV #SN Attr VSize VFree\n" " vg_critical 2 2 0 wz--n- 7.99g 1.99g\n" "# lvresize -L 6G vg_critical/lv_files\n" " Size of logical volume vg_critical/lv_files changed from 5.00 GiB (1280 extents) to 6.00 GiB (1536 extents).\n" " Logical volume vg_critical/lv_files successfully resized.\n" "# lvdisplay -C vg_critical/lv_files\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_files vg_critical -wi-ao---- 6.00g \n" "# resize2fs /dev/vg_critical/lv_files\n" "resize2fs 1.46.2 (28-Feb-2021)\n" "Filesystem at /dev/vg_critical/lv_files is mounted on /srv/files; on-line resizing required\n" "old_desc_blocks = 1, new_desc_blocks = 1\n" "The filesystem on /dev/vg_critical/lv_files is now 1572864 (4k) blocks long.\n" "\n" "# df -h /srv/files/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_files 5.9G 4.2G 1.5G 75% /srv/files\n" "" msgstr "" "# df -h /srv/files/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_files 4.9G 4.2G 485M 90% /srv/files\n" "# lvdisplay -C vg_critical/lv_files\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_files vg_critical -wi-ao-- 5.00g\n" "# vgdisplay -C vg_critical\n" " VG #PV #LV #SN Attr VSize VFree\n" " vg_critical 2 2 0 wz--n- 7.99g 1.99g\n" "# lvresize -L 6G vg_critical/lv_files\n" " Size of logical volume vg_critical/lv_files changed from 5.00 GiB (1280 extents) to 6.00 GiB (1536 extents).\n" " Logical volume vg_critical/lv_files successfully resized.\n" "# lvdisplay -C vg_critical/lv_files\n" " LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert\n" " lv_files vg_critical -wi-ao---- 6.00g\n" "# resize2fs /dev/vg_critical/lv_files\n" "resize2fs 1.44.5 (15-Dec-2018)\n" "Filesystem at /dev/vg_critical/lv_files is mounted on /srv/files; on-line resizing required\n" "old_desc_blocks = 1, new_desc_blocks = 1\n" "The filesystem on /dev/vg_critical/lv_files is now 1572864 (4k) blocks long.\n" "\n" "# df -h /srv/files/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_files 5.9G 4.2G 1.5G 75% /srv/files" msgid "CAUTION Resizing filesystems" msgstr "COMPTE Redimensionat de sistemes de fitxers" #, fuzzy #| msgid "installationautomated installation" msgid "filesystemresize" msgstr "instal·lacióinstal·lació automatitzada" msgid "Not all filesystems can be resized online; resizing a volume can therefore require unmounting the filesystem first and remounting it afterwards. Of course, if one wants to shrink the space allocated to an LV, the filesystem must be shrunk first; the order is reversed when the resizing goes in the other direction: the logical volume must be grown before the filesystem on it. It is rather straightforward, since at no time must the filesystem size be larger than the block device where it resides (whether that device is a physical partition or a logical volume)." msgstr "No tots els sistemes de fitxers es poden redimensionar en calent; per tant, el canvi de mida d'un volum pot requerir desmuntar primer el sistema de fitxers i tornar-lo a muntar després. Per descomptat, si es vol reduir l'espai assignat a un LV, primer s'ha de reduir el sistema de fitxers; l'ordre s'inverteix quan el redimensionament va en l'altra direcció: el volum lògic s'ha d'engrandir abans que el sistema de fitxers. És bastant senzill, ja que en cap moment la mida del sistema de fitxers ha de ser més gran que el dispositiu de blocs on resideix (tant si aquest dispositiu és una partició física o un volum lògic)." msgid "The ext3, ext4 and xfs filesystems can be grown online, without unmounting; shrinking requires an unmount. The reiserfs filesystem allows online resizing in both directions. The venerable ext2 allows neither, and always requires unmounting." msgstr "Els sistemes de fitxers ext3, ext4 i xfs es poden engrandir en calent, sense desmuntar; la reducció requereix desmuntar-los. El sistema de fitxers reiserfs permet el redimensionament en calent en ambdues direccions. L'antic ext2 no permet cap de les dues, i sempre requereix desmuntar-lo." msgid "We could proceed in a similar fashion to extend the volume hosting the database, only we've reached the VG's available space limit:" msgstr "Podríem procedir de manera similar per ampliar el volum que alberga la base de dades, només hem arribat al límit d'espai disponible del VG:" #, fuzzy #| msgid "" #| "# df -h /srv/base/\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/mapper/vg_critical-lv_base 976M 882M 28M 97% /srv/base\n" #| "# vgdisplay -C vg_critical\n" #| " VG #PV #LV #SN Attr VSize VFree \n" #| " vg_critical 2 2 0 wz--n- 7.99g 1016.00m" msgid "" "# df -h /srv/base/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_base 974M 883M 25M 98% /srv/base\n" "# vgdisplay -C vg_critical\n" " VG #PV #LV #SN Attr VSize VFree \n" " vg_critical 2 2 0 wz--n- 7.99g 1016.00m\n" "" msgstr "" "# df -h /srv/base/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_base 976M 882M 28M 97% /srv/base\n" "# vgdisplay -C vg_critical\n" " VG #PV #LV #SN Attr VSize VFree \n" " vg_critical 2 2 0 wz--n- 7.99g 1016.00m" #, fuzzy #| msgid "No matter, since LVM allows adding physical volumes to existing volume groups. For instance, maybe we've noticed that the sdb1 partition, which was so far used outside of LVM, only contained archives that could be moved to lv_backups. We can now recycle it and integrate it to the volume group, and thereby reclaim some available space. This is the purpose of the vgextend command. Of course, the partition must be prepared as a physical volume beforehand. Once the VG has been extended, we can use similar commands as previously to grow the logical volume then the filesystem:" msgid "No matter, since LVM allows adding physical volumes to existing volume groups. For instance, maybe we've noticed that the sdb3 partition, which was so far used outside of LVM, only contained archives that could be moved to lv_backups. We can now recycle it and integrate it to the volume group, and thereby reclaim some available space. This is the purpose of the vgextend command. Of course, the partition must be prepared as a physical volume beforehand. Once the VG has been extended, we can use similar commands as previously to grow the logical volume then the filesystem:" msgstr "No importa, ja que l'LVM permet afegir volums físics als grups de volums existents. Per exemple, potser ens hem adonat que la partició sdb1, que fins ara s'utilitzava fora de l'LVM, només contenia arxius que es podien moure a lv_backups. Ara podem reciclar-la i integrar-la en el grup de volums, i així recuperar un cert espai disponible. Aquest és el propòsit de l'ordre vgextend. Per descomptat, la partició s'ha de preparar com un volum físic per endavant. Una vegada que el VG s'ha ampliat, podem utilitzar ordres similars com abans per a augmentar el volum lògic i després el sistema de fitxers:" #, fuzzy #| msgid "" #| "# pvcreate /dev/sdb1\n" #| " Physical volume \"/dev/sdb1\" successfully created.\n" #| "# vgextend vg_critical /dev/sdb1\n" #| " Volume group \"vg_critical\" successfully extended\n" #| "# vgdisplay -C vg_critical\n" #| " VG #PV #LV #SN Attr VSize VFree \n" #| " vg_critical 3 2 0 wz--n- <9.99g <1.99g\n" #| "# [...]\n" #| "[...]\n" #| "# df -h /srv/base/\n" #| "Filesystem Size Used Avail Use% Mounted on\n" #| "/dev/mapper/vg_critical-lv_base 2.0G 882M 994M 48% /srv/base" msgid "" "# pvcreate /dev/sdb3\n" " Physical volume \"/dev/sdb3\" successfully created.\n" "# vgextend vg_critical /dev/sdb3\n" " Volume group \"vg_critical\" successfully extended\n" "# vgdisplay -C vg_critical\n" "\n" "# lvresize -L 2G vg_critical/lv_base\n" "[...]\n" "# resize2fs /dev/vg_critical/lv_base\n" "[...]\n" "# df -h /srv/base/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_base 2.0G 886M 991M 48% /srv/base\n" "" msgstr "" "# pvcreate /dev/sdb1\n" " Physical volume \"/dev/sdb1\" successfully created.\n" "# vgextend vg_critical /dev/sdb1\n" " Volume group \"vg_critical\" successfully extended\n" "# vgdisplay -C vg_critical\n" " VG #PV #LV #SN Attr VSize VFree \n" " vg_critical 3 2 0 wz--n- <9.99g <1.99g\n" "# [...]\n" "[...]\n" "# df -h /srv/base/\n" "Filesystem Size Used Avail Use% Mounted on\n" "/dev/mapper/vg_critical-lv_base 2.0G 882M 994M 48% /srv/base" msgid "GOING FURTHER Advanced LVM" msgstr "ANANT MÉS ENLLÀ LVM avançat" msgid "LVM also caters for more advanced uses, where many details can be specified by hand. For instance, an administrator can tweak the size of the blocks that make up physical and logical volumes, as well as their physical layout. It is also possible to move blocks across PVs, for instance, to fine-tune performance or, in a more mundane way, to free a PV when one needs to extract the corresponding physical disk from the VG (whether to affect it to another VG or to remove it from LVM altogether). The manual pages describing the commands are generally clear and detailed. A good entry point is the lvm 8 manual page." msgstr "LVM també serveix per a usos més avançats, on es poden especificar molts detalls a mà. Per exemple, un administrador pot ajustar la mida dels blocs que componen els volums físics i lògics, així com la seva disposició física. També és possible moure blocs entre PVs, per exemple, per ajustar el rendiment o, d'una manera més mundana, per alliberar un PV quan cal extreure el disc físic corresponent del VG (ja sigui per associar-lo a un altre VG o per treure'l de l'LVM). Les pàgines del manual que descriuen les ordres són generalment clares i detallades. Un bon punt d'entrada és la pàgina del manual lvm 8." msgid "RAID or LVM?" msgstr "RAID o LVM?" msgid "RAID and LVM both bring indisputable advantages as soon as one leaves the simple case of a desktop computer with a single hard disk where the usage pattern doesn't change over time. However, RAID and LVM go in two different directions, with diverging goals, and it is legitimate to wonder which one should be adopted. The most appropriate answer will of course depend on current and foreseeable requirements." msgstr "RAID i LVM aporten avantatges indiscutibles tan aviat com es deixa enrere el cas senzill d'un ordinador d'escriptori amb un sol disc dur on el patró d'ús no canvia amb el temps. No obstant això, el RAID i el LVM avancen en dues direccions diferents, amb objectius divergents, i és legítim preguntar-se quin s'ha d'adoptar. La resposta més apropiada dependrà, per descomptat, dels requisits actuals i dels previstos." msgid "There are a few simple cases where the question doesn't really arise. If the requirement is to safeguard data against hardware failures, then obviously RAID will be set up on a redundant array of disks, since LVM doesn't really address this problem. If, on the other hand, the need is for a flexible storage scheme where the volumes are made independent of the physical layout of the disks, RAID doesn't help much and LVM will be the natural choice." msgstr "Hi ha alguns casos senzills en els quals la pregunta no realment no sorgeix. Si el requisit és salvaguardar les dades contra les fallades del maquinari, llavors és obvi que s'instal·larà un RAID en un conjunt redundant de discos, ja que l'LVM no s'ocupa realment d'aquest problema. Si, d'altra banda, la necessitat és un esquema d'emmagatzematge flexible on els volums es fan independents de la disposició física dels discs, RAID no hi ajuda molt i LVM serà l'elecció natural." msgid "NOTE If performance matters…" msgstr "NOTA Si el rendimient importa…" #, fuzzy #| msgid "RAID" msgid "SSD" msgstr "RAID" msgid "Solid State DrivesSSD" msgstr "" #, fuzzy #| msgid "If input/output speed is of the essence, especially in terms of access times, using LVM and/or RAID in one of the many combinations may have some impact on performances, and this may influence decisions as to which to pick. However, these differences in performance are really minor, and will only be measurable in a few use cases. If performance matters, the best gain to be obtained would be to use non-rotating storage media (SSDsolid-state drives or SSDs); their cost per megabyte is higher than that of standard hard disk drives, and their capacity is usually smaller, but they provide excellent performance for random accesses. If the usage pattern includes many input/output operations scattered all around the filesystem, for instance for databases where complex queries are routinely being run, then the advantage of running them on an SSD far outweigh whatever could be gained by picking LVM over RAID or the reverse. In these situations, the choice should be determined by other considerations than pure speed, since the performance aspect is most easily handled by using SSDs." msgid "If input/output speed is of the essence, especially in terms of access times, using LVM and/or RAID in one of the many combinations may have some impact on performances, and this may influence decisions as to which to pick. However, these differences in performance are really minor, and will only be measurable in a few use cases. If performance matters, the best gain to be obtained would be to use non-rotating storage media (solid-state drives or SSDs); their cost per megabyte is higher than that of standard hard disk drives, and their capacity is usually smaller, but they provide excellent performance for random accesses. If the usage pattern includes many input/output operations scattered all around the filesystem, for instance for databases where complex queries are routinely being run, then the advantage of running them on an SSD far outweigh whatever could be gained by picking LVM over RAID or the reverse. In these situations, the choice should be determined by other considerations than pure speed, since the performance aspect is most easily handled by using SSDs." msgstr "Si la velocitat d'entrada/sortida és essencial, especialment en termes de temps d'accés, utilitzar LVM i/o RAID en una de les moltes combinacions pot tenir algun impacte en el rendiment, i això pot influir en les decisions sobre quin triar. No obstant això, aquestes diferències en el rendiment són realment menors i només es poden mesurar en alguns casos d'ús. Si el rendiment importa, el millor guany que s'obtindria seria utilitzar mitjans d'emmagatzematge no rotatoris (SSDunitats d'estat sòlid o SSDs); el seu cost per megabyte és més alt que el de les unitats de disc dur estàndard, i la seva capacitat és generalment menor, però proporcionen un rendiment excel·lent per a accessos aleatoris. Si el patró d'ús inclou moltes operacions d'entrada/sortida disperses per tot el sistema de fitxers, per exemple per a bases de dades on les consultes complexes s'executen de manera rutinària, llavors l'avantatge d'executar-les en un SSD supera amb escreix el que es podria obtenir mitjançant la tria de l'LVM sobre RAID o a l'inrevés. En aquestes situacions, l'elecció ha de ser determinada per altres consideracions que la pura velocitat, ja que l'aspecte del rendiment es resol més fàcilment mitjançant l'ús d'SSD." msgid "The third notable use case is when one just wants to aggregate two disks into one volume, either for performance reasons or to have a single filesystem that is larger than any of the available disks. This case can be addressed both by a RAID-0 (or even linear-RAID) and by an LVM volume. When in this situation, and barring extra constraints (for instance, keeping in line with the rest of the computers if they only use RAID), the configuration of choice will often be LVM. The initial set up is barely more complex, and that slight increase in complexity more than makes up for the extra flexibility that LVM brings if the requirements change or if new disks need to be added." msgstr "El tercer cas d'ús notable és quan només es vol agrupar dos discos en un volum, ja sigui per motius de rendiment o per tenir un sistema de fitxers únic que sigui més gran que qualsevol dels discos disponibles. Aquest cas es pot abordar tant per un RAID-0 (o fins i tot per un RAID lineal) com per un volum LVM. En aquesta situació, i sense restriccions addicionals (per exemple, mantenint-se en consonància amb la resta dels ordinadors si aquests només utilitzen RAID), la configuració escollida sovint serà LVM. La instal·lació inicial és poc més complexa, i aquest lleuger augment de la complexitat és més que el que compensa la flexibilitat addicional que aporta l'LVM si els requisits canvien o si cal afegir nous discos." msgid "Then of course, there is the really interesting use case, where the storage system needs to be made both resistant to hardware failure and flexible when it comes to volume allocation. Neither RAID nor LVM can address both requirements on their own; no matter, this is where we use both at the same time — or rather, one on top of the other. The scheme that has all but become a standard since RAID and LVM have reached maturity is to ensure data redundancy first by grouping disks in a small number of large RAID arrays, and to use these RAID arrays as LVM physical volumes; logical partitions will then be carved from these LVs for filesystems. The selling point of this setup is that when a disk fails, only a small number of RAID arrays will need to be reconstructed, thereby limiting the time spent by the administrator for recovery." msgstr "Després està, per descomptat, el cas d'ús realment interessant, en el qual el sistema d'emmagatzematge ha de ser resistent a fallades del maquinari i flexible pel que fa a l'assignació de volums. Ni RAID ni LVM poden abordar els dos requisits pel seu compte; tant se val, aquí és on els utilitzem tots dos alhora, o més aviat, un sobre l'altre. L'esquema que s'ha convertit en un estàndard des que RAID i LVM han arribat a la maduresa és assegurar la redundància de dades primer agrupant els discos en un petit nombre de grans conjunts RAID, i utilitzar aquests conjunts RAID com a volums físics LVM; les particions lògiques es treuran d'aquests LV per a sistemes de fitxers. El punt fort d'aquesta configuració és que quan un disc falla, només un petit nombre de conjunts RAID hauran de ser reconstruïts, limitant així el temps que l'administrador dedica a la recuperació." #, fuzzy #| msgid "Let's take a concrete example: the public relations department at Falcot Corp needs a workstation for video editing, but the department's budget doesn't allow investing in high-end hardware from the bottom up. A decision is made to favor the hardware that is specific to the graphic nature of the work (monitor and video card), and to stay with generic hardware for storage. However, as is widely known, digital video does have some particular requirements for its storage: the amount of data to store is large, and the throughput rate for reading and writing this data is important for the overall system performance (more than typical access time, for instance). These constraints need to be fulfilled with generic hardware, in this case two 300 GB SATA hard disk drives; the system data must also be made resistant to hardware failure, as well as some of the user data. Edited videoclips must indeed be safe, but video rushes pending editing are less critical, since they're still on the videotapes." msgid "Let's take a concrete example: the public relations department at Falcot Corp needs a workstation for video editing, but the department's budget doesn't allow investing in high-end hardware from the bottom up. A decision is made to favor the hardware that is specific to the graphic nature of the work (monitor and video card), and to stay with generic hardware for storage. However, as is widely known, digital video does have some particular requirements for its storage: the amount of data to store is large, and the throughput rate for reading and writing this data is important for the overall system performance (more than typical access time, for instance). These constraints need to be fulfilled with generic hardware, in this case two 300 GB SATA hard disk drives; the system data must also be made resistant to hardware failure, as well as some of the user data. Edited video clips must indeed be safe, but video rushes pending editing are less critical, since they're still on the videotapes." msgstr "Prenguem un exemple concret: el departament de relacions públiques de Falcot Corp necessita una estació de treball per a l'edició de vídeo, però el pressupost del departament no permet invertir en maquinari de gamma alta de cop. Es pren la decisió d'afavorir el maquinari que és específic de la naturalesa gràfica de la feina (monitor i targeta de vídeo), i d'estalviar amb maquinari genèric per a l'emmagatzematge. No obstant això, com és àmpliament conegut, el vídeo digital té alguns requisits particulars per al seu emmagatzematge: la quantitat de dades a emmagatzemar és gran, i la taxa de rendiment per llegir i escriure aquestes dades és important per al rendiment general del sistema (més que el temps d'accés típic, per exemple). Aquestes restriccions s'han de complir amb maquinari genèric, en aquest cas dues unitats de disc dur SATA de 300 GB; les dades del sistema també s'han de fer resistents a fallades de maquinari, així com algunes de les dades de l'usuari. Els videoclips editats han de ser segurs, però els vídeos pendents d'edició són menys crítics, ja que encara estan en cintes de vídeo." msgid "RAID-1 and LVM are combined to satisfy these constraints. The disks are attached to two different SATA controllers to optimize parallel access and reduce the risk of a simultaneous failure, and they therefore appear as sda and sdc. They are partitioned identically along the following scheme:" msgstr "RAID-1 i LVM es combinen per satisfer aquestes restriccions. Els discos es connecten a dos controladors SATA diferents per optimitzar l'accés paral·lel i reduir el risc d'una fallada simultània, i per tant apareixen com sda i sdc. Es particionen de manera idèntica seguint el següent esquema:" #, fuzzy #| msgid "" #| "# fdisk -l /dev/sda\n" #| "\n" #| "Disk /dev/sda: 300 GB, 300090728448 bytes, 586114704 sectors\n" #| "Units: sectors of 1 * 512 = 512 bytes\n" #| "Sector size (logical/physical): 512 bytes / 512 bytes\n" #| "I/O size (minimum/optimal): 512 bytes / 512 bytes\n" #| "Disklabel type: dos\n" #| "Disk identifier: 0x00039a9f\n" #| "\n" #| "Device Boot Start End Sectors Size Id Type\n" #| "/dev/sda1 * 2048 1992060 1990012 1.0G fd Linux raid autodetect\n" #| "/dev/sda2 1992061 3984120 1992059 1.0G 82 Linux swap / Solaris\n" #| "/dev/sda3 4000185 586099395 582099210 298G 5 Extended\n" #| "/dev/sda5 4000185 203977305 199977120 102G fd Linux raid autodetect\n" #| "/dev/sda6 203977306 403970490 199993184 102G fd Linux raid autodetect\n" #| "/dev/sda7 403970491 586099395 182128904 93G 8e Linux LVM" msgid "" "# sfdisk -l /dev/sda\n" "Disk /dev/sda: 894.25 GiB, 960197124096 bytes, 1875385008 sectors\n" "Disk model: SAMSUNG MZ7LM960\n" "Units: sectors of 1 * 512 = 512 bytes\n" "Sector size (logical/physical): 512 bytes / 512 bytes\n" "I/O size (minimum/optimal): 512 bytes / 512 bytes\n" "Disklabel type: gpt\n" "Disk identifier: BB14C130-9E9A-9A44-9462-6226349CA012\n" "\n" "Device Start End Sectors Size Type\n" "/dev/sda1 2048 4095 2048 1M BIOS boot\n" "/dev/sda2 4096 100667391 100663296 48G Linux RAID\n" "/dev/sda3 100667392 134221823 33554432 16G Linux RAID\n" "/dev/sda4 134221824 763367423 629145600 300G Linux RAID\n" "/dev/sda5 763367424 1392513023 629145600 300G Linux RAID\n" "/dev/sda6 1392513024 1875384974 482871951 230.3G Linux LVM\n" "" msgstr "" "# fdisk -l /dev/sda\n" "\n" "Disk /dev/sda: 300 GB, 300090728448 bytes, 586114704 sectors\n" "Units: sectors of 1 * 512 = 512 bytes\n" "Sector size (logical/physical): 512 bytes / 512 bytes\n" "I/O size (minimum/optimal): 512 bytes / 512 bytes\n" "Disklabel type: dos\n" "Disk identifier: 0x00039a9f\n" "\n" "Device Boot Start End Sectors Size Id Type\n" "/dev/sda1 * 2048 1992060 1990012 1.0G fd Linux raid autodetect\n" "/dev/sda2 1992061 3984120 1992059 1.0G 82 Linux swap / Solaris\n" "/dev/sda3 4000185 586099395 582099210 298G 5 Extended\n" "/dev/sda5 4000185 203977305 199977120 102G fd Linux raid autodetect\n" "/dev/sda6 203977306 403970490 199993184 102G fd Linux raid autodetect\n" "/dev/sda7 403970491 586099395 182128904 93G 8e Linux LVM" msgid "The first partitions of both disks are BIOS boot partitions." msgstr "" #, fuzzy #| msgid "The first partitions of both disks (about 1 GB) are assembled into a RAID-1 volume, md0. This mirror is directly used to store the root filesystem." msgid "The next two partitions sda2 and sdc2 (about 48 GB) are assembled into a RAID-1 volume, md0. This mirror is directly used to store the root filesystem." msgstr "Les primeres particions d'ambdós discos (al voltant d'1 GB) s'uneixen en un volum RAID-1, md0. Aquest mirall s'utilitza directament per emmagatzemar el sistema de fitxers arrel." #, fuzzy #| msgid "The sda2 and sdc2 partitions are used as swap partitions, providing a total 2 GB of swap space. With 1 GB of RAM, the workstation has a comfortable amount of available memory." msgid "The sda3 and sdc3 partitions are assembled into a RAID-0 volume, md1, and used as swap partition, providing a total 32 GB of swap space. Modern systems can provide plenty of RAM and our system won't need hibernation. So with this amount added, our system will unlikely run out of memory." msgstr "Les particions sda2 i sdc2 s'utilitzen com a particions d'intercanvi, proporcionant un total de 2 GB d'espai d'intercanvi. Amb 1 GB de RAM l'estació de treball té una quantitat còmoda de memòria disponible." #, fuzzy #| msgid "The sda5 and sdc5 partitions, as well as sda6 and sdc6, are assembled into two new RAID-1 volumes of about 100 GB each, md1 and md2. Both these mirrors are initialized as physical volumes for LVM, and assigned to the vg_raid volume group. This VG thus contains about 200 GB of safe space." msgid "The sda4 and sdc4 partitions, as well as sda5 and sdc5, are assembled into two new RAID-1 volumes of about 300 GB each, md2 and md3. Both these mirrors are initialized as physical volumes for LVM, and assigned to the vg_raid volume group. This VG thus contains about 600 GB of safe space." msgstr "Les particions sda5 i sdc5, així com sda6 i sdc6, s'uneixen en dos nous volums RAID-1 d'uns 100 GB cadascun, md1 i md2 . Aquests dos miralls s'inicialitzen com a volums físics per l'LVM, i s'assignen al grup de volums vg_raid. Aquest VG conté aproximadament 200 GB d'espai segur." #, fuzzy #| msgid "The remaining partitions, sda7 and sdc7, are directly used as physical volumes, and assigned to another VG called vg_bulk, which therefore ends up with roughly 200 GB of space." msgid "The remaining partitions, sda6 and sdc6, are directly used as physical volumes, and assigned to another VG called vg_bulk, which therefore ends up with roughly 460 GB of space." msgstr "Les particions restants, sda7 i sdc7, s'utilitzen directament com a volums físics, i s'assignen a un altre VG anomenat vg_bulk, que per tant acaba amb aproximadament 200 GB d'espai." msgid "Once the VGs are created, they can be partitioned in a very flexible way. One must keep in mind that LVs created in vg_raid will be preserved even if one of the disks fails, which will not be the case for LVs created in vg_bulk; on the other hand, the latter will be allocated in parallel on both disks, which allows higher read or write speeds for large files." msgstr "Una vegada que es creen els VG, es poden particionar d'una manera molt flexible. Cal tenir en compte que els LV creats a vg_raid es conservaran fins i tot si falla un dels discos, que no serà el cas dels LV creats a vg_bulk; d'altra banda, aquest últim s'assignarà en paral·lel en ambdós discos, fet que permet una major velocitat de lectura o escriptura per a fitxers grans." msgid "We will therefore create the lv_var and lv_home LVs on vg_raid, to host the matching filesystems; another large LV, lv_movies, will be used to host the definitive versions of movies after editing. The other VG will be split into a large lv_rushes, for data straight out of the digital video cameras, and a lv_tmp for temporary files. The location of the work area is a less straightforward choice to make: while good performance is needed for that volume, is it worth risking losing work if a disk fails during an editing session? Depending on the answer to that question, the relevant LV will be created on one VG or the other." msgstr "Per tant, crearem els LV lv_var i lv_home a vg_raid per acollir els sistemes de fitxers corresponents; un altre LV gran, lv_movies, s'utilitzarà per allotjar les versions definitives de les pel·lícules després de l'edició. L'altre VG es dividirà en un gran lv_rushes per a dades acabades d'obtenir de les càmeres de vídeo digital, i un lv_tmp per a fitxers temporals. La ubicació de l'àrea de treball és una opció menys senzilla de decidir: encara que es necessita un bon rendiment per a aquest volum, val la pena arriscar-se a perdre el treball si un disc falla durant una sessió d'edició? Depenent de la resposta a aquesta pregunta, el LV rellevant es crearà en un VG o l'altre." msgid "We now have both some redundancy for important data and much flexibility in how the available space is split across the applications." msgstr "Ara tenim una certa redundància per a les dades importants i molta flexibilitat en la forma en què es divideix l'espai disponible entre les aplicacions." msgid "NOTE Why three RAID-1 volumes?" msgstr "NOTA Per què tres volums RAID-1?" msgid "We could have set up one RAID-1 volume only, to serve as a physical volume for vg_raid. Why create three of them, then?" msgstr "Podríem haver establert un únic volum RAID-1 per servir com un volum físic per vg_raid. Per què crear-ne tres, doncs?" msgid "The rationale for the first split (md0 vs. the others) is about data safety: data written to both elements of a RAID-1 mirror are exactly the same, and it is therefore possible to bypass the RAID layer and mount one of the disks directly. In case of a kernel bug, for instance, or if the LVM metadata become corrupted, it is still possible to boot a minimal system to access critical data such as the layout of disks in the RAID and LVM volumes; the metadata can then be reconstructed and the files can be accessed again, so that the system can be brought back to its nominal state." msgstr "La raó per a la primera divisió (md0 vs els altres) rau en la seguretat de les dades: les dades escrites a ambdós elements d'un mirall RAID-1 són exactament les mateixes, i per tant és possible evitar la capa RAID i muntar un dels discs directament. En cas d'un error del nucli, per exemple, o si les metadades LVM es corrompen, encara és possible arrencar un sistema mínim per accedir a les dades crítiques com ara la disposició dels discos en els volums RAID i LVM; les metadades es poden reconstruir i els fitxers es poden tornar a accedir, de manera que el sistema es pugui tornar al seu estat normal." #, fuzzy #| msgid "The rationale for the second split (md1 vs. md2) is less clear-cut, and more related to acknowledging that the future is uncertain. When the workstation is first assembled, the exact storage requirements are not necessarily known with perfect precision; they can also evolve over time. In our case, we can't know in advance the actual storage space requirements for video rushes and complete video clips. If one particular clip needs a very large amount of rushes, and the VG dedicated to redundant data is less than halfway full, we can re-use some of its unneeded space. We can remove one of the physical volumes, say md2, from vg_raid and either assign it to vg_bulk directly (if the expected duration of the operation is short enough that we can live with the temporary drop in performance), or undo the RAID setup on md2 and integrate its components sda6 and sdc6 into the bulk VG (which grows by 200 GB instead of 100 GB); the lv_rushes logical volume can then be grown according to requirements." msgid "The rationale for the second split (md2 vs. md3) is less clear-cut, and more related to acknowledging that the future is uncertain. When the workstation is first assembled, the exact storage requirements are not necessarily known with perfect precision; they can also evolve over time. In our case, we can't know in advance the actual storage space requirements for video rushes and complete video clips. If one particular clip needs a very large amount of rushes, and the VG dedicated to redundant data is less than halfway full, we can re-use some of its unneeded space. We can remove one of the physical volumes, say md3, from vg_raid and either assign it to vg_bulk directly (if the expected duration of the operation is short enough that we can live with the temporary drop in performance), or undo the RAID setup on md3 and integrate its components sda5 and sdc5 into the bulk VG (which grows by 600 GB instead of 300 GB); the lv_rushes logical volume can then be grown according to requirements." msgstr "La raó per a la segona divisió (md1 vs.md2) és menys clara, i més relacionada amb reconèixer que el futur és incert. Quan l'estació de treball es munta per primera vegada, els requisits d'emmagatzematge exactes no es coneixen necessàriament amb precisió perfecta; i també poden evolucionar amb el temps. En el nostre cas, no podem saber per endavant els requisits reals d'espai d'emmagatzematge per a les descàrregues de vídeos i ni de vídeos acabats. Si un clip en particular necessita una gran quantitat de descàrregues, i el VG dedicat a les dades redundants està per sota de la meitat, podem reutilitzar part del seu espai innecessari. Podem eliminar un dels volums físics, sigui md2, de vg_raid i assignar-lo directament a vg_bulk (si la durada esperada de l'operació és prou curta com per poder passar amb la baixada temporal en el rendiment), o desfer la configuració RAID de md2 i integrar els seus components sda6 i sdc6 a la VG (que creix en 200 GB en lloc de 100 GB); el volum lògic lv_rushes llavors es pot fer créixer segons els requeriments." msgid "virtualization" msgstr "virtualització" msgid "Virtualization is one of the most major advances in the recent years of computing. The term covers various abstractions and techniques simulating virtual computers with a variable degree of independence on the actual hardware. One physical server can then host several systems working at the same time and in isolation. Applications are many, and often derive from this isolation: test environments with varying configurations for instance, or separation of hosted services across different virtual machines for security." msgstr "La virtualització és un dels avenços més importants en els últims anys de la informàtica. El terme cobreix diverses abstraccions i tècniques per simular ordinadors virtuals amb un grau variable d'independència respecte el maquinari real. Un servidor físic pot albergar diversos sistemes que treballen al mateix temps i de forma aïllada. Les aplicacions són moltes, i sovint deriven d'aquest aïllament: entorns de prova amb configuracions diferents, per exemple, o separació de serveis allotjats a través de diferents màquines virtuals per seguretat." msgid "There are multiple virtualization solutions, each with its own pros and cons. This book will focus on Xen, LXC, and KVM, but other noteworthy implementations include the following:" msgstr "Hi ha múltiples solucions de virtualització, cadascuna amb els seus propis avantatges i inconvenients. Aquest llibre se centrarà en Xen, LXC i KVM, però altres implementacions notables inclouen:" #, fuzzy #| msgid "LXC" msgid "Xen" msgstr "LXC" #, fuzzy #| msgid "LVM" msgid "VMWare" msgstr "LVM" #, fuzzy #| msgid "Nagios" msgid "Bochs" msgstr "Nagios" #, fuzzy #| msgid "LVM" msgid "QEMU" msgstr "LVM" #, fuzzy #| msgid "virtualization" msgid "VirtualBox" msgstr "virtualització" msgid "KVM" msgstr "KVM" msgid "LXC" msgstr "LXC" #, fuzzy #| msgid "QEMU is a software emulator for a full computer; performances are far from the speed one could achieve running natively, but this allows running unmodified or experimental operating systems on the emulated hardware. It also allows emulating a different hardware architecture: for instance, an amd64 system can emulate an arm computer. QEMU is free software. " msgid "QEMU is a software emulator for a full computer; performances are far from the speed one could achieve running natively, but this allows running unmodified or experimental operating systems on the emulated hardware. It also allows emulating a different hardware architecture: for instance, an amd64 system can emulate an arm computer. QEMU is free software. " msgstr "QEMU és un emulador de programari per a un ordinador complet; el rendiment està lluny de la velocitat que es podria aconseguir executant nativament, però això permet executar sistemes operatius no modificats o experimentals en el maquinari emulat. També permet emular una arquitectura de maquinari diferent: per exemple, un sistema amd64 pot emular un ordinador arm. QEMU és programari lliure. " msgid "Bochs is another free virtual machine, but it only emulates the x86 architectures (i386 and amd64)." msgstr "Bochs és una altra màquina virtual lliure, però només emula les arquitectures x86 (i386 i amd64)." #, fuzzy #| msgid "VMWare is a proprietary virtual machine; being one of the oldest out there, it is also one of the most widely-known. It works on principles similar to QEMU. VMWare proposes advanced features such as snapshotting a running virtual machine. " msgid "VMWare is a proprietary virtual machine; being one of the oldest out there, it is also one of the most widely-known. It works on principles similar to QEMU. VMWare proposes advanced features such as “snapshotting“ a running virtual machine. " msgstr "VMWare és una màquina virtual propietària; sent una de les més antigues que hi ha, també és una de les més ben conegudes. Funciona sobre principis similars a QEMU. VMWare proposa característiques avançades com ara la captura d'instantànies («snapshot» en anglès) d'una màquina virtual en execució. " #, fuzzy #| msgid "VirtualBox is a virtual machine that is mostly free software (some extra components are available under a proprietary license). Unfortunately it is in Debian's “contrib” section because it includes some precompiled files that cannot be rebuilt without a proprietary compiler and it currently only resides in Debian Unstable as Oracle's policies make it impossible to keep it secure in a Debian stable release (see #794466). While younger than VMWare and restricted to the i386 and amd64 architectures, it still includes some snapshotting and other interesting features. " msgid "VirtualBox is a virtual machine that is mostly free software (some extra components are available under a proprietary license). Unfortunately it is in Debian's “contrib” section because it includes some precompiled files that cannot be rebuilt without a proprietary compiler and it currently only resides in Debian Unstable as Oracle's policies make it impossible to keep it secure in a Debian stable release (see #794466). While younger than VMWare and restricted to the i386 and amd64 architectures, it still includes some “snapshotting“ and other interesting features. " msgstr "VirtualBox és una màquina virtual que és principalment programari lliure (alguns components addicionals estan disponibles sota una llicència propietària). Malauradament està a la secció de Debian “contrib” perquè inclou alguns fitxers precompilats que no es poden generar sense un compilador propietari, i actualment només es troba a Debian Unstable, ja que les polítiques d'Oracle fan impossible mantenir-lo segur en una versió estable de Debian (vegeu )#794466). Encara que més jove que VMWare i restringit a les arquitectures i386 i amd64, inclou poder fer instantànies i altres característiques interessants. " msgid "HARDWARE Virtualization support" msgstr "MAQUINARI Suport de virtualització" msgid "Some computers might not have hardware virtualization support; when they do, it should be enabled in the BIOS." msgstr "Alguns ordinadors podrien no tenir suport per virtualització al maquinari; quan el tenen, hauria d'estar habilitat a la BIOS." msgid "To know if you have virtualization support enabled, you can check if the relevant flag is enabled with grep. If the following command for your processor returns some text, you already have virtualization support enabled:" msgstr "Per saber si teniu habilitat el suport de virtualització, podeu comprovar si la marca rellevant està habilitada amb grep. Si la següent ordre per al vostre processador retorna algun text, ja teniu el suport de virtualització habilitat:" #, fuzzy #| msgid "For Intel processors you can execute grep vmx /proc/cpuinfo" msgid "For Intel processors you can execute grep vmx /proc/cpuinfo to check for Intel's Virtual Machine Extensions." msgstr "Per als processadors d'Intel podeu executar grep vmx /proc/cpuinfo" #, fuzzy #| msgid "For AMD processors you can execute grep svm /proc/cpuinfo" msgid "For AMD processors you can execute grep svm /proc/cpuinfo to check for AMD's Secure Virtual Machine." msgstr "Per als processadors AMD podeu executar grep svm /proc/cpuinfo" msgid "If that is not the case, you can access the BIOS of your system and check for entries like “Intel Virtualization Technology”/“Intel VT-x” or “SVM mode” (AMD) - usually to be found in the CPU configuration in the Advanced section." msgstr "" #, fuzzy #| msgid "virtualization" msgid "paravirtualization" msgstr "virtualització" #, fuzzy #| msgid "libvirt" msgid "hypervisor" msgstr "libvirt" msgid "Xen Xen is a “paravirtualization” solution. It introduces a thin abstraction layer, called a “hypervisor”, between the hardware and the upper systems; this acts as a referee that controls access to hardware from the virtual machines. However, it only handles a few of the instructions, the rest is directly executed by the hardware on behalf of the systems. The main advantage is that performances are not degraded, and systems run close to native speed; the drawback is that the kernels of the operating systems one wishes to use on a Xen hypervisor need to be adapted to run on Xen." msgstr "Xen Xen és una solució de “paravirtualització”. Presenta una capa d'abstracció prima, anomenada “hipervisor”, entre el maquinari i els sistemes superiors; això actua com un àrbitre que controla l'accés al maquinari de les màquines virtuals. Tanmateix, només gestiona algunes de les instruccions, la resta és directament executada pel maquinari en nom del sistema. L'avantatge principal és que el rendiment no queda degradat, i els sistemes s'executen gairebé la velocitat nativa; l'inconvenient és que els nuclis dels sistemes operatius que es volen utilitzar en un hipervisor de Xen s'han d'adaptar per treballar amb Xen." #, fuzzy #| msgid "deployment" msgid "dom0" msgstr "desplegament" #, fuzzy #| msgid "deployment" msgid "domU" msgstr "desplegament" #, fuzzy #| msgid "installationautomated installation" msgid "virtualizationhost" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "virtualizationguest" msgstr "instal·lacióinstal·lació automatitzada" msgid "Let's spend some time on terms. The hypervisor is the lowest layer, which runs directly on the hardware, even below the kernel. This hypervisor can split the rest of the software across several domains, which can be seen as so many virtual machines. One of these domains (the first one that gets started) is known as dom0, and has a special role, since only this domain can control the hypervisor and the execution of other domains. These other domains are known as domU. In other words, and from a user point of view, the dom0 matches the “host” of other virtualization systems, while a domU can be seen as a “guest”." msgstr "Passem una mica de temps amb els termes. L'hipervisor és la capa inferior, que funciona directament en el maquinari, fins i tot per sota del nucli. Aquest hipervisor pot dividir la resta del programari en diversos dominis, que es poden veure com a tantes màquines virtuals. Un d'aquests dominis (el primer que comença) és conegut com dom0, i té un paper especial, ja que només aquest domini pot controlar l'hipervisor i l'execució d'altres dominis. Aquests altres dominis es coneixen com domU. En altres paraules, i des del punt de vista de l'usuari, el dom0 coincideix amb l'“amfitrió” d'altres sistemes de virtualització, mentre que un domU pot ser vist com un “convidat”." msgid "CULTURE Xen and the various versions of Linux" msgstr "CULTURA Xen i les diverses versions de Linux" msgid "Xen was initially developed as a set of patches that lived out of the official tree, and not integrated to the Linux kernel. At the same time, several upcoming virtualization systems (including KVM) required some generic virtualization-related functions to facilitate their integration, and the Linux kernel gained this set of functions (known as the paravirt_ops or pv_ops interface). Since the Xen patches were duplicating some of the functionality of this interface, they couldn't be accepted officially." msgstr "Xen es va desenvolupar inicialment com un conjunt de pedaços que existien fora de l'arbre oficial, i no integrats al nucli de Linux. Al mateix temps, diversos sistemes de virtualització que anaven apareixen (incloent-hi KVM) requerien algunes funcions genèriques relacionades amb la virtualització per facilitar-ne la integració, i el nucli de Linux va guanyar aquest conjunt de funcions (conegudes com a paravirt_ops o pv_ops). Com que els pedaços de Xen estaven duplicant algunes de les funcionalitats d'aquesta interfície, no es podien acceptar oficialment." msgid "Xensource, the company behind Xen, therefore had to port Xen to this new framework, so that the Xen patches could be merged into the official Linux kernel. That meant a lot of code rewrite, and although Xensource soon had a working version based on the paravirt_ops interface, the patches were only progressively merged into the official kernel. The merge was completed in Linux 3.0. " msgstr "Xensource, l'empresa darrere de Xen, va haver de portar Xen a aquest nou marc, de manera que els pedaços de Xen es podrien fusionar amb el nucli oficial de Linux. Això va significar una gran quantitat de reescriptura de codi, i tot i que Xensource aviat va tenir una versió de treball basada en la interfície paravirt_ops, els pedaços només es van fusionar progressivament en el nucli oficial. La fusió es va completar a Linux 3.0. " msgid "Since Jessie is based on version 3.16 of the Linux kernel, the standard linux-image-686-pae and linux-image-amd64 packages include the necessary code, and the distribution-specific patching that was required for Squeeze and earlier versions of Debian is no more. " msgstr "Atès que Jessie es basa en la versió 3.16 del nucli de Linux, els paquets estàndard linux-image-686-pae i linux-image-amd64 inclouen el codi necessari, i el pedaços específics per a la distribució que es requerien per a Squeeze i versions anteriors de Debian ja no calen. " msgid "CULTURE Xen and non-Linux kernels" msgstr "CULTURA Xen i nuclis no Linux" msgid "Xen requires modifications to all the operating systems one wants to run on it; not all kernels have the same level of maturity in this regard. Many are fully-functional, both as dom0 and domU: Linux 3.0 and later, NetBSD 4.0 and later, and OpenSolaris. Others only work as a domU. You can check the status of each operating system in the Xen wiki: " msgstr "Xen requereix modificacions a tots els sistemes operatius que es volen executar; no tots els nuclis tenen el mateix nivell de maduresa en aquest sentit. Molts són totalment funcionals, tant com a dom0 i com a domU: Linux 3.0 i posteriors, NetBSD 4.0 i posteriors, i OpenSolaris. Altres només funcionen com a domU. Podeu comprovar l'estat de cada sistema operatiu a la wiki de Xen: " msgid "However, if Xen can rely on the hardware functions dedicated to virtualization (which are only present in more recent processors), even non-modified operating systems can run as domU (including Windows)." msgstr "No obstant això, si Xen pot confiar en les funcions de maquinari dedicades a la virtualització (que només estan presents en processadors més recents), fins i tot els sistemes operatius no modificats poden funcionar com domU (incloent-hi Windows)." msgid "NOTE Architectures compatible with Xen" msgstr "NOTA Arquitectures compatibles amb Xen" msgid "Xen is currently only available for the i386, amd64, arm64 and armhf architectures." msgstr "Xen actualment només està disponible per a les arquitectures i386, amd64, arm64 i armhf." msgid "Using Xen under Debian requires three components:" msgstr "L'ús de Xen amb Debian requereix tres components:" #, fuzzy #| msgid "virtinst" msgid "xen-hypervisor" msgstr "virtinst" #, fuzzy #| msgid "The hypervisor itself. According to the available hardware, the appropriate package will be either xen-hypervisor-4.11-amd64, xen-hypervisor-4.11-armhf, or xen-hypervisor-4.11-arm64." msgid "The hypervisor itself. According to the available hardware, the appropriate package providing xen-hypervisor will be either xen-hypervisor-4.14-amd64, xen-hypervisor-4.14-armhf, or xen-hypervisor-4.14-arm64." msgstr "L'hipervisor mateix. D'acord amb el maquinari disponible, el paquet apropiat serà xen-hipervisor-4.11-amd64, xen-hipervisor-4.11-armhf, o xen-hipervisor-4.11-arm64." #, fuzzy #| msgid "A kernel that runs on that hypervisor. Any kernel more recent than 3.0 will do, including the 4.19 version present in Buster." msgid "A kernel that runs on that hypervisor. Any kernel more recent than 3.0 will do, including the 5.10 version present in Bullseye." msgstr "Un nucli que s'executi sobre aquest hipervisor. Qualsevol nucli més recent que el 3.0 ho farà, incloent-hi la versió 4.19 present a Buster." msgid "The i386 architecture also requires a standard library with the appropriate patches taking advantage of Xen; this is in the libc6-xen package." msgstr "L'arquitectura i386 també requereix una biblioteca estàndard amb els pedaços apropiats que aprofiten Xen; això es troba al paquet libc6-xen." #, fuzzy #| msgid "virtinst" msgid "xen-utils" msgstr "virtinst" #, fuzzy #| msgid "The hypervisor also brings xen-utils-4.11, which contains tools to control the hypervisor from the dom0. This in turn brings the appropriate standard library. During the installation of all that, configuration scripts also create a new entry in the GRUB bootloader menu, so as to start the chosen kernel in a Xen dom0. Note, however, that this entry is not usually set to be the first one in the list, but it will be selected by default." msgid "The hypervisor also brings xen-utils-4.14, which contains tools to control the hypervisor from the dom0. This in turn brings the appropriate standard library. During the installation of all that, configuration scripts also create a new entry in the GRUB bootloader menu, so as to start the chosen kernel in a Xen dom0. Note, however, that this entry is not usually set to be the first one in the list, but it will be selected by default." msgstr "L'hipervisor també porta xen-utils-4.11, que conté eines per controlar l'hipervisor des de la dom0. Això, al seu torn, porta la biblioteca estàndard apropiada. Durant la instal·lació de tot això, els scripts de configuració també creen una nova entrada al menú d'arrencada de GRUB, per tal d'iniciar el nucli escollit en un Xen dom0. No obstant això, cal tenir en compte que aquesta entrada no sol ser la primera de la llista, però serà seleccionada per defecte." msgid "Once these prerequisites are installed, the next step is to test the behavior of the dom0 by itself; this involves a reboot to the hypervisor and the Xen kernel. The system should boot in its standard fashion, with a few extra messages on the console during the early initialization steps." msgstr "Una vegada instal·lats aquests requisits previs, el següent pas és provar el comportament del dom0 per si mateix; això implica un reinici cap a l'hipervisor i el nucli Xen. El sistema hauria d'arrencar en la seva forma estàndard, amb alguns missatges addicionals a la consola durant els primers passos d'inicialització." #, fuzzy #| msgid "virtinst" msgid "xen-tools" msgstr "virtinst" #, fuzzy #| msgid "xe" msgid "xen-create-image" msgstr "xe" #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/xen-tools/xen-tools.conf" msgstr "instal·lacióinstal·lació automatitzada" msgid "Now is the time to actually install useful systems on the domU systems, using the tools from xen-tools. This package provides the xen-create-image command, which largely automates the task. The only mandatory parameter is --hostname, giving a name to the domU; other options are important, but they can be stored in the /etc/xen-tools/xen-tools.conf configuration file, and their absence from the command line doesn't trigger an error. It is therefore important to either check the contents of this file before creating images, or to use extra parameters in the xen-create-image invocation. Important parameters of note include the following:" msgstr "Ara és el moment d'instal·lar sistemes útils en els sistemes domU, utilitzant les eines de xen-tools. Aquest paquet proporciona l'ordre xen-create-image, que en gran part automatitza la tasca. L'únic paràmetre obligatori és --hostname, que dóna un nom a la domU; altres opcions són importants, però es poden desar al fitxer de configuració /etc/xen-tools/xen-tools.conf, i la seva absència a la línia d'ordres no activa cap error. Per tant, és important comprovar el contingut d'aquest fitxer abans de crear imatges, o utilitzar paràmetres addicionals en la invocació de xen-create-image. Els paràmetres importants a tenir en compte inclouen:" msgid "--memory, to specify the amount of RAM dedicated to the newly created system;" msgstr "--memory, per especificar la quantitat de RAM dedicada al sistema acabat de crear;" msgid "--size and --swap, to define the size of the “virtual disks” available to the domU;" msgstr "--size i --swap, per definir la mida dels \"discos virtuals\" disponibles per al domU;" #, fuzzy #| msgid "debconf" msgid "debootstrap" msgstr "debconf" #, fuzzy #| msgid "--debootstrap-cmd, to specify the which debootstrap command is used. The default is debootstrap if debootstrap and cdebootstrap are installed. In that case, the --dist option will also most often be used (with a distribution name such as buster)." msgid "--debootstrap-cmd, to specify the which debootstrap command is used. The default is debootstrap if debootstrap and cdebootstrap are installed. In that case, the --dist option will also most often be used (with a distribution name such as bullseye)." msgstr "--debootstrap-cmd, per especificar quina ordre de debootstrap s'utilitza. El valor per defecte és debootstrap si debootstrap i cdebootstrap estan instal·lats. En aquest cas, l'opció --dist també s'utilitzarà més sovint (amb un nom de distribució com ara buster)." msgid "GOING FURTHER Installing a non-Debian system in a domU" msgstr "ANANT MÉS ENLLÀ Instal·lació d'un sistema diferent de Debian en un domU" msgid "In case of a non-Linux system, care should be taken to define the kernel the domU must use, using the --kernel option." msgstr "En el cas d'un sistema no Linux, s'ha de tenir cura de definir el nucli que el domU ha d'utilitzar, utilitzant l'opció --kernel." msgid "--dhcp states that the domU's network configuration should be obtained by DHCP while --ip allows defining a static IP address." msgstr "--dhcp indica que la configuració de la xarxa de domU s'ha d'obtenir mitjançant DHCP, mentre que --ip permet definir una adreça IP estàtica." #, fuzzy #| msgid "installationautomated installation" msgid "LVMXen" msgstr "instal·lacióinstal·lació automatitzada" msgid "Lastly, a storage method must be chosen for the images to be created (those that will be seen as hard disk drives from the domU). The simplest method, corresponding to the --dir option, is to create one file on the dom0 for each device the domU should be provided. For systems using LVM, the alternative is to use the --lvm option, followed by the name of a volume group; xen-create-image will then create a new logical volume inside that group, and this logical volume will be made available to the domU as a hard disk drive." msgstr "Finalment, s'ha de triar un mètode d'emmagatzematge per a les imatges que es crearan (aquelles que es veuran com a discos durs des de la domU). El mètode més simple, que correspon a l'opció --dir, és crear un fitxer al dom0 per a cada dispositiu que s'ha de proporcionar al domU. Per a sistemes que utilitzen LVM, l'alternativa és utilitzar l'opció --lvm, seguida pel nom d'un grup de volums; xen-create-image crearà un nou volum lògic dins d'aquest grup, i aquest volum lògic estarà disponible a la domU com a disc dur." msgid "NOTE Storage in the domU" msgstr "NOTA Emmagatzematge al domU" msgid "Entire hard disks can also be exported to the domU, as well as partitions, RAID arrays or pre-existing LVM logical volumes. These operations are not automated by xen-create-image, however, so editing the Xen image's configuration file is in order after its initial creation with xen-create-image." msgstr "Discos durs sencers també es poden exportar al domU, així com particions, conjunts RAID o volums lògics LVM preexistents. Aquestes operacions no estan automatitzades per xen-create-image, de manera que l'edició del fitxer de configuració de la imatge Xen serà necessària després de la seva creació inicial amb xen-create-image." msgid "Once these choices are made, we can create the image for our future Xen domU:" msgstr "Una vegada que es prenen aquestes decisions, podem crear la imatge per al nostre futur domU de Xen:" #, fuzzy #| msgid "" #| "# xen-create-image --hostname testxen --dhcp --dir /srv/testxen --size=2G --dist=buster --role=udev\n" #| "\n" #| "[...]\n" #| "General Information\n" #| "--------------------\n" #| "Hostname : testxen\n" #| "Distribution : buster\n" #| "Mirror : http://deb.debian.org/debian\n" #| "Partitions : swap 512M (swap)\n" #| " / 2G (ext4)\n" #| "Image type : sparse\n" #| "Memory size : 256M\n" #| "Kernel path : /boot/vmlinuz-4.19.0-5-amd64\n" #| "Initrd path : /boot/initrd.img-4.19.0-5-amd64\n" #| "[...]\n" #| "Logfile produced at:\n" #| " /var/log/xen-tools/testxen.log\n" #| "\n" #| "Installation Summary\n" #| "---------------------\n" #| "Hostname : testxen\n" #| "Distribution : buster\n" #| "MAC Address : 00:16:3E:0C:74:2F\n" #| "IP Address(es) : dynamic\n" #| "SSH Fingerprint : SHA256:PuAGX4/4S07Xzh1u0Cl2tL04EL5udf9ajvvbufBrfvU (DSA)\n" #| "SSH Fingerprint : SHA256:ajFTX54eakzolyzmZku/ihq/BK6KYsz5MewJ98BM5co (ECDSA)\n" #| "SSH Fingerprint : SHA256:/sFov86b+rD/bRSJoHKbiMqzGFiwgZulEwpzsiw6aSc (ED25519)\n" #| "SSH Fingerprint : SHA256:/NJg/CcoVj+OLE/cL3yyJINStnla7YkHKe3/xEdVGqc (RSA)\n" #| "Root Password : EwmQMHtywY9zsRBpqQuxZTb\n" #| "" msgid "" "# xen-create-image --hostname testxen --dhcp --dir /srv/testxen --size=2G --dist=bullseye --role=udev\n" "\n" "General Information\n" "--------------------\n" "Hostname : testxen\n" "Distribution : bullseye\n" "Mirror : http://deb.debian.org/debian\n" "Partitions : swap 512M (swap)\n" " / 2G (ext4)\n" "Image type : sparse\n" "Memory size : 256M\n" "Bootloader : pygrub\n" "\n" "[...]\n" "Logfile produced at:\n" "\t /var/log/xen-tools/testxen.log\n" "\n" "Installation Summary\n" "---------------------\n" "Hostname : testxen\n" "Distribution : bullseye\n" "MAC Address : 00:16:3E:C2:07:EE\n" "IP Address(es) : dynamic\n" "SSH Fingerprint : SHA256:K+0QjpGzZOacLZ3jX4gBwp0mCESt5ceN5HCJZSKWS1A (DSA)\n" "SSH Fingerprint : SHA256:9PnovvGRuTw6dUcEVzzPKTITO0+3Ki1Gs7wu4ke+4co (ECDSA)\n" "SSH Fingerprint : SHA256:X5z84raKBajUkWBQA6MVuanV1OcV2YIeD0NoCLLo90k (ED25519)\n" "SSH Fingerprint : SHA256:VXu6l4tsrCoRsXOqAwvgt57sMRj2qArEbOzHeydvV34 (RSA)\n" "Root Password : FS7CUxsY3xkusv7EkbT9yae\n" "" msgstr "" "# xen-create-image --hostname testxen --dhcp --dir /srv/testxen --size=2G --dist=buster --role=udev\n" "\n" "[...]\n" "General Information\n" "--------------------\n" "Hostname : testxen\n" "Distribution : buster\n" "Mirror : http://deb.debian.org/debian\n" "Partitions : swap 512M (swap)\n" " / 2G (ext4)\n" "Image type : sparse\n" "Memory size : 256M\n" "Kernel path : /boot/vmlinuz-4.19.0-5-amd64\n" "Initrd path : /boot/initrd.img-4.19.0-5-amd64\n" "[...]\n" "Logfile produced at:\n" " /var/log/xen-tools/testxen.log\n" "\n" "Installation Summary\n" "---------------------\n" "Hostname : testxen\n" "Distribution : buster\n" "MAC Address : 00:16:3E:0C:74:2F\n" "IP Address(es) : dynamic\n" "SSH Fingerprint : SHA256:PuAGX4/4S07Xzh1u0Cl2tL04EL5udf9ajvvbufBrfvU (DSA)\n" "SSH Fingerprint : SHA256:ajFTX54eakzolyzmZku/ihq/BK6KYsz5MewJ98BM5co (ECDSA)\n" "SSH Fingerprint : SHA256:/sFov86b+rD/bRSJoHKbiMqzGFiwgZulEwpzsiw6aSc (ED25519)\n" "SSH Fingerprint : SHA256:/NJg/CcoVj+OLE/cL3yyJINStnla7YkHKe3/xEdVGqc (RSA)\n" "Root Password : EwmQMHtywY9zsRBpqQuxZTb\n" "" msgid "We now have a virtual machine, but it is currently not running (and therefore only using space on the dom0's hard disk). Of course, we can create more images, possibly with different parameters." msgstr "Ara tenim una màquina virtual, però actualment no s'està executant (i, per tant, només utilitza espai al disc dur del dom0). Per descomptat, podem crear més imatges, possiblement amb paràmetres diferents." #, fuzzy #| msgid "installationautomated installation" msgid "Xennetwork models" msgstr "instal·lacióinstal·lació automatitzada" msgid "Before turning these virtual machines on, we need to define how they'll be accessed. They can of course be considered as isolated machines, only accessed through their system console, but this rarely matches the usage pattern. Most of the time, a domU will be considered as a remote server, and accessed only through a network. However, it would be quite inconvenient to add a network card for each domU; which is why Xen allows creating virtual interfaces that each domain can see and use in a standard way. Note that these cards, even though they're virtual, will only be useful once connected to a network, even a virtual one. Xen has several network models for that:" msgstr "Abans d'engegar aquestes màquines virtuals, hem de definir com s'accediran. Per descomptat, es poden considerar màquines aïllades, només accessibles a través de la seva consola de sistema, però això rarament coincideix amb el patró d'ús. La major part del temps, un domU es considerarà un servidor remot, i només s'accedirà a través d'una xarxa. No obstant això, seria bastant incòmode afegir una targeta de xarxa per a cada domU; per això Xen permet crear interfícies virtuals que cada domini pot veure i utilitzar de manera habitual. Tingueu en compte que aquestes targetes, encara que siguin virtuals, només seran útils una vegada connectades a una xarxa, fins i tot una de virtual. Xen té diversos models de xarxa per a això:" msgid "The simplest model is the bridge model; all the eth0 network cards (both in the dom0 and the domU systems) behave as if they were directly plugged into an Ethernet switch." msgstr "El model més simple és el model bridge; totes les targetes de xarxa eth0 (tant al dom0 com als sistemes domU) es comporten com si estiguessin connectades directament a un commutador Ethernet." msgid "Then comes the routing model, where the dom0 behaves as a router that stands between the domU systems and the (physical) external network." msgstr "Després ve el model d'encaminament, on el dom0 es comporta com un encaminador que es troba entre els sistemes domU i la xarxa externa (física)." msgid "Finally, in the NAT model, the dom0 is again between the domU systems and the rest of the network, but the domU systems are not directly accessible from outside, and traffic goes through some network address translation on the dom0." msgstr "Finalment, en el model NAT, el dom0 es troba de nou entre els sistemes domU i la resta de la xarxa, però els sistemes domU no són directament accessibles des de l'exterior, i el trànsit passa a través d'una traducció d'adreces de xarxa a la dom0." msgid "These three networking nodes involve a number of interfaces with unusual names, such as vif*, veth*, peth* and xenbr0. The Xen hypervisor arranges them in whichever layout has been defined, under the control of the user-space tools. Since the NAT and routing models are only adapted to particular cases, we will only address the bridging model." msgstr "Aquests tres nodes de xarxa impliquen una sèrie d'interfícies amb noms inusuals, com vif*, veth*, peth* i xenbr0. L'hipervisor Xen disposa en qualsevol disposició que s'hagi definit, sota el control de les eines d'espai d'usuari. Com que els models NAT i d'encaminament només estan adaptats a casos particulars, només ens ocuparem del model de pont («bridging»)." #, fuzzy #| msgid "The standard configuration of the Xen packages does not change the system-wide network configuration. However, the xend daemon is configured to integrate virtual network interfaces into any pre-existing network bridge (with xenbr0 taking precedence if several such bridges exist). We must therefore set up a bridge in /etc/network/interfaces (which requires installing the bridge-utils package, which is why the xen-utils-4.11 package recommends it) to replace the existing eth0 entry:" msgid "The standard configuration of the Xen packages does not change the system-wide network configuration. However, the xend daemon is configured to integrate virtual network interfaces into any pre-existing network bridge (with xenbr0 taking precedence if several such bridges exist). We must therefore set up a bridge in /etc/network/interfaces (which requires installing the bridge-utils package, which is why the xen-utils package recommends it) to replace the existing eth0 entry (be careful to use the correct network device name):" msgstr "La configuració estàndard dels paquets Xen no canvia la configuració de xarxa del sistema. No obstant això, el dimoni xend està configurat per integrar les interfícies de xarxa virtuals en qualsevol pont de xarxa preexistent (amb xenbr0 tenint precedència si existeixen diversos d'aquests ponts). Per tant, hem d'establir un pont a /etc/network/interfaces (que requereix la instal·lació del paquet bridge-utils, que és el motiu pel qual el paquet xen-utils-4.11 el recomana) per reemplaçar l'entrada et0 existent:" #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/network/interfaces" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "virtinst" msgid "bridge-utils" msgstr "virtinst" #, fuzzy #| msgid "installationautomated installation" msgid "Xenxenbr0" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "" #| "auto xenbr0\n" #| "iface xenbr0 inet dhcp\n" #| " bridge_ports eth0\n" #| " bridge_maxwait 0\n" #| " " msgid "" "auto xenbr0\n" "iface xenbr0 inet dhcp\n" " bridge_ports eth0\n" " bridge_maxwait 0" msgstr "" "auto xenbr0\n" "iface xenbr0 inet dhcp\n" " bridge_ports eth0\n" " bridge_maxwait 0\n" " " #, fuzzy #| msgid "xm" msgid "xl" msgstr "xm" msgid "After rebooting to make sure the bridge is automatically created, we can now start the domU with the Xen control tools, in particular the xl command. This command allows different manipulations on the domains, including listing them and, starting/stopping them. You might need to increase the default memory by editing the variable memory from configuration file (in this case, /etc/xen/testxen.cfg). Here we have set it to 1024 (megabytes)." msgstr "Després de reiniciar per assegurar-se que el pont es crea automàticament, ara podem iniciar el domU amb les eines de control Xen, en particular l'ordre xl. Aquesta ordre permet diferents manipulacions als dominis, incloent-hi llistar-los i iniciar/aturar-los. És possible incrementar la memòria per defecte editant la variable memòria del fitxer de configuració (en aquest cas, /etc/xen/testxen.cfg). Aquí l'hem establert a 1024 (megabytes)." #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/xen/testxen.cfg" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "" #| "# xl list\n" #| "Name ID Mem VCPUs\tState\tTime(s)\n" #| "Domain-0 0 1894 2 r----- 63.5\n" #| "# xl create /etc/xen/testxen.cfg\n" #| "Parsing config from /etc/xen/testxen.cfg\n" #| "# xl list\n" #| "Name ID Mem VCPUs\tState\tTime(s)\n" #| "Domain-0 0 1505 2 r----- 100.0\n" #| "testxen 13 1024 0 --p--- 0.0" msgid "" "# xl list\n" "Name ID Mem VCPUs\tState\tTime(s)\n" "Domain-0 0 3918 2 r----- 35.1\n" "# xl create /etc/xen/testxen.cfg\n" "Parsing config from /etc/xen/testxen.cfg\n" "# xl list\n" "Name ID Mem VCPUs\tState\tTime(s)\n" "Domain-0 0 2757 2 r----- 45.2\n" "testxen 3 1024 1 r----- 1.3\n" "" msgstr "" "# xl list\n" "Name ID Mem VCPUs\tState\tTime(s)\n" "Domain-0 0 1894 2 r----- 63.5\n" "# xl create /etc/xen/testxen.cfg\n" "Parsing config from /etc/xen/testxen.cfg\n" "# xl list\n" "Name ID Mem VCPUs\tState\tTime(s)\n" "Domain-0 0 1505 2 r----- 100.0\n" "testxen 13 1024 0 --p--- 0.0" msgid "TOOL Choice of toolstacks to manage Xen VM" msgstr "EINA Tria de conjunts d'eines per gestionar Xen VM" msgid "xm" msgstr "xm" msgid "xe" msgstr "xe" msgid "virsh" msgstr "virsh" #, fuzzy #| msgid "virtinst" msgid "libvirt" msgstr "virtinst" #, fuzzy #| msgid "In Debian 7 and older releases, xm was the reference command line tool to use to manage Xen virtual machines. It has now been replaced by xl which is mostly backwards compatible. But those are not the only available tools: virsh of libvirt and xe of XenServer's XAPI (commercial offering of Xen) are alternative tools." msgid "In Debian 7 and older releases, xm was the reference command line tool to use to manage Xen virtual machines. It has now been replaced by xl which is mostly backwards compatible. But those are not the only available tools: virsh of libvirt and xe of XenServer's XAPI (commercial offering of Xen) are alternative tools." msgstr "En Debian 7 i versions anteriors, xm va ser l'eina de referència en línia d'ordres que es va utilitzar per gestionar les màquines virtuals de Xen. Ara ha estat substituïda per xl que és majoritàriament compatible amb versions anteriors. Però aquestes no són les úniques eines disponibles: virsh de libvirt i xe de XenServer's XAPI (oferiment comercial de Xen) són eines alternatives." msgid "CAUTION Only one domU per image!" msgstr "COMPTE Només un domU per imatge!" msgid "While it is of course possible to have several domU systems running in parallel, they will all need to use their own image, since each domU is made to believe it runs on its own hardware (apart from the small slice of the kernel that talks to the hypervisor). In particular, it isn't possible for two domU systems running simultaneously to share storage space. If the domU systems are not run at the same time, it is, however, quite possible to reuse a single swap partition, or the partition hosting the /home filesystem." msgstr "Tot i que és possible tenir diversos sistemes domU funcionant en paral·lel, tots ells hauran d'utilitzar la seva pròpia imatge, ja que cada domU creu que funciona en el seu propi maquinari (tret de la petita part del nucli que parla amb l'hipervisor). En particular, no és possible que dos sistemes domU que s'executen simultàniament comparteixin espai d'emmagatzematge. Si els sistemes domU no s'executen al mateix temps, és molt possible reutilitzar una única partició d'intercanvi, o la partició que alberga el sistema de fitxers /home." msgid "Note that the testxen domU uses real memory taken from the RAM that would otherwise be available to the dom0, not simulated memory. Care should therefore be taken, when building a server meant to host Xen instances, to provision the physical RAM accordingly." msgstr "Tingueu en compte que el domU testxen utilitza memòria real, no simulada, presa de la RAM que d'altra manera estaria disponible per a la memòria dom0. Per tant, s'hauria de tenir cura quan es munti un servidor destinat a albergar instàncies Xen de proveir la RAM física en conseqüència." msgid "Voilà! Our virtual machine is starting up. We can access it in one of two modes. The usual way is to connect to it “remotely” through the network, as we would connect to a real machine; this will usually require setting up either a DHCP server or some DNS configuration. The other way, which may be the only way if the network configuration was incorrect, is to use the hvc0 console, with the xl console command:" msgstr "Voilà! La nostra màquina virtual està iniciant-se. Podem accedir-hi de dues maneres. La forma habitual és connectar-s'hi “remotament” a través de la xarxa, ja que ens connectaríem a una màquina real; això sol requerir la creació d'un servidor DHCP o alguna configuració DNS. L'altra manera, que pot ser l'única via si la configuració de xarxa és incorrecta, és utilitzar la consola hvc0, amb l'ordre xl console:" #, fuzzy #| msgid "installationautomated installation" msgid "Xenhvc0" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "" #| "# xl console testxen\n" #| "[...]\n" #| "\n" #| "Debian GNU/Linux 10 testxen hvc0\n" #| "\n" #| "testxen login: " msgid "" "# xl console testxen\n" "[...]\n" "\n" "Debian GNU/Linux 11 testxen hvc0\n" "\n" "testxen login: " msgstr "" "# xl console testxen\n" "[...]\n" "\n" "Debian GNU/Linux 10 testxen hvc0\n" "\n" "testxen login: " msgid "One can then open a session, just like one would do if sitting at the virtual machine's keyboard. Detaching from this console is achieved through the Control ] key combination." msgstr "Llavors es pot obrir una sessió, com si s'estigués assegut al teclat de la màquina virtual. Desconnectar-te d'aquesta consola s'aconsegueix a través de la combinació de tecles Control]." msgid "TIP Getting the console straight away" msgstr "SUGGERIMENT Accedir a la consola immediatament" #, fuzzy #| msgid "installationautomated installation" msgid "Xenconsole" msgstr "instal·lacióinstal·lació automatitzada" msgid "Sometimes one wishes to start a domU system and get to its console straight away; this is why the xl create command takes a -c switch. Starting a domU with this switch will display all the messages as the system boots." msgstr "A vegades es vol iniciar un sistema domU i entrar a la seva consola immediatament; per això l'ordre xl create té una opció -c. Si inicieu un domU amb aquesta opció es mostraran tots els missatges de l'engegada del sistema." #, fuzzy #| msgid "TOOL OpenXenManager" msgid "TOOL Graphical Xen managers" msgstr "EINA OpenXenManager" #, fuzzy #| msgid "installationautomated installation" msgid "Xenmanager" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "OpenXenManager (in the openxenmanager package) is a graphical interface allowing remote management of Xen domains via Xen's API. It can thus control Xen domains remotely. It provides most of the features of the xl command." msgid "OpenXenManager (in the openxenmanager package), a graphical interface allowing remote management of Xen domains via Xen's API, is no longer provided by Debian due to the lack of upstream development. If you are looking for a replacement, virt-manager provides support to handle Xen VMs as well." msgstr "OpenXenManager (del paquet openxenmanager) és una interfície gràfica que permet la gestió remota dels dominis Xen a través de l'API de Xen. Per tant, pot controlar els dominis Xen remotament. Proporciona la majoria de les característiques de l'ordre xl." #, fuzzy #| msgid "virt-manager" msgid "openxenmanager" msgstr "virt-manager" msgid "virt-manager" msgstr "virt-manager" msgid "Once the domU is up, it can be used just like any other server (since it is a GNU/Linux system after all). However, its virtual machine status allows some extra features. For instance, a domU can be temporarily paused then resumed, with the xl pause and xl unpause commands. Note that even though a paused domU does not use any processor power, its allocated memory is still in use. It may be interesting to consider the xl save and xl restore commands: saving a domU frees the resources that were previously used by this domU, including RAM. When restored (or unpaused, for that matter), a domU doesn't even notice anything beyond the passage of time. If a domU was running when the dom0 is shut down, the packaged scripts automatically save the domU, and restore it on the next boot. This will of course involve the standard inconvenience incurred when hibernating a laptop computer, for instance; in particular, if the domU is suspended for too long, network connections may expire. Note also that Xen is so far incompatible with a large part of ACPI power management, which precludes suspending the host (dom0) system." msgstr "Una vegada que el domU està engegat, es pot utilitzar com qualsevol altre servidor (ja que després de tot és un sistema GNU/Linux). Tanmateix, el seu estat de la màquina virtual permet algunes característiques addicionals. Per exemple, un domU pot ser pausat temporalment i després es pot reprendre amb les ordres xl pause i xl unpause. Tingueu en compte que, tot i que un domU en pausa no utilitza cap cicle de processador, la seva memòria assignada encara està en ús. Pot ser interessant considerar les ordres xl save i xl restore: desar («save») un domU allibera els recursos que anteriorment eren usats per aquest domU, incloent-hi la RAM. Quan es restaura (o es reprèn, que ve a ser el mateix en aquest cas), un domU no se n''adona de res més enllà temps que pugui haver passat. Si un domU s'estava executant quan el dom0 s'atura, els scripts inclosos automàticament desaran el domU, i el reprendran a la següent arrencada. Això implicarà, per descomptat, les molèsties habituals en la hibernació d'un ordinador portàtil, per exemple; en particular, si el domU està suspès durant massa temps, les connexions de xarxa poden expirar. Cal tenir en compte que Xen és fins ara incompatible amb una gran part de la gestió d'energia ACPI, que exclou la possibilitat de suspensió del sistema amfitrió (dom0)." #, fuzzy #| msgid "installationautomated installation" msgid "XenACPI" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "RAID" msgid "ACPI" msgstr "RAID" msgid "Halting or rebooting a domU can be done either from within the domU (with the shutdown command) or from the dom0, with xl shutdown or xl reboot." msgstr "L'aturada o el reinici d'un domU es pot fer des del domU (amb l'ordre shutdown) o des del dom0 amb xl shutdown o xl reboot)." msgid "Most of the xl subcommands expect one or more arguments, often a domU name. These arguments are well described in the xl 1 manual page." msgstr "La majoria de les subordres xl esperen un o més arguments, sovint un nom de domU. Aquests arguments estan ben descrits en la pàgina del manual xl 1." msgid "GOING FURTHER Advanced Xen" msgstr "ANANT MÉS ENLLÀ Xen avançat" #, fuzzy #| msgid "installationautomated installation" msgid "Xendocumentation" msgstr "instal·lacióinstal·lació automatitzada" msgid "Xen has many more features than we can describe in these few paragraphs. In particular, the system is very dynamic, and many parameters for one domain (such as the amount of allocated memory, the visible hard drives, the behavior of the task scheduler, and so on) can be adjusted even when that domain is running. A domU can even be migrated across servers without being shut down, and without losing its network connections! For all these advanced aspects, the primary source of information is the official Xen documentation. " msgstr "Xen té moltes més característiques de les que podem descriure en aquests pocs paràgrafs. En particular, el sistema és molt dinàmic, i molts paràmetres per a un domini (com la quantitat de memòria assignada, els discs durs visibles, el comportament del planificador de tasques, etc.) es poden ajustar fins i tot quan aquest domini s'està executant. Un domU fins i tot es pot migrar a través de servidors sense aturar-se i sense perdre les seves connexions de xarxa! Per a tots aquests aspectes avançats, la principal font d'informació és la documentació oficial de Xen. " #, fuzzy #| msgid "Munin" msgid "Linux ContainersLXC" msgstr "Munin" #, fuzzy #| msgid "installationautomated installation" msgid "kernelcontrol groups" msgstr "instal·lacióinstal·lació automatitzada" msgid "Even though it is used to build “virtual machines”, LXC is not, strictly speaking, a virtualization system, but a system to isolate groups of processes from each other even though they all run on the same host. It takes advantage of a set of recent evolutions in the Linux kernel, collectively known as control groups, by which different sets of processes called “groups” have different views of certain aspects of the overall system. Most notable among these aspects are the process identifiers, the network configuration, and the mount points. Such a group of isolated processes will not have any access to the other processes in the system, and its accesses to the filesystem can be restricted to a specific subset. It can also have its own network interface and routing table, and it may be configured to only see a subset of the available devices present on the system." msgstr "Tot i que s'utilitza per construir \"màquines virtuals\", LXC no és, estrictament parlant, un sistema de virtualització, sinó un sistema per aïllar grups de processos entre ells, tot i que tots funcionen en el mateix hoste. Aprofita un conjunt de canvis recents en el nucli de Linux, coneguts col·lectivament com a «control groups» o “grups de control”, mitjançant els quals diferents conjunts de processos anomenats “grups” tenen diferents visions sobre certs aspectes del sistema global. Entre aquests aspectes destaquen els identificadors de procés, la configuració de la xarxa i els punts de muntatge. Aquest grup de processos aïllats no tindrà accés als altres processos del sistema, i els accessos al sistema de fitxers es poden restringir a un subconjunt específic. També pot tenir la seva pròpia interfície de xarxa i taula d'encaminament, i es pot configurar per veure només un subconjunt dels dispositius disponibles presents al sistema." #, fuzzy #| msgid "Munin" msgid "container" msgstr "Munin" msgid "These features can be combined to isolate a whole process family starting from the init process, and the resulting set looks very much like a virtual machine. The official name for such a setup is a “container” (hence the LXC moniker: LinuX Containers), but a rather important difference with “real” virtual machines such as provided by Xen or KVM is that there is no second kernel; the container uses the very same kernel as the host system. This has both pros and cons: advantages include excellent performance due to the total lack of overhead, and the fact that the kernel has a global vision of all the processes running on the system, so the scheduling can be more efficient than it would be if two independent kernels were to schedule different task sets. Chief among the inconveniences is the impossibility to run a different kernel in a container (whether a different Linux version or a different operating system altogether)." msgstr "Aquestes característiques es poden combinar per aïllar tota una família de processos a partir del procés init, i el conjunt resultant s'assembla molt a una màquina virtual. El nom oficial d'aquesta configuració és “contenidor” (d'aquí el sobrenom d'LXC: LinuX Containers), però una diferència bastant important amb les màquines virtuals \"reals\" com les proporcionades per Xen o KVM és que no hi ha cap segon nucli; el contenidor utilitza el mateix nucli que el sistema host. Això té tant avantatges com incovenients: els avantatges inclouen un rendiment excel·lent a causa de la manca total de sobrecàrrega, i el fet que el nucli té una visió global de tots els processos que s'executen al sistema, de manera que la planificació pot ser més eficient del que seria si dos nuclis independents programessin diferents conjunts de tasques. El principal dels inconvenients és la impossibilitat d'executar un nucli diferent en un contenidor (ja sigui una versió de Linux diferent o un sistema operatiu diferent)." msgid "NOTE LXC isolation limits" msgstr "NOTA Límits en l'aïllament d'LXC" msgid "LXC containers do not provide the level of isolation achieved by heavier emulators or virtualizers. In particular:" msgstr "Els contenidors LXC no proporcionen el nivell d'aïllament aconseguit per emuladors més pesants o virtualitzadors. En particular:" msgid "since the kernel is shared among the host system and the containers, processes constrained to containers can still access the kernel messages, which can lead to information leaks if messages are emitted by a container;" msgstr "com que el nucli es comparteix entre el sistema hoste i els contenidors, els processos restringits als contenidors encara poden accedir als missatges del nucli, que por dur a filtracions d'informació si els missatges són emesos per un contenidor;" msgid "for similar reasons, if a container is compromised and a kernel vulnerability is exploited, the other containers may be affected too;" msgstr "per raons similars, si es compromet un contenidor i s'explota una vulnerabilitat del nucli, els altres contenidors també es poden veure afectats;" msgid "on the filesystem, the kernel checks permissions according to the numerical identifiers for users and groups; these identifiers may designate different users and groups depending on the container, which should be kept in mind if writable parts of the filesystem are shared among containers." msgstr "en el sistema de fitxers, el nucli comprova els permisos d'acord amb els identificadors numèrics per a usuaris i grups; aquests identificadors poden designar diferents usuaris i grups depenent del contenidor, que s'ha de tenir en compte si les zones modificables del sistema de fitxers es comparteixen entre els contenidors." msgid "Since we are dealing with isolation and not plain virtualization, setting up LXC containers is more complex than just running debian-installer on a virtual machine. We will describe a few prerequisites, then go on to the network configuration; we will then be able to actually create the system to be run in the container." msgstr "Atès que estem tractant amb l'aïllament i no amb simple virtualització, la creació de contenidors LXC és més complexa que simplement executar el “debian-installer” en una màquina virtual. Descriurem alguns requisits previs i després passarem a la configuració de la xarxa; llavors podrem crear realment el sistema a executar al contenidor." msgid "Preliminary Steps" msgstr "Passos preliminars" #, fuzzy #| msgid "mdadm" msgid "lxc" msgstr "mdadm" msgid "The lxc package contains the tools required to run LXC, and must therefore be installed." msgstr "El paquet lxc conté les eines necessàries per executar LXC, i per tant s'ha d'instal·lar." msgid "/sys/sys/fs/cgroup" msgstr "" msgid "LXC also requires the control groups configuration system, which is a virtual filesystem to be mounted on /sys/fs/cgroup. Since Debian 8 switched to systemd, which also relies on control groups, this is now done automatically at boot time without further configuration." msgstr "LXC també requereix el sistema de configuració de control groups, que és un sistema de fitxers virtual que s'ha de muntar a /sys/fs/cgroup. Des que Debian 8 va canviar a systemd, que també es basa en grups de control, això es fa automàticament en temps d'arrencada sense més configuració." msgid "Network Configuration" msgstr "Configuració de xarxa" #, fuzzy #| msgid "installationautomated installation" msgid "LXCnetwork configuration" msgstr "instal·lacióinstal·lació automatitzada" msgid "The goal of installing LXC is to set up virtual machines; while we could, of course, keep them isolated from the network, and only communicate with them via the filesystem, most use cases involve giving at least minimal network access to the containers. In the typical case, each container will get a virtual network interface, connected to the real network through a bridge. This virtual interface can be plugged either directly onto the host's physical network interface (in which case the container is directly on the network), or onto another virtual interface defined on the host (and the host can then filter or route traffic). In both cases, the bridge-utils package will be required." msgstr "L'objectiu d'instal·lar LXC és crear màquines virtuals; encara que podríem, per descomptat, mantenir-les aïllades de la xarxa, i comunicar-nos amb elles només a través del sistema de fitxers, la majoria dels casos d'ús impliquen donar almenys accés mínim a la xarxa als contenidors. En el cas típic, cada contenidor obtindrà una interfície de xarxa virtual, connectada a la xarxa real a través d'un pont («bridge»). Aquesta interfície virtual es pot connectar directament a la interfície de xarxa física de l'amfitrió (en aquest cas el contenidor està directament a la xarxa), o a una altra interfície virtual definida a l'amfitrió (i llavors l'amfitrió pot filtrar o encaminar el trànsit). En tots dos casos, es requerirà el paquet bridge-utils." #, fuzzy #| msgid "The simple case is just a matter of editing /etc/network/interfaces, moving the configuration for the physical interface (for instance, eth0) to a bridge interface (usually br0), and configuring the link between them. For instance, if the network interface configuration file initially contains entries such as the following:" msgid "The simple case is just a matter of editing /etc/network/interfaces, moving the configuration for the physical interface (for instance, eth0 or enp1s0) to a bridge interface (usually br0), and configuring the link between them. For instance, if the network interface configuration file initially contains entries such as the following:" msgstr "El cas simple és només una qüestió d'editar /etc/network/interfaces, movent la configuració de la interfície física (per exemple, eth0) a una interfície de pont (normalment br0), i configurar l'enllaç entre ells. Per exemple, si el fitxer de configuració de la interfície de xarxa conté inicialment entrades com les següents:" #, fuzzy #| msgid "installationautomated installation" msgid "networkbr interface" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "virtualization" msgid "br, network interface" msgstr "virtualització" msgid "" "auto eth0\n" "iface eth0 inet dhcp" msgstr "" "auto eth0\n" "iface eth0 inet dhcp" msgid "They should be disabled and replaced with the following:" msgstr "Han de ser desactivades i substituïdes per les següents:" #, fuzzy #| msgid "" #| "auto xenbr0\n" #| "iface xenbr0 inet dhcp\n" #| " bridge_ports eth0\n" #| " bridge_maxwait 0\n" #| " " msgid "" "auto br0\n" "iface br0 inet dhcp\n" " bridge-ports eth0" msgstr "" "auto xenbr0\n" "iface xenbr0 inet dhcp\n" " bridge_ports eth0\n" " bridge_maxwait 0\n" " " msgid "The effect of this configuration will be similar to what would be obtained if the containers were machines plugged into the same physical network as the host. The “bridge” configuration manages the transit of Ethernet frames between all the bridged interfaces, which includes the physical eth0 as well as the interfaces defined for the containers." msgstr "L'efecte d'aquesta configuració serà similar al que s'obtindrà si els contenidors fossin màquines connectades a la mateixa xarxa física que l'amfitrió. La configuració de “pont” gestiona el trànsit de les trames Ethernet entre totes les interfícies pont, que inclou la física eth0, així com les interfícies definides per als contenidors." #, fuzzy #| msgid "installationautomated installation" msgid "networktap interface" msgstr "instal·lacióinstal·lació automatitzada" msgid "In cases where this configuration cannot be used (for instance, if no public IP addresses can be assigned to the containers), a virtual tap interface will be created and connected to the bridge. The equivalent network topology then becomes that of a host with a second network card plugged into a separate switch, with the containers also plugged into that switch. The host must then act as a gateway for the containers if they are meant to communicate with the outside world." msgstr "En els casos en què aquesta configuració no es pot utilitzar (per exemple, si no es pot assignar cap adreça IP pública als contenidors), es crearà una interfície virtual tap i es connectarà al pont. La topologia de xarxa equivalent es converteix en la d'un amfitrió amb una segona targeta de xarxa connectada en un commutador separat, amb els contenidors també connectats en aquest commutador. L'amfitrió ha d'actuar com a porta d'entrada per als contenidors si estan destinats a comunicar-se amb el món exterior." msgid "In addition to bridge-utils, this “rich” configuration requires the vde2 package; the /etc/network/interfaces file then becomes:" msgstr "A més de bridge-utils, aquesta configuració \"rica\" requereix el paquet vde2; el fitxer /etc/network/interfaces llavors esdevé:" #, fuzzy #| msgid "mdadm" msgid "vde2" msgstr "mdadm" #, fuzzy #| msgid "" #| "# Interface eth0 is unchanged\n" #| "auto eth0\n" #| "iface eth0 inet dhcp\n" #| "\n" #| "# Virtual interface \n" #| "auto tap0\n" #| "iface tap0 inet manual\n" #| " vde2-switch -t tap0\n" #| "\n" #| "# Bridge for containers\n" #| "auto br0\n" #| "iface br0 inet static\n" #| " bridge-ports tap0\n" #| " address 10.0.0.1\n" #| " netmask 255.255.255.0" msgid "" "# Interface eth0 is unchanged\n" "auto eth0\n" "iface eth0 inet dhcp\n" "\n" "# Virtual interface \n" "auto tap0\n" "iface tap0 inet manual\n" " vde2-switch -t tap0\n" "\n" "# Bridge for containers\n" "auto br0\n" "iface br0 inet static\n" " bridge-ports tap0\n" " address 10.0.0.1\n" " netmask 255.255.255.0" msgstr "" "# Interface eth0 is unchanged\n" "auto eth0\n" "iface eth0 inet dhcp\n" "\n" "# Virtual interface \n" "auto tap0\n" "iface tap0 inet manual\n" " vde2-switch -t tap0\n" "\n" "# Bridge for containers\n" "auto br0\n" "iface br0 inet static\n" " bridge-ports tap0\n" " address 10.0.0.1\n" " netmask 255.255.255.0" msgid "The network can then be set up either statically in the containers, or dynamically with DHCP server running on the host. Such a DHCP server will need to be configured to answer queries on the br0 interface." msgstr "La xarxa es pot configurar estàticament als contenidors, o dinàmicament amb un servidor DHCP executant-se a l'amfitrió. Aquest servidor DHCP haurà de ser configurat per respondre les consultes a la interfície br0." msgid "Setting Up the System" msgstr "Configuració del sistema" #, fuzzy #| msgid "Let us now set up the filesystem to be used by the container. Since this “virtual machine” will not run directly on the hardware, some tweaks are required when compared to a standard filesystem, especially as far as the kernel, devices and consoles are concerned. Fortunately, the lxc includes scripts that mostly automate this configuration. For instance, the following commands (which require the debootstrap and rsync packages) will install a Debian container:" msgid "Let us now set up the filesystem to be used by the container. Since this “virtual machine” will not run directly on the hardware, some tweaks are required when compared to a standard filesystem, especially as far as the kernel, devices and consoles are concerned. Fortunately, the lxc package includes scripts that mostly automate this configuration. For instance, the following commands (which require the debootstrap and rsync packages) will install a Debian container:" msgstr "Configurem ara el sistema de fitxers que ha d'utilitzar el contenidor. Com que aquesta “màquina virtual” no s'executarà directament al maquinari, es requereixen alguns ajustos en comparació amb un sistema de fitxers estàndard, especialment pel que fa al nucli, dispositius i consoles. Afortunadament, lxc inclou scripts que pràcticament automatitzen aquesta configuració. Per exemple, les següents ordres (que requereixen els paquets debootstrap i rsync) instal·laran un contenidor Debian:" #, fuzzy #| msgid "" #| "root@mirwiz:~# lxc-create -n testlxc -t debian\n" #| "debootstrap is /usr/sbin/debootstrap\n" #| "Checking cache download in /var/cache/lxc/debian/rootfs-stable-amd64 ... \n" #| "Downloading debian minimal ...\n" #| "I: Retrieving Release \n" #| "I: Retrieving Release.gpg \n" #| "[...]\n" #| "Download complete.\n" #| "Copying rootfs to /var/lib/lxc/testlxc/rootfs...\n" #| "[...]\n" #| "root@mirwiz:~# \n" #| " " msgid "" "# lxc-create -n testlxc -t debian\n" "debootstrap is /usr/sbin/debootstrap\n" "Checking cache download in /var/cache/lxc/debian/rootfs-stable-amd64 ... \n" "Downloading debian minimal ...\n" "I: Retrieving Release \n" "I: Retrieving Release.gpg \n" "[...]\n" "Download complete.\n" "Copying rootfs to /var/lib/lxc/testlxc/rootfs...\n" "[...]\n" "# " msgstr "" "root@mirwiz:~# lxc-create -n testlxc -t debian\n" "debootstrap is /usr/sbin/debootstrap\n" "Checking cache download in /var/cache/lxc/debian/rootfs-stable-amd64 ... \n" "Downloading debian minimal ...\n" "I: Retrieving Release \n" "I: Retrieving Release.gpg \n" "[...]\n" "Download complete.\n" "Copying rootfs to /var/lib/lxc/testlxc/rootfs...\n" "[...]\n" "root@mirwiz:~# \n" " " msgid "Note that the filesystem is initially created in /var/cache/lxc, then moved to its destination directory. This allows creating identical containers much more quickly, since only copying is then required." msgstr "Tingueu en compte que el sistema de fitxers es crea inicialment a /var/cache/lxc, i després es mou al seu directori de destinació. Això permet crear contenidors idèntics molt més ràpidament, ja que només cal copiar." msgid "Note that the Debian template creation script accepts an option to specify the architecture of the system to be installed and a option if you want to install something else than the current stable release of Debian. You can also set the MIRROR environment variable to point to a local Debian mirror." msgstr "Tingueu en compte que l'script de creació de plantilles de Debian accepta una opció per especificar l'arquitectura del sistema a instal·lar i una opció si voleu instal·lar alguna cosa diferent de l'actual versió estable de Debian. També podeu establir la variable d'entorn MIRROR per apuntar a un mirall local de Debian." msgid "The lxc package further creates a bridge interface lxcbr0, which by default is used by all newly created containers via /etc/lxc/default.conf and the lxc-net service:" msgstr "" #, fuzzy #| msgid "installationautomated installation" msgid "/etc/etc/lxc/default.conf" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "servicelxc-net.service" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "networkveth interface" msgstr "instal·lacióinstal·lació automatitzada" msgid "veth, network interface" msgstr "" #, fuzzy #| msgid "" #| "lxc.net.0.type = veth\n" #| "lxc.net.0.flags = up\n" #| "lxc.net.0.link = br0\n" #| "lxc.net.0.hwaddr = 4a:49:43:49:79:20" msgid "" "lxc.net.0.type = veth\n" "lxc.net.0.link = lxcbr0\n" "lxc.net.0.flags = up" msgstr "" "lxc.net.0.type = veth\n" "lxc.net.0.flags = up\n" "lxc.net.0.link = br0\n" "lxc.net.0.hwaddr = 4a:49:43:49:79:20" #, fuzzy #| msgid "These entries mean, respectively, that a virtual interface will be created in the container; that it will automatically be brought up when said container is started; that it will automatically be connected to the br0 bridge on the host; and that its MAC address will be as specified. Should this last entry be missing or disabled, a random MAC address will be generated." msgid "These entries mean, respectively, that a virtual interface will be created in every new container; that it will automatically be brought up when said container is started; and that it will be automatically connected to the lxcbr0 bridge on the host. You will find these settings in the created container's configuration (/var/lib/lxc/testlxc/config), where also the device' MAC address will be specified in lxc.net.0.hwaddr. Should this last entry be missing or disabled, a random MAC address will be generated." msgstr "Aquestes entrades signifiquen, respectivament, que es crearà una interfície virtual al contenidor; que s'activarà automàticament quan s'iniciï el contenidor; que es connectarà automàticament al pont br0 de l'amfitrió; i que la seva adreça MAC serà la que s'especifica. Si aquesta darrera entrada no es troba o està desactivada, es generarà una adreça MAC aleatòria." #, fuzzy #| msgid "installationautomated installation" msgid "LXCcontainer configuration" msgstr "instal·lacióinstal·lació automatitzada" msgid "Another useful entry in that file is the setting of the hostname:" msgstr "Una altra entrada útil en aquest fitxer és la configuració del nom de l'amfitrió:" msgid "lxc.uts.name = testlxc" msgstr "lxc.uts.name = testlxc" msgid "The newly-created filesystem now contains a minimal Debian system and a network interface." msgstr "" msgid "Starting the Container" msgstr "Inici del contenidor" #, fuzzy #| msgid "installationautomated installation" msgid "LXClxc-start" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "LXClxc-attach" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "Now that our virtual machine image is ready, let's start the container with lxc-start --daemon --name=testlxc." msgid "Now that our virtual machine image is ready, let's start the container with lxc-start --name=testlxc." msgstr "Ara que la nostra imatge de màquina virtual està preparada, iniciem el contenidor amb lxc-start --daemon --name=testlxc." #, fuzzy #| msgid "In LXC releases following 2.0.8, root passwords are not set by default. We can set one running lxc-attach -n testlxc passwd. Now we can login:" msgid "In LXC releases following 2.0.8, root passwords are not set by default. We can set one running lxc-attach -n testlxc passwd if we want. We can login with:" msgstr "En els llançaments d'LXC posteriors a 2.0.8 les contrasenyes del superusuari no s'estableixen per defecte. Se'n pot establir una executant lxc-attach -n testlxc passwd. Ara podem iniciar la sessió:" #, fuzzy #| msgid "" #| "root@mirwiz:~# lxc-console -n testlxc\n" #| "Debian GNU/Linux 9 testlxc console\t\n" #| "\n" #| "testlxc login: root\n" #| "Password: \n" #| "Linux testlxc 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64\n" #| "\n" #| "The programs included with the Debian GNU/Linux system are free software;\n" #| "the exact distribution terms for each program are described in the\n" #| "individual files in /usr/share/doc/*/copyright.\n" #| "\n" #| "Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\n" #| "permitted by applicable law.\n" #| "root@testlxc:~# ps auxwf\n" #| "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND\n" #| "root 1 0.0 0.2 56736 6608 ? Ss 09:28 0:00 /sbin/init\n" #| "root 32 0.0 0.1 46096 4680 ? Ss 09:28 0:00 /lib/systemd/systemd-journald\n" #| "root 75 0.0 0.1 67068 3328 console Ss 09:28 0:00 /bin/login --\n" #| "root 82 0.0 0.1 19812 3664 console S 09:30 0:00 \\_ -bash\n" #| "root 88 0.0 0.1 38308 3176 console R+ 09:31 0:00 \\_ ps auxwf\n" #| "root 76 0.0 0.1 69956 5636 ? Ss 09:28 0:00 /usr/sbin/sshd -D\n" #| "root@testlxc:~# " msgid "" "# lxc-console -n testlxc\n" " to exit the console, to enter Ctrl+a itself\n" "\n" "Debian GNU/Linux 11 testlxc tty1\n" "\n" "testlxc login: ]]>root\n" "Password: \n" "Linux testlxc 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64\n" "\n" "The programs included with the Debian GNU/Linux system are free software;\n" "the exact distribution terms for each program are described in the\n" "individual files in /usr/share/doc/*/copyright.\n" "\n" "Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\n" "permitted by applicable law.\n" "Last login: Wed Mar 9 01:45:21 UTC 2022 on console\n" "root@testlxc:~# ps auxwf\n" "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND\n" "root 1 0.0 0.2 18964 11464 ? Ss 01:36 0:00 /sbin/init\n" "root 45 0.0 0.2 31940 10396 ? Ss 01:37 0:00 /lib/systemd/systemd-journald\n" "root 71 0.0 0.1 99800 5724 ? Ssl 01:37 0:00 /sbin/dhclient -4 -v -i -pf /run/dhclient.eth0.pid [..]\n" "root 97 0.0 0.1 13276 6980 ? Ss 01:37 0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups\n" "root 160 0.0 0.0 6276 3928 pts/0 Ss 01:46 0:00 /bin/login -p --\n" "root 169 0.0 0.0 7100 3824 pts/0 S 01:51 0:00 \\_ -bash\n" "root 172 0.0 0.0 9672 3348 pts/0 R+ 01:51 0:00 \\_ ps auxwf\n" "root 164 0.0 0.0 5416 2128 pts/1 Ss+ 01:49 0:00 /sbin/agetty -o -p -- \\u --noclear [...]\n" "root@testlxc:~# " msgstr "" "root@mirwiz:~# lxc-console -n testlxc\n" "Debian GNU/Linux 9 testlxc console\t\n" "\n" "testlxc login: root\n" "Password: \n" "Linux testlxc 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64\n" "\n" "The programs included with the Debian GNU/Linux system are free software;\n" "the exact distribution terms for each program are described in the\n" "individual files in /usr/share/doc/*/copyright.\n" "\n" "Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\n" "permitted by applicable law.\n" "root@testlxc:~# ps auxwf\n" "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND\n" "root 1 0.0 0.2 56736 6608 ? Ss 09:28 0:00 /sbin/init\n" "root 32 0.0 0.1 46096 4680 ? Ss 09:28 0:00 /lib/systemd/systemd-journald\n" "root 75 0.0 0.1 67068 3328 console Ss 09:28 0:00 /bin/login --\n" "root 82 0.0 0.1 19812 3664 console S 09:30 0:00 \\_ -bash\n" "root 88 0.0 0.1 38308 3176 console R+ 09:31 0:00 \\_ ps auxwf\n" "root 76 0.0 0.1 69956 5636 ? Ss 09:28 0:00 /usr/sbin/sshd -D\n" "root@testlxc:~# " msgid "We are now in the container; our access to the processes is restricted to only those started from the container itself, and our access to the filesystem is similarly restricted to the dedicated subset of the full filesystem (/var/lib/lxc/testlxc/rootfs). We can exit the console with Control a q." msgstr "Ara estem dins del contenidor; el nostre accés als processos està restringit només als iniciats des del mateix contenidor, i el nostre accés al sistema de fitxers està igualment restringit al subconjunt dedicat del sistema de fitxers complet (/var/lib/lxc/testlxc/rootfs). Podem sortir de la consola amb Controla q." #, fuzzy #| msgid "Note that we ran the container as a background process, thanks to the option of lxc-start. We can interrupt the container with a command such as lxc-stop --name=testlxc." msgid "Note that we ran the container as a background process, thanks to lxc-start starting using the option by default. We can interrupt the container with a command such as lxc-stop --name=testlxc." msgstr "Tingueu en compte que hem executat el contenidor com un procés en segon pla gràcies a l'opció de l'lxc-start. Podem aturar el contenidor amb una ordre com lxc-stop --name=testlxc." #, fuzzy #| msgid "installationautomated installation" msgid "LXClxc-stop" msgstr "instal·lacióinstal·lació automatitzada" msgid "The lxc package contains an initialization script that can automatically start one or several containers when the host boots (it relies on lxc-autostart which starts containers whose lxc.start.auto option is set to 1). Finer-grained control of the startup order is possible with lxc.start.order and lxc.group: by default, the initialization script first starts containers which are part of the onboot group and then the containers which are not part of any group. In both cases, the order within a group is defined by the lxc.start.order option." msgstr "El paquet lxc conté un script d'inicialització que pot iniciar automàticament un o diversos contenidors quan l'amfitrió s'inicia (es basa en lxc-autostart que inicia contenidors que tenen l'opció lxc.start.auto establerta a 1). Un control més refinat de l'ordre d'inici és possible amb lxc.start.order i lxc.group: per defecte, l'script d'iniciació engega primer els contenidors que formen part del grup onboot i després els contenidors que no formen part de cap grup. En ambdós casos, l'ordre dins d'un grup es defineix per l'opció lxc.start.order." msgid "GOING FURTHER Mass virtualization" msgstr "ANANT MÉS ENLLÀ Virtualització massiva" msgid "Since LXC is a very lightweight isolation system, it can be particularly adapted to massive hosting of virtual servers. The network configuration will probably be a bit more advanced than what we described above, but the “rich” configuration using tap and veth interfaces should be enough in many cases." msgstr "Com que LXC és un sistema d'aïllament molt lleuger, es pot adaptar particularment a l'allotjament massiu de servidors virtuals. La configuració de la xarxa probablement serà una mica més avançada que el que hem descrit anteriorment, però una configuració “enriquida” utilitzant les interfícies tap i veth haurien de ser suficients en molts casos." msgid "It may also make sense to share part of the filesystem, such as the /usr and /lib subtrees, so as to avoid duplicating the software that may need to be common to several containers. This will usually be achieved with lxc.mount.entry entries in the containers configuration file. An interesting side-effect is that the processes will then use less physical memory, since the kernel is able to detect that the programs are shared. The marginal cost of one extra container can then be reduced to the disk space dedicated to its specific data, and a few extra processes that the kernel must schedule and manage." msgstr "També pot tenir sentit compartir part del sistema de fitxers, com els subarbres /usr i /lib, per evitar la duplicació del programari que pot haver de ser comú a diversos contenidors. Això s'aconseguirà normalment amb entrades lxc.mount.entry al fitxer de configuració dels contenidors. Un efecte secundari interessant és que els processos utilitzaran menys memòria física, ja que el nucli és capaç de detectar que els programes són compartits. El cost marginal d'un contenidor addicional es pot reduir a l'espai de disc dedicat a les seves dades específiques, i alguns processos addicionals que el nucli ha de planificar i gestionar." msgid "We haven't described all the available options, of course; more comprehensive information can be obtained from the lxc 7 and lxc.container.conf 5 manual pages and the ones they reference." msgstr "No hem descrit totes les opcions disponibles, per descomptat; es pot obtenir informació més completa a les planes del manual lxc 7 i lxc.container.conf 5 i a les que aquestes fan referència." msgid "Virtualization with KVM" msgstr "Virtualització amb KVM" msgid "Kernel-based Virtual MachineKVM" msgstr "" msgid "KVM, which stands for Kernel-based Virtual Machine, is first and foremost a kernel module providing most of the infrastructure that can be used by a virtualizer, but it is not a virtualizer by itself. Actual control for the virtualization is handled by a QEMU-based application. Don't worry if this section mentions qemu-* commands: it is still about KVM." msgstr "KVM, que significa «Kernel-based Virtual Machine» o “màquina virtual basada en el nucli”, és abans de res un mòdul de nucli que proporciona la major part de la infraestructura que pot ser utilitzada per un virtualitzador, però no és un virtualitzador per si mateix. El control real de la virtualització es gestiona mitjançant una aplicació basada en QEMU. No us preocupeu si aquesta secció esmenta ordres qemu-*: encara estem parlant de KVM." msgid "Unlike other virtualization systems, KVM was merged into the Linux kernel right from the start. Its developers chose to take advantage of the processor instruction sets dedicated to virtualization (Intel-VT and AMD-V), which keeps KVM lightweight, elegant and not resource-hungry. The counterpart, of course, is that KVM doesn't work on any computer but only on those with appropriate processors. For x86-based computers, you can verify that you have such a processor by looking for “vmx” or “svm” in the CPU flags listed in /proc/cpuinfo." msgstr "A diferència d'altres sistemes de virtualització, el KVM es va fusionar amb el nucli de Linux des del principi. Els seus desenvolupadors van optar per aprofitar els conjunts d'instruccions del processador dedicats a la virtualització (Intel-VT i AMD-V), fet que manté el KVM lleuger, elegant i poc demandant de recursos. La contrapartida, per descomptat, és que el KVM no funciona en cap ordinador, sinó només en aquells amb processadors adequats. Per als ordinadors basats en x86 es pot verificar que teniu un processador així buscant “vmx” o “svm” en les marques de la CPU llistades a /proc/cpuinfo." #, fuzzy #| msgid "installationautomated installation" msgid "/proc/proc/cpuinfo" msgstr "instal·lacióinstal·lació automatitzada" msgid "With Red Hat actively supporting its development, KVM has more or less become the reference for Linux virtualization." msgstr "Amb Red Hat recolzant activament el seu desenvolupament, KVM s'ha convertit més o menys en la referència per a la virtualització amb Linux." msgid "virt-install" msgstr "virt-install" #, fuzzy #| msgid "Unlike such tools as VirtualBox, KVM itself doesn't include any user-interface for creating and managing virtual machines. The qemu-kvm package only provides an executable able to start a virtual machine, as well as an initialization script that loads the appropriate kernel modules." msgid "Unlike such tools as VirtualBox, KVM itself doesn't include any user-interface for creating and managing virtual machines. The virtual qemu-kvm package only provides an executable able to start a virtual machine, as well as an initialization script that loads the appropriate kernel modules." msgstr "A diferència d'eines com VirtualBox, el mateix KVM no inclou cap interfície d'usuari per crear i gestionar màquines virtuals. El paquet qemu-kvm només proporciona un executable capaç d'iniciar una màquina virtual, així com un script d'inicialització que carrega els mòduls apropiats del nucli." msgid "libvirt" msgstr "libvirt" #, fuzzy #| msgid "LVM" msgid "OpenVZ" msgstr "LVM" #, fuzzy #| msgid "LVM" msgid "UML" msgstr "LVM" #, fuzzy #| msgid "Fortunately, Red Hat also provides another set of tools to address that problem, by developing the libvirt library and the associated virtual machine manager tools. libvirt allows managing virtual machines in a uniform way, independently of the virtualization system involved behind the scenes (it currently supports QEMU, KVM, Xen, LXC, OpenVZ, VirtualBox, VMWare and UML). virtual-manager is a graphical interface that uses libvirt to create and manage virtual machines." msgid "Fortunately, Red Hat also provides another set of tools to address that problem, by developing the libvirt library and the associated virtual machine manager tools. libvirt allows managing virtual machines in a uniform way, independently of the virtualization system involved behind the scenes (it currently supports QEMU, KVM, Xen, LXC, OpenVZ, VirtualBox, VMWare, and UML). virt-manager is a graphical interface that uses libvirt to create and manage virtual machines." msgstr "Afortunadament, Red Hat també proporciona un altre conjunt d'eines per resoldre aquest problema desenvolupant la biblioteca libvirt i les eines associades virtual machine manager. El libvirt permet la gestió de màquines virtuals de manera uniforme, independentment del sistema de virtualització involucrat per sota (actualment suporta QEMU, KVM, Xen, LXC, OpenVZ, VirtualBox, VMWare i UML). virtual-manager és una interfície gràfica que utilitza libvirt per crear i gestionar màquines virtuals." msgid "virtinst" msgstr "virtinst" #, fuzzy #| msgid "installationautomated installation" msgid "daemonlibvirtd" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "servicelibvirtd.service" msgstr "instal·lacióinstal·lació automatitzada" msgid "We first install the required packages, with apt-get install libvirt-clients libvirt-daemon-system qemu-kvm virtinst virt-manager virt-viewer. libvirt-daemon-system provides the libvirtd daemon, which allows (potentially remote) management of the virtual machines running of the host, and starts the required VMs when the host boots. libvirt-clients provides the virsh command-line tool, which allows controlling the libvirtd-managed machines." msgstr "Primer instal·lem els paquets necessaris, amb apt-get install libvirt-clients libvirt-daemon-system qemu-kvm virtinst virt-manager virt-viewer. libvirt-daemon-system proporciona el dimoni libvirtd, que permet (potencialment de manera remota) la gestió de les màquines virtuals que s'executen al servidor, i inicia les màquines virtuals requerides quan el servidor s'inicia. libvirt-clients proporciona l'eina de línia d'ordres virsh, que permet controlar les màquines gestionades amb libvirtd." #, fuzzy #| msgid "virsh" msgid "virt-viewer" msgstr "virsh" msgid "The virtinst package provides virt-install, which allows creating virtual machines from the command line. Finally, virt-viewer allows accessing a VM's graphical console." msgstr "El paquet virtinst proporciona virt-install, que permet crear màquines virtuals des de la línia d'ordes. Finalment, virt-viewer permet accedir a la consola gràfica d'una màquina virtual." msgid "Just as in Xen and LXC, the most frequent network configuration involves a bridge grouping the network interfaces of the virtual machines (see )." msgstr "Igual que amb Xen i LXC, la configuració de xarxa més freqüent implica un pont que agrupa les interfícies de xarxa de les màquines virtuals (vegeu )." msgid "Alternatively, and in the default configuration provided by KVM, the virtual machine is assigned a private address (in the 192.168.122.0/24 range), and NAT is set up so that the VM can access the outside network." msgstr "Alternativament, i en la configuració per defecte proporcionada pel KVM, la màquina virtual té una adreça privada (en el rang 192.168.122.0/24), i el NAT està configurat perquè la màquina virtual pugui accedir a la xarxa exterior." msgid "The rest of this section assumes that the host has an eth0 physical interface and a br0 bridge, and that the former is connected to the latter." msgstr "La resta d'aquesta secció assumeix que l'amfitrió té una interfície física eth0 i un pont br0, i que el primer està connectat en aquest últim." msgid "Installation with virt-install" msgstr "Instal·lació amb virt-install" msgid "Creating a virtual machine is very similar to installing a normal system, except that the virtual machine's characteristics are described in a seemingly endless command line." msgstr "La creació d'una màquina virtual és molt similar a la instal·lació d'un sistema normal, excepte que les característiques de la màquina virtual es descriuen en una línia de comandament aparentment interminable." msgid "Practically speaking, this means we will use the Debian installer, by booting the virtual machine on a virtual DVD-ROM drive that maps to a Debian DVD image stored on the host system. The VM will export its graphical console over the VNC protocol (see for details), which will allow us to control the installation process." msgstr "A la pràctica, això significa que utilitzarem l'instal·lador de Debian, arrencant la màquina virtual en una unitat de DVD-ROM virtual que s'associa amb una imatge de DVD de Debian emmagatzemada en el sistema local. La màquina virtual exportarà la seva consola gràfica sobre el protocol VNC (vegeu per detalls), que ens permetrà controlar el procés d'instal·lació." #, fuzzy #| msgid "We first need to tell libvirtd where to store the disk images, unless the default location (/var/lib/libvirt/images/) is fine." msgid "We first need to tell libvirtd where to store the disk images, unless the default location (/var/lib/libvirt/images/) is fine." msgstr "Primer hem de dir-li a libvirtd on desar les imatges de disc, llevat que la ubicació per defecte (/var/lib/libvirt/images/) ja ens vagi bé." #, fuzzy #| msgid "" #| "root@mirwiz:~# mkdir /srv/kvm\n" #| "root@mirwiz:~# virsh pool-create-as srv-kvm dir --target /srv/kvm\n" #| "Pool srv-kvm created\n" #| "\n" #| "root@mirwiz:~# " msgid "" "# mkdir /srv/kvm\n" "# virsh pool-create-as srv-kvm dir --target /srv/kvm\n" "Pool srv-kvm created\n" "\n" "# " msgstr "" "root@mirwiz:~# mkdir /srv/kvm\n" "root@mirwiz:~# virsh pool-create-as srv-kvm dir --target /srv/kvm\n" "Pool srv-kvm created\n" "\n" "root@mirwiz:~# " msgid "TIP Add your user to the libvirt group" msgstr "SUGGERIMENT Afegiu el vostre usuari al grup libvirt" #, fuzzy #| msgid "installationautomated installation" msgid "grouplibvirt" msgstr "instal·lacióinstal·lació automatitzada" msgid "All samples in this section assume that you are running commands as root. Effectively, if you want to control a local libvirt daemon, you need either to be root or to be a member of the libvirt group (which is not the case by default). Thus if you want to avoid using root rights too often, you can add yourself to the libvirt group and run the various commands under your user identity." msgstr "Totes les mostres d'aquesta secció suposen que esteu executant ordres com a root. De manera efectiva, si voleu controlar un dimoni local de libvirt, heu de ser superusuari o membre del grup libvirt (que per defecte no és el cas). Per tant, si voleu evitar utilitzar els drets de superusuari massa sovint, podeu afegir-vos al grup libvirt i executar les diverses ordres sota la vostra identitat d'usuari." msgid "Let us now start the installation process for the virtual machine, and have a closer look at virt-install's most important options. This command registers the virtual machine and its parameters in libvirtd, then starts it so that its installation can proceed." msgstr "Comencem ja el procés d'instal·lació de la màquina virtual i mirem més de prop les opcions més importants de virt-install. Aquesta ordre registra la màquina virtual i els seus paràmetres a libvirtd, i després l'engega perquè la instal·lació pugui continuar." #, fuzzy #| msgid "" #| "# virt-install --connect qemu:///system \n" #| " --virt-type kvm \n" #| " --name testkvm \n" #| " --memory 1024 \n" #| " --disk /srv/kvm/testkvm.qcow,format=qcow2,size=10 \n" #| " --cdrom /srv/isos/debian-10.2.0-amd64-netinst.iso \n" #| " --network bridge=virbr0 \n" #| " --graphics vnc \n" #| " --os-type linux \n" #| " --os-variant debian10\n" #| "\n" #| "Starting install...\n" #| "Allocating 'testkvm.qcow' | 10 GB 00:00\n" #| "" msgid "" "# virt-install --connect qemu:///system \n" " --virt-type kvm \n" " --name testkvm \n" " --memory 2048 \n" " --disk /srv/kvm/testkvm.qcow,format=qcow2,size=10 \n" " --cdrom /srv/isos/debian-11.2.0-amd64-netinst.iso \n" " --network bridge=virbr0 \n" " --graphics vnc \n" " --os-type linux \n" " --os-variant debiantesting\n" "\n" "\n" "Starting install...\n" "Allocating 'testkvm.qcow'\n" "\n" "" msgstr "" "# virt-install --connect qemu:///system \n" " --virt-type kvm \n" " --name testkvm \n" " --memory 1024 \n" " --disk /srv/kvm/testkvm.qcow,format=qcow2,size=10 \n" " --cdrom /srv/isos/debian-10.2.0-amd64-netinst.iso \n" " --network bridge=virbr0 \n" " --graphics vnc \n" " --os-type linux \n" " --os-variant debian10\n" "\n" "Starting install...\n" "Allocating 'testkvm.qcow' | 10 GB 00:00\n" "" msgid "The --connect option specifies the “hypervisor” to use. Its form is that of an URL containing a virtualization system (xen://, qemu://, lxc://, openvz://, vbox://, and so on) and the machine that should host the VM (this can be left empty in the case of the local host). In addition to that, and in the QEMU/KVM case, each user can manage virtual machines working with restricted permissions, and the URL path allows differentiating “system” machines (/system) from others (/session)." msgstr "L'opció --connect especifica l'“hipervisor” a utilitzar. La seva forma és la d'un URL que conté un sistema de virtualització (xen://,qemu://,lxc://,openvz://,vbox://, etc.) i la màquina que hauria d'acollir la màquina virtual (això es pot deixar buit en el cas de l'amfitrió local). A més d'això, i en el cas QEMU/KVM, cada usuari pot gestionar màquines virtuals que treballen amb permisos restringits, i el camí d'URL permet diferenciar les màquines del “sistema” (/system) de les altres (/session)." msgid "Since KVM is managed the same way as QEMU, the --virt-type kvm allows specifying the use of KVM even though the URL looks like QEMU." msgstr "Com que el KVM es gestiona de la mateixa manera que el QEMU, el --virt-type kvm permet especificar l'ús del KVM tot i que l'URL sembla QEMU." msgid "The --name option defines a (unique) name for the virtual machine." msgstr "L'opció --name defineix un nom (únic) per a la màquina virtual." msgid "The --memory option allows specifying the amount of RAM (in MB) to allocate for the virtual machine." msgstr "L'opció --memory permet especificar la quantitat de RAM (en MB) per assignar a la màquina virtual." #, fuzzy #| msgid "libvirt" msgid "qcow2" msgstr "libvirt" msgid "The --disk specifies the location of the image file that is to represent our virtual machine's hard disk; that file is created, unless present, with a size (in GB) specified by the size parameter. The format parameter allows choosing among several ways of storing the image file. The default format (qcow2) allows starting with a small file that only grows when the virtual machine starts actually using space." msgstr "El --disk especifica la ubicació del fitxer d'imatge que representa el disc dur de la nostra màquina virtual; aquest fitxer es crea, llevat que ja estigui present, amb una mida (en GB) especificada pel paràmetre size. El format permet triar entre diverses maneres d'emmagatzemar el fitxer d'imatge. El format per defecte (qcow2) permet començar amb un petit fitxer que només creix quan la màquina virtual comença realment a utilitzar espai." msgid "The --cdrom option is used to indicate where to find the optical disk to use for installation. The path can be either a local path for an ISO file, an URL where the file can be obtained, or the device file of a physical CD-ROM drive (i.e. /dev/cdrom)." msgstr "L'opció --cdrom s'utilitza per indicar on trobar el disc òptic a utilitzar per a la instal·lació. La ruta pot ser un camí local d'un fitxer ISO, un URL d'on es pot obtenir el fitxer, o el fitxer de dispositiu d'una unitat de CD-ROM física (és a dir, /dev/cdrom)." #, fuzzy #| msgid "installationautomated installation" msgid "networkvirbr interface" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "libvirtvirbr" msgstr "instal·lacióinstal·lació automatitzada" msgid "virbr, network interface" msgstr "" msgid "The --network specifies how the virtual network card integrates in the host's network configuration. The default behavior (which we explicitly forced in our example) is to integrate it into any pre-existing network bridge. If no such bridge exists, the virtual machine will only reach the physical network through NAT, so it gets an address in a private subnet range (192.168.122.0/24)." msgstr "El --network especifica com s'integra la targeta de xarxa virtual a la configuració de la xarxa de l'amfitrió. El comportament per defecte (que hem forçat explícitament en el nostre exemple) és integrar-lo en qualsevol pont de xarxa preexistent. Si no existeix cap pont, la màquina virtual només podrà arribar a la xarxa física a través de NAT, de manera que obté una adreça en un rang de subxarxa privat (192.168.122.0/24)." msgid "The default network configuration, which contains the definition for a virbr0 bridge interface, can be edited using virsh net-edit default and started via virsh net-start default if not already done automatically during system start." msgstr "" msgid "--graphics vnc states that the graphical console should be made available using VNC. The default behavior for the associated VNC server is to only listen on the local interface; if the VNC client is to be run on a different host, establishing the connection will require setting up an SSH tunnel (see ). Alternatively, --graphics vnc,listen=0.0.0.0 can be used so that the VNC server is accessible from all interfaces; note that if you do that, you really should design your firewall accordingly." msgstr "--graphics vnc indica que la consola gràfica hauria d'estar disponible utilitzant VNC. El comportament per defecte del servidor VNC associat és només escoltar a la interfície local; si el client VNC s'executarà en un ordinador diferent, establir la connexió requerirà la creació d'un túnel SSH (vegeu ). Alternativament, --graphics vnc,listen=0.0.0.0 es pot utilitzar perquè el servidor VNC sigui accessible des de totes les interfícies; tingueu en compte que si ho feu haureu de configurar el tallafocs en conseqüència." msgid "The --os-type and --os-variant options allow optimizing a few parameters of the virtual machine, based on some of the known features of the operating system mentioned there." msgstr "Les opcions --os-type i --os-variant permeten optimitzar alguns paràmetres de la màquina virtual, basant-se en algunes de les característiques ja conegudes del sistema operatiu mencionat." msgid "The full list of OS types can be shown using the osinfo-query os command from the libosinfo-bin package." msgstr "" msgid "At this point, the virtual machine is running, and we need to connect to the graphical console to proceed with the installation process. If the previous operation was run from a graphical desktop environment, this connection should be automatically started. If not, or if we operate remotely, virt-viewer can be run from any graphical environment to open the graphical console (note that the root password of the remote host is asked twice because the operation requires 2 SSH connections):" msgstr "En aquest punt, la màquina virtual s'està executant, i hem de connectar-nos a la consola gràfica per continuar amb el procés d'instal·lació. Si l'operació anterior s'executava des d'un entorn gràfic d'escriptori, aquesta connexió s'hauria d'iniciar automàticament. Si no, o si operem remotament, virt-viewer es pot executar des de qualsevol entorn gràfic per obrir la consola gràfica (tingueu en compte que la contrasenya de root de la màquina remot es demana dues vegades perquè l'operació requereix dues connexions SSH):" msgid "" "$ virt-viewer --connect qemu+ssh://root@server/system testkvm\n" "root@server's password: \n" "root@server's password: " msgstr "" "$ virt-viewer --connect qemu+ssh://root@server/system testkvm\n" "root@server's password: \n" "root@server's password: " #, fuzzy #| msgid "Installation with virt-install" msgid "Connecting to installer session using virt-viewer" msgstr "Instal·lació amb virt-install" msgid "When the installation process ends, the virtual machine is restarted, now ready for use." msgstr "Quan s'acaba el procés d'instal·lació, es reinicia la màquina virtual, ara ja llesta per a utilitzar." msgid "Managing Machines with virsh" msgstr "Gestió de màquines amb virsh" msgid "Now that the installation is done, let us see how to handle the available virtual machines. The first thing to try is to ask libvirtd for the list of the virtual machines it manages:" msgstr "Ara que la instal·lació ha acabat, vegem com manejar les màquines virtuals disponibles. El primer que s'ha d'intentar és demanar a libvirtd la llista de les màquines virtuals que gestiona:" msgid "" "# virsh -c qemu:///system list --all\n" " Id Name State\n" "----------------------------------\n" " 8 testkvm shut off\n" "" msgstr "" "# virsh -c qemu:///system list --all\n" " Id Name State\n" "----------------------------------\n" " 8 testkvm shut off\n" "" msgid "Let's start our test virtual machine:" msgstr "Engeguem la nostra màquina virtual de prova:" msgid "" "# virsh -c qemu:///system start testkvm\n" "Domain testkvm started" msgstr "" "# virsh -c qemu:///system start testkvm\n" "Domain testkvm started" msgid "We can now get the connection instructions for the graphical console (the returned VNC display can be given as parameter to vncviewer):" msgstr "Ara podem obtenir les instruccions de connexió per a la consola gràfica (la pantalla VNC retornada es pot passar com a paràmetre a vncviewer):" msgid "" "# virsh -c qemu:///system vncdisplay testkvm\n" "127.0.0.1:0" msgstr "" "# virsh -c qemu:///system vncdisplay testkvm\n" "127.0.0.1:0" msgid "Other available virsh subcommands include:" msgstr "Altres subordres disponibles de virsh inclouen:" msgid "reboot to restart a virtual machine;" msgstr "reboot per reiniciar una màquina virtual;" msgid "shutdown to trigger a clean shutdown;" msgstr "shutdown per activar una aturada ordenada;" msgid "destroy, to stop it brutally;" msgstr "destroy, per aturar-la sobtadament;" msgid "suspend to pause it;" msgstr "suspend per pausar-la;" msgid "resume to unpause it;" msgstr "resume per reprendre-la;" msgid "autostart to enable (or disable, with the --disable option) starting the virtual machine automatically when the host starts;" msgstr "autostart per activar (o desactivar, amb l'opció --disable) l'inici de la màquina virtual automàticament quan s'inicia l'amfitrió;" msgid "undefine to remove all traces of the virtual machine from libvirtd." msgstr "undefine per eliminar de libvirtd totes les traces de la màquina virtual." msgid "All these subcommands take a virtual machine identifier as a parameter." msgstr "Totes aquestes subordres prenen un identificador de màquina virtual com a paràmetre." #, fuzzy #| msgid "Installing an RPM based system in Debian with yum" msgid "Installing an RPM based chroot in Debian with yum" msgstr "Instal·lació d'un sistema basat en RPM a Debian amb yum" #, fuzzy #| msgid "LVM" msgid "RPM" msgstr "LVM" #, fuzzy #| msgid "libvirt" msgid "chroot" msgstr "libvirt" #, fuzzy #| msgid "xm" msgid "yum" msgstr "xm" #, fuzzy #| msgid "xm" msgid "rpm" msgstr "xm" #, fuzzy #| msgid "If the virtual machine is meant to run a Debian (or one of its derivatives), the system can be initialized with debootstrap, as described above. But if the virtual machine is to be installed with an RPM-based system (such as Fedora, CentOS or Scientific Linux), the setup will need to be done using the yum utility (available in the package of the same name)." msgid "If a chroot is meant to run Debian (or one of its derivatives), the system can be initialized with debootstrap. But if it is to be installed with an RPM-based system (such as Fedora, CentOS or Scientific Linux), the setup will need to be done using the yum utility, available as yum4 in the nextgen-yum4 package, since the original program has been removed from Debian before the Bullseye release due to being unmaintained, outdated, and obsoleted by dnf." msgstr "Si la màquina virtual està destinada a executar un Debian (o un dels seus derivats), el sistema es pot inicialitzar amb debootstrap, com s'ha descrit anteriorment. Però si la màquina virtual s'instal·la amb un sistema basat en RPM (com ara Fedora, CentOS o Scientific Linux), la configuració s'haurà de fer utilitzant la utilitat yum (disponible al paquet del mateix nom)." #, fuzzy #| msgid "The procedure requires using rpm to extract an initial set of files, including notably yum configuration files, and then calling yum to extract the remaining set of packages. But since we call yum from outside the chroot, we need to make some temporary changes. In the sample below, the target chroot is /srv/centos." msgid "The procedure requires using rpm to extract an initial set of files, including notably yum configuration files, and then calling yum4 to extract the remaining set of packages. But since we call yum4 from outside the chroot, we need to make some temporary changes. In the sample below, the target chroot is /srv/centos." msgstr "El procediment requereix l'ús d'rpm per extreure un conjunt inicial de fitxers, incloent-hi especialment els fitxers de configuració de yum, i després cridar a yum per extreure el conjunt restant de paquets. Però com que executem yum fora del «chroot», hem de fer alguns canvis temporals. En la mostra següent, el «chroot» de destinació és /srv/centos." #, fuzzy #| msgid "" #| "# rootdir=\"/srv/centos\"\n" #| "# mkdir -p \"$rootdir\" /etc/rpm\n" #| "# echo \"%_dbpath /var/lib/rpm\" > /etc/rpm/macros.dbpath\n" #| "# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm\n" #| "# rpm --nodeps --root \"$rootdir\" -i centos-release-7-6.1810.2.el7.centos.x86_64.rpm\n" #| "rpm: RPM should not be used directly install RPM packages, use Alien instead!\n" #| "rpm: However assuming you know what you are doing...\n" #| "warning: centos-release-7-6.1810.2.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY\n" #| "# sed -i -e \"s,gpgkey=file:///etc/,gpgkey=file://${rootdir}/etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" #| "# yum --assumeyes --installroot $rootdir groupinstall core\n" #| "[...]\n" #| "# sed -i -e \"s,gpgkey=file://${rootdir}/etc/,gpgkey=file:///etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" #| "" msgid "" "# rootdir=\"/srv/centos\"\n" "# mkdir -p \"$rootdir\" /etc/rpm\n" "# echo \"%_dbpath /var/lib/rpm\" > /etc/rpm/macros.dbpath\n" "# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-9.2009.0.el7.centos.x86_64.rpm\n" "# rpm --nodeps --root \"$rootdir\" -i centos-release-7-9.2009.0.el7.centos.x86_64.rpm\n" "rpm: RPM should not be used directly install RPM packages, use Alien instead!\n" "rpm: However assuming you know what you are doing...\n" "warning: centos-release-7-9.2009.0.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY\n" "# sed -i -e \"s,gpgkey=file:///etc/,gpgkey=file://${rootdir}/etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" "# yum4 --assumeyes --installroot $rootdir groupinstall core\n" "[...]\n" "# sed -i -e \"s,gpgkey=file://${rootdir}/etc/,gpgkey=file:///etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" "# chroot /srv/centos/\n" "[root@testsystem /]# " msgstr "" "# rootdir=\"/srv/centos\"\n" "# mkdir -p \"$rootdir\" /etc/rpm\n" "# echo \"%_dbpath /var/lib/rpm\" > /etc/rpm/macros.dbpath\n" "# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/centos-release-7-6.1810.2.el7.centos.x86_64.rpm\n" "# rpm --nodeps --root \"$rootdir\" -i centos-release-7-6.1810.2.el7.centos.x86_64.rpm\n" "rpm: RPM should not be used directly install RPM packages, use Alien instead!\n" "rpm: However assuming you know what you are doing...\n" "warning: centos-release-7-6.1810.2.el7.centos.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY\n" "# sed -i -e \"s,gpgkey=file:///etc/,gpgkey=file://${rootdir}/etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" "# yum --assumeyes --installroot $rootdir groupinstall core\n" "[...]\n" "# sed -i -e \"s,gpgkey=file://${rootdir}/etc/,gpgkey=file:///etc/,g\" $rootdir/etc/yum.repos.d/*.repo\n" "" msgid "Automated Installation" msgstr "Instal·lació automatitzada" msgid "deployment" msgstr "desplegament" msgid "installationautomated installation" msgstr "instal·lacióinstal·lació automatitzada" msgid "The Falcot Corp administrators, like many administrators of large IT services, need tools to install (or reinstall) quickly, and automatically if possible, their new machines." msgstr "Els administradors de Falcot Corp, com molts altres administradors de grans serveis de TI, necessiten eines per instal·lar (o reinstal·lar) ràpidament, i automàticament si és possible, les seves noves màquines." msgid "These requirements can be met by a wide range of solutions. On the one hand, generic tools such as SystemImager handle this by creating an image based on a template machine, then deploy that image to the target systems; at the other end of the spectrum, the standard Debian installer can be preseeded with a configuration file giving the answers to the questions asked during the installation process. As a sort of middle ground, a hybrid tool such as FAI (Fully Automatic Installer) installs machines using the packaging system, but it also uses its own infrastructure for tasks that are more specific to massive deployments (such as starting, partitioning, configuration and so on)." msgstr "Aquests requisits es poden complir amb una àmplia gamma de solucions. D'una banda, eines genèriques com SystemImager ho gestionen mitjançant la creació d'una imatge basada en una màquina de plantilles, llavors es desplega aquesta imatge als sistemes de destinació; a l'altre extrem de l'espectre, l'instal·lador estàndard de Debian es pot «preseed» (“pre-sembrar”) amb un fitxer de configuració que dona les respostes a les preguntes plantejades durant el procés d'instal·lació. A mig camí, una eina híbrida com FAI («Fully Automatic Installer» o “instal·lador completament automatitzat”) instal·la màquines utilitzant el sistema de paquets, però també utilitza la seva pròpia infraestructura per a tasques que són més específiques per a desplegaments massius (com ara inici, particionat, configuració, etc.)." #, fuzzy #| msgid "Each of these solutions has its pros and cons: SystemImager works independently from any particular packaging system, which allows it to manage large sets of machines using several distinct Linux distributions. It also includes an update system that doesn't require a reinstallation, but this update system can only be reliable if the machines are not modified independently; in other words, the user must not update any software on their own, or install any other software. Similarly, security updates must not be automated, because they have to go through the centralized reference image maintained by SystemImager. This solution also requires the target machines to be homogeneous, otherwise many different images would have to be kept and managed (an i386 image won't fit on a powerpc machine, and so on)." msgid "Each of these solutions has its pros and cons: SystemImager works independently from any particular packaging system, which allows it to manage large sets of machines using several distinct Linux distributions. It also includes an update system that doesn't require a reinstallation, but this update system can only be reliable if the machines are not modified independently; in other words, the user must not update any software on their own, or install any other software. Similarly, security updates must not be automated, because they have to go through the centralized reference image maintained by SystemImager. This solution also requires the target machines to be homogeneous, otherwise many different images would have to be kept and managed (an amd64 image won't fit on a powerpc machine, and so on)." msgstr "Cadascuna d'aquestes solucions té els seus avantatges i inconvenients: SystemImager treballa independentment de qualsevol sistema de paquets en particular, fet que li permet gestionar grans conjunts de màquines utilitzant diverses distribucions de Linux diferents. També inclou un sistema d'actualització que no requereix una reinstal·lació, però aquest sistema d'actualització només pot ser fiable si les màquines no es modifiquen independentment; en altres paraules, l'usuari no ha d'actualitzar cap programari pel seu compte, ni instal·lar qualsevol altre programari. De la mateixa manera, les actualitzacions de seguretat no han de ser automatitzades, perquè han de passar per la imatge de referència centralitzada mantinguda per SystemImager. Aquesta solució també requereix que les màquines destí siguin homogènies, altrament s'haurien de mantenir i gestionar moltes imatges diferents (una imatge i386 no encaixarà en una màquina de powerpc, etc.)." #, fuzzy #| msgid "On the other hand, an automated installation using debian-installer can adapt to the specifics of each machine: the installer will fetch the appropriate kernel and software packages from the relevant repositories, detect available hardware, partition the whole hard disk to take advantage of all the available space, install the corresponding Debian system, and set up an appropriate bootloader. However, the standard installer will only install standard Debian versions, with the base system and a set of pre-selected “tasks”; this precludes installing a particular system with non-packaged applications. Fulfilling this particular need requires customizing the installer… Fortunately, the installer is very modular, and there are tools to automate most of the work required for this customization, most importantly simple-CDD (CDD being an acronym for Custom Debian Derivative). Even the simple-CDD solution, however, only handles initial installations; this is usually not a problem since the APT tools allow efficient deployment of updates later on." msgid "On the other hand, an automated installation using debian-installer can adapt to the specifics of each machine: the installer will fetch the appropriate kernel and software packages from the relevant repositories, detect available hardware, partition the whole hard disk to take advantage of all the available space, install the corresponding Debian system, and set up an appropriate bootloader. However, the standard installer will only install standard Debian versions, with the base system and a set of pre-selected “tasks”; this precludes installing a particular system with non-packaged applications. Fulfilling this particular need requires customizing the installer… Fortunately, the installer is very modular, and there are tools to automate most of the work required for this customization, most importantly simple-cdd (CDD being an acronym for Custom Debian Derivative). Even this solution, however, only handles initial installations; this is usually not a problem since the APT tools allow efficient deployment of updates later on." msgstr "D'altra banda, una instal·lació automatitzada que utilitza debian-installer pot adaptar-se a les especificacions de cada màquina: l'instal·lador recollirà els paquets de nucli i programari apropiats dels repositoris pertinents, detectarà el maquinari disponible, particionarà tot el disc dur per aprofitar tot l'espai disponible, instal·larà el sistema Debian corresponent i configurarà un carregador adequat. No obstant això, l'instal·lador estàndard només instal·larà versions estàndard de Debian, amb el sistema base i un conjunt de “tasques” preseleccionades; això exclou la instal·lació d'un sistema particular amb aplicacions no empaquetades. Satisfer aquesta necessitat requereix personalitzar l'instal·lador... Afortunadament, l'instal·lador és molt modular, i hi ha eines per automatitzar la major part del treball necessari per a aquesta personalització, el més important és el simple-CDD (CDD és un acrònim de «Custom Debian Derivative» o “Derivat de Debian personalitzat”). Fins i tot la solució de simple-CDD, però, només gestiona instal·lacions inicials; això normalment no és un problema, ja que les eines APT permeten un desplegament eficient d'actualitzacions més endavant." #, fuzzy #| msgid "We will only give a rough overview of FAI, and skip SystemImager altogether (which is no longer in Debian), in order to focus more intently on debian-installer and simple-CDD, which are more interesting in a Debian-only context." msgid "We will only give a rough overview of FAI, and skip SystemImager altogether (which is no longer in Debian, but available as a third-party package), in order to focus more intently on debian-installer and simple-cdd, which are more interesting in a Debian-only context." msgstr "Només donarem una visió general aproximada de FAI, i saltarem el SystemImager completament (que ja no és a Debian), per tal de centrar-nos més en debian-installer i simple-CDD, que són més interessants en un context de només Debian." msgid "Fully Automatic Installer (FAI)" msgstr "Fully Automatic Installer (FAI)" #, fuzzy #| msgid "Fully Automatic Installer (FAI)" msgid "Fully Automatic InstallerFAI" msgstr "Fully Automatic Installer (FAI)" #, fuzzy #| msgid "RAID" msgid "FAI" msgstr "RAID" msgid "Fully Automatic Installer is probably the oldest automated deployment system for Debian, which explains its status as a reference; but its very flexible nature only just compensates for the complexity it involves." msgstr "Fully Automatic Installer o “instal·lador completament automatitzat” és probablement el sistema de desplegament automàtic més antic de Debian, fet que explica el seu estatus com a referència; però la seva naturalesa molt flexible només compensa la complexitat que implica." #, fuzzy #| msgid "virt-manager" msgid "FAIfai-server" msgstr "virt-manager" #, fuzzy #| msgid "virtinst" msgid "FAIfai-quickstart" msgstr "virtinst" msgid "FAI requires a server system to store deployment information and allow target machines to boot from the network. This server requires the fai-server package (or fai-quickstart, which also brings the required elements for a standard configuration)." msgstr "FAI requereix un sistema de servidor per emmagatzemar la informació de desplegament i permetre que les màquines de destinació arrenquin de xarxa. Aquest servidor requereix el paquet fai-servidor (o fai-quickstart, que també porta els elements necessaris per a una configuració estàndard)." msgid "/etc/etc/fai/FAI" msgstr "" #, fuzzy #| msgid "installationautomated installation" msgid "FAI/etc/fai/nfsroot.conf" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "FAI uses a specific approach for defining the various installable profiles. Instead of simply duplicating a reference installation, FAI is a full-fledged installer, fully configurable via a set of files and scripts stored on the server; the default location /srv/fai/config/ is not automatically created, so the administrator needs to create it along with the relevant files. Most of the times, these files will be customized from the example files available in the documentation for the fai-doc package, more particularly the /usr/share/doc/fai-doc/examples/simple/ directory." msgid "FAI uses a specific approach for defining the various installable profiles. Instead of simply duplicating a reference installation, FAI is a full-fledged installer, fully configurable via a set of files and scripts stored on the server; the default location /srv/fai/config/ according to /etc/fai/nfsroot.conf is not automatically created, so the administrator needs to create it along with the relevant files. Most of the times, these files will be customized from the example files available in the documentation for the fai-doc package, more particularly the /usr/share/doc/fai-doc/examples/simple/ directory." msgstr "FAI utilitza un enfocament específic per definir els diversos perfils instal·lables. En lloc de simplement duplicar una instal·lació de referència, FAI és un instal·lador complet, totalment configurable a través d'un conjunt de fitxers i scripts emmagatzemats al servidor; la ubicació per defecte /srv/fai/config/ no es crea automàticament, així que l'administrador ha de crear-la juntament amb els fitxers pertinents. La majoria de les vegades, aquests fitxers es personalitzaran a partir de fitxers d'exemple disponibles a la documentació al paquet fai-doc, i més concretament al directori /usr/share/doc/fai-doc/examples/simple/." #, fuzzy #| msgid "installationautomated installation" msgid "FAIfai-setup" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "FAIfai-cd" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "Once the profiles are defined, the fai-setup command generates the elements required to start a FAI installation; this mostly means preparing or updating a minimal system (NFS-root) used during installation. An alternative is to generate a dedicated boot CD with fai-cd." msgid "Once the profiles are defined, the fai-setup command generates the elements required to start an FAI installation; this mostly means preparing or updating a minimal system (NFS-root) used during installation. An alternative is to generate a dedicated boot CD with fai-cd." msgstr "Una vegada que els perfils estan definits, l'ordre fai-setup genera els elements necessaris per iniciar una instal·lació FAI; això significa principalment preparar o actualitzar un sistema mínim (NFS-root) utilitzat durant la instal·lació. Una alternativa és generar un CD d'arrencada dedicat amb fai-cd." msgid "Creating all these configuration files requires some understanding of the way FAI works. A typical installation process is made of the following steps:" msgstr "La creació de tots aquests fitxers de configuració requereix una certa comprensió de la manera en què funciona FAI. Un procés d'instal·lació típic consisteix en els següents passos:" msgid "fetching a kernel from the network, and booting it;" msgstr "descarregar un nucli de la xarxa i arrencar-lo;" msgid "mounting the root filesystem from NFS;" msgstr "muntar el sistema de fitxers arrel des d'NFS;" #, fuzzy #| msgid "installationautomated installation" msgid "FAIfai" msgstr "instal·lacióinstal·lació automatitzada" msgid "executing /usr/sbin/fai, which controls the rest of the process (the next steps are therefore initiated by this script);" msgstr "executar /usr/sbin/fai, que controla la resta del procés (els següents passos són iniciats per aquest script);" msgid "copying the configuration space from the server into /fai/;" msgstr "copiar l'espai de configuració des del servidor a /fai/;" msgid "running fai-class. The /fai/class/[0-9][0-9]* scripts are executed in turn, and return names of “classes” that apply to the machine being installed; this information will serve as a base for the following steps. This allows for some flexibility in defining the services to be installed and configured." msgstr "executar fai-class. Els scripts /fai/class/[0-9][0-9]* s'executen per ordre, i retornen noms de “classes” que s'apliquen a la màquina que s'està instal·lant; aquesta informació servirà com a base per als següents passos. Això permet una certa flexibilitat en la definició dels serveis per instal·lar i configurar." msgid "fetching a number of configuration variables, depending on the relevant classes;" msgstr "recopilar una sèrie de variables de configuració, depenent de les classes rellevants;" msgid "partitioning the disks and formatting the partitions, based on information provided in /fai/disk_config/class;" msgstr "particionar els discos i formatar les particions, basant-se en la informació proporcionada a /fai/disk_config/classe;" msgid "mounting said partitions;" msgstr "muntar les citades particions;" msgid "installing the base system;" msgstr "instal·lar el sistema base;" #, fuzzy #| msgid "debconf" msgid "FAIfai-debconf" msgstr "debconf" msgid "preseeding the Debconf database with fai-debconf;" msgstr "“presembrar” la base de dades Debconf amb fai-debconf;" msgid "fetching the list of available packages for APT;" msgstr "obtenir la llista de paquets disponibles per APT;" msgid "installing the packages listed in /fai/package_config/class;" msgstr "instal·lació dels paquets llistats a /fai/package_config/classe;" msgid "executing the post-configuration scripts, /fai/scripts/class/[0-9][0-9]*;" msgstr "executar els scripts de postconfiguració, /fai/scripts/classe/[0-9][0-9]*;" msgid "recording the installation logs, unmounting the partitions, and rebooting." msgstr "desar els registres de la instal·lació, desmuntar les particions i reiniciar." msgid "Preseeding Debian-Installer" msgstr "Presembrar el Debian-Installer" msgid "preseed" msgstr "presembrar" msgid "preconfiguration" msgstr "preconfiguració" #, fuzzy #| msgid "installationautomated installation" msgid "installationpreseeding" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "At the end of the day, the best tool to install Debian systems should logically be the official Debian installer. This is why, right from its inception, debian-installer has been designed for automated use, taking advantage of the infrastructure provided by debconf. The latter allows, on the one hand, to reduce the number of questions asked (hidden questions will use the provided default answer), and on the other hand, to provide the default answers separately, so that installation can be non-interactive. This last feature is known as preseeding." msgid "At the end of the day, the best tool to install Debian systems should logically be the official Debian installer. This is why, right from its inception, debian-installer has been designed for automated use, taking advantage of the infrastructure provided by debconf. The latter allows, on the one hand, to reduce the number of questions asked (hidden questions will use the provided default answer), and on the other hand, to provide the default answers separately, so that installation can be non-interactive. This last feature is known as preseeding." msgstr "Després de tot, la millor eina per instal·lar sistemes Debian hauria de ser lògicament l'instal·lador oficial de Debian. Aquesta és la raó per la qual, des del seu inici, debian-installer ha estat dissenyat per a un ús automatitzat, aprofitant la infraestructura proporcionada per debconf. Aquest últim permet, d'una banda, reduir el nombre de preguntes plantejades (les preguntes ocultes utilitzaran la resposta per defecte proporcionada), i per una altra, proporcionar per separat les respostes per defecte, de manera que la instal·lació pot ser no interactiva. Aquesta última característica es coneix com «preseeding» o “presembrar”." msgid "GOING FURTHER Debconf with a centralized database" msgstr "ANANT MÉS ENLLÀ Debconf amb una base de dades centralitzada" #, fuzzy #| msgid "mdadm" msgid "debconf-doc" msgstr "mdadm" msgid "Preseeding allows to provide a set of answers to Debconf questions at installation time, but these answers are static and do not evolve as time passes. Since already-installed machines may need upgrading, and new answers may become required, the /etc/debconf.conf configuration file can be set up so that Debconf uses external data sources (such as an LDAP directory server, or a remote file accessed via NFS or Samba). Several external data sources can be defined at the same time, and they complement one another. The local database is still used (for read-write access), but the remote databases are usually restricted to reading. The debconf.conf 5 manual page describes all the possibilities in detail (you need the debconf-doc package)." msgstr "El “presembrat” permet proporcionar un conjunt de respostes a les preguntes de Debconf en el moment de la instal·lació, però aquestes respostes són estàtiques i no evolucionen a mesura que passa el temps. Com que les màquines ja instal·lades poden necessitar actualitzar-se, i noves respostes poden ser necessàries, el fitxer de configuració /etc/debconf.conf es pot configurar perquè Debconf utilitzi fonts de dades externes (com un servidor de directoris LDAP, o un fitxer remot al qual s'accedeix via NFS o Samba). Diverses fonts de dades externes es poden definir al mateix temps, i es complementen mútuament. La base de dades local encara s'utilitza (amb accés de lectura i escriptura), però les bases de dades remotes queden restringides a la lectura. La plana del manual debconf.conf 5 descriu totes les possibilitats en detall (necessitareu el paquet debconf-doc)." msgid "debconf" msgstr "debconf" msgid "Using a Preseed File" msgstr "Ús d'un fitxer de presembrat" msgid "There are several places where the installer can get a preseeding file:" msgstr "Hi ha diversos llocs d'on l'instal·lador pot obtenir un fitxer de presembrat:" #, fuzzy #| msgid "preseed" msgid "preseed.cfg" msgstr "presembrar" msgid "in the initrd used to start the machine; in this case, preseeding happens at the very beginning of the installation, and all questions can be avoided. The file just needs to be called preseed.cfg and stored in the initrd root." msgstr "a l'initrd usat per iniciar la màquina; en aquest cas, el presembrat es produeix just al principi de la instal·lació, i així totes les preguntes es poden evitar. El fitxer només s'ha de dir preseed.cfg i ha d'estar emmagatzemat a l'arrel de l'initrd." msgid "on the boot media (CD or USB key); preseeding then happens as soon as the media is mounted, which means right after the questions about language and keyboard layout. The preseed/file boot parameter can be used to indicate the location of the preseeding file (for instance, /cdrom/preseed.cfg when the installation is done off a CD-ROM, or /hd-media/preseed.cfg in the USB-key case)." msgstr "en el suport d'arrencada (CD o llapis USB); el presembrat es produeix tan aviat com el suport està muntat, fet que significa just després de les preguntes sobre el llenguatge i la disposició del teclat. El paràmetre d'arrencada preseed/file es pot utilitzar per indicar la ubicació del fitxer de presembrat (per exemple, /cdrom/preseed.cfg quan la instal·lació es fa des d'un CD-ROM, o /hd-media/preseed.cfg en el cas de llapis USB)." #, fuzzy #| msgid "from the network; preseeding then only happens after the network is (automatically) configured; the relevant boot parameter is then preseed/url=http://server/preseed.cfg." msgid "from the network; preseeding then only happens after the network is (automatically) configured; the relevant boot parameter is then preseed/url=http://server/preseed.cfg (HTTPS, FTPS, SFTP, etc. are not supported)." msgstr "des de la xarxa; el presembrat només es dona després que la xarxa estigui (automàticament) configurada; el paràmetre d'arrencada pertinent és llavors preseed/url=http://servidor/preseed.cfg." msgid "At a glance, including the preseeding file in the initrd looks like the most interesting solution; however, it is rarely used in practice, because generating an installer initrd is rather complex. The other two solutions are much more common, especially since boot parameters provide another way to preseed the answers to the first questions of the installation process. The usual way to save the bother of typing these boot parameters by hand at each installation is to save them into the configuration for isolinux (in the CD-ROM case) or syslinux (USB key)." msgstr "A primera vista, incloure el fitxer de presembrat a l'initrd sembla la solució més interessant; no obstant això, rarament s'utilitza a la pràctica, perquè generar un instal·lador initrd és bastant complex. Les altres dues solucions són molt més comunes, especialment perquè els paràmetres d'arrencada proporcionen una altra manera de presembrar les respostes a les primeres preguntes del procés d'instal·lació. La manera habitual d'estalviar-se la molèstia d'escriure aquests paràmetres d'arrencada a mà en cada instal·lació és desar-los a la configuració d'isolinux (en el cas de CD-ROM) o syslinux (llapis USB)." msgid "Creating a Preseed File" msgstr "Creació d'un fitxer de presembrat" msgid "A preseed file is a plain text file, where each line contains the answer to one Debconf question. A line is split across four fields separated by whitespace (spaces or tabs), as in, for instance, d-i mirror/suite string stable:" msgstr "Un fitxer de presembrat és un fitxer de text pla, on cada línia conté la resposta a una pregunta de Debconf. Una línia es divideix entre quatre camps separats per espais en blanc (espais o tabuladors), com a, per exemple, d-i mirror/suite string stable:" msgid "the first field is the “owner” of the question; “d-i” is used for questions relevant to the installer, but it can also be a package name for questions coming from Debian packages;" msgstr "el primer camp és el \"propietari\" de la pregunta; \"d-i\" s'utilitza per a les preguntes rellevants per a l'instal·lador, però també pot ser un nom de paquet per a les preguntes procedents dels paquets de Debian;" #, fuzzy #| msgid "the second field is an identifier for the question;" msgid "the second field is an identifier for the question (the template name);" msgstr "el segon camp és un identificador per a la pregunta;" msgid "third, the type of question;" msgstr "tercer, el tipus de pregunta;" msgid "the fourth and last field contains the value for the answer. Note that it must be separated from the third field with a single space; if there are more than one, the following space characters are considered part of the value." msgstr "el quart i l'últim camp conté el valor de la resposta. Cal tenir en compte que s'ha de separar del tercer camp amb un sol espai; si hi ha més d'un, els següents caràcters d'espai es consideren part del valor." msgid "The simplest way to write a preseed file is to install a system by hand. Then debconf-get-selections --installer will provide the answers concerning the installer. Answers about other packages can be obtained with debconf-get-selections. However, a cleaner solution is to write the preseed file by hand, starting from an example and the reference documentation: with such an approach, only questions where the default answer needs to be overridden can be preseeded; using the priority=critical boot parameter will instruct Debconf to only ask critical questions, and use the default answer for others." msgstr "La manera més simple d'escriure un fitxer de presembrat és instal·lar un sistema a mà. Llavors debconf-get-selections --installer proporcionarà les respostes relatives a l'instal·lador. Es poden obtenir respostes sobre altres paquets amb debconf-get-selections. No obstant això, una solució més neta és escriure el fitxer de presembrat a mà, començant per un exemple i la documentació de referència: amb aquest enfocament, només es poden plantejar preguntes on la resposta per defecte ha de ser canviada; utilitzant el paràmetre d'arrencada priority=critical s'indica a Debconf de fer només preguntes crítiques, i utilitzar la resposta per defecte per a la resta." msgid "Pre-setting a value in a preseed file automatically instructs the Debian installer to not ask that question. This happens, because loading the preseed file does not just set the given value(s), but also marks each of the affected dialogs as “seen“ by the user. Thus it is possible to pre-set a question's value and still present the dialog to the user by resetting the “seen“ flag. Beware that order in this case matters and that the value has to be preseeded before setting the dialog to “unseen“ as shown in the following example:" msgstr "" msgid "" "d-i netcfg/hostname string worker\n" "d-i netcfg/hostname seen false" msgstr "" #, fuzzy #| msgid "debconf" msgid "debconf-get-selections" msgstr "debconf" msgid "DOCUMENTATION Installation guide appendix" msgstr "DOCUMENTACIÓ Apèndix de la guia d'instal·lació" #, fuzzy #| msgid "installationautomated installation" msgid "preseedall templates" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "The installation guide, available online, includes detailed documentation on the use of a preseed file in an appendix. It also includes a detailed and commented sample file, which can serve as a base for local customizations. " msgid "The installation guide, available online, includes detailed documentation on the use of a preseed file in an appendix. It also includes a detailed and commented sample file, which can serve as a base for local customizations. There are also collections of all debconf templates extracted from each component and suite of Debian: " msgstr "La guia d'instal·lació, disponible en línia, inclou documentació detallada sobre l'ús d'un arxiu «preseed» en un apèndix. També inclou un fitxer de mostra detallat i comentat, que pot servir com a base per a personalitzacions locals. " msgid "Preseeding an installation is often not as straightforward as one would wish. It sometimes requires to understand how packages process the given values in their scripts. Don't hesitate to ask on the debian-cd@lists.debian.org mailing list or in the #debian-cd IRC channel if you require help. Also be aware that some complex setups still cannot be achieved by preseeding." msgstr "" #, fuzzy #| msgid "installationautomated installation" msgid "mailing listsdebian-cd@lists.debian.org" msgstr "instal·lacióinstal·lació automatitzada" msgid "Creating a Customized Boot Media" msgstr "Creació un suport d'arrencada personalitzat" msgid "Knowing where to store the preseed file is all very well, but the location isn't everything: one must, one way or another, alter the installation boot media to change the boot parameters and add the preseed file." msgstr "Saber on emmagatzemar el fitxer de presembrat està molt bé, però la ubicació no ho és tot: cal, d'una manera o una altra, alterar el mitjà d'arrencada d'instal·lació per canviar els paràmetres d'arrencada i afegir el fitxer de presembrat." msgid "Booting From the Network" msgstr "Arrencada des de la xarxa" msgid "PXE" msgstr "PXE" msgid "When a computer is booted from the network, the server sending the initialization elements also defines the boot parameters. Thus, the change needs to be made in the PXE configuration for the boot server; more specifically, in its /tftpboot/pxelinux.cfg/default configuration file. Setting up network boot is a prerequisite; see the Installation Guide for details. " msgstr "Quan un ordinador s'inicia des de la xarxa, el servidor que envia els elements d'iniciació també defineix els paràmetres d'arrencada. Per tant, el canvi s'ha de fer en la configuració de PXE del servidor d'arrencada; més específicament, al fitxer de configuració /tftpboot/pxelinux.cfg/default. La configuració de l'arrencada de xarxa és un requisit previ; vegeu la Guia d'Instal·lació per als detalls. " msgid "Preparing a Bootable USB Key" msgstr "Preparació d'un llapis USB d'arrencada" #, fuzzy #| msgid "VirtualBox" msgid "syslinux.cfg" msgstr "VirtualBox" #, fuzzy #| msgid "Munin" msgid "syslinux" msgstr "Munin" #, fuzzy #| msgid "Munin" msgid "isolinux" msgstr "Munin" #, fuzzy #| msgid "Icinga" msgid "grub.cfg" msgstr "Icinga" #, fuzzy #| msgid "Once a bootable key has been prepared (see ), a few extra operations are needed. Assuming the key contents are available under /media/usbdisk/:" msgid "Once a bootable key has been prepared (see ), a few extra operations are needed. Assuming the key contents are available under /media/usbdisk/, copy the preseed file to /media/usbdisk/preseed.cfg." msgstr "Una vegada que s'ha preparat una llapis d'arrencada (vegeu ), es necessiten algunes operacions addicionals. Suposant que el contingut del llapis està disponible sota /media/usbdisk/:" msgid "If you have been using a hybrid ISO image to create the bootable USB stick, then you have to edit /media/usbdisk/boot/grub/grub.cfg (for the EFI boot screen):" msgstr "" #, fuzzy #| msgid "syslinux.cfg file and preseeding parameters" msgid "boot/grub/grub.cfg file and preseeding parameters" msgstr "fitxer syslinux.cfg i paràmetres de presembrat" #, fuzzy #| msgid "" #| "default vmlinuz\n" #| "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" msgid "" "menuentry --hotkey=i 'Install' {\n" " set background_color=black\n" " linux /install.amd/vmlinuz preseed/file=/cdrom/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 --- quiet \n" " initrd /install.amd/initrd.gz\n" "}" msgstr "" "default vmlinuz\n" "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" msgid "And you have to edit /media/usbdisk/isolinux/isolinux.cfg (for BIOS boot) or one of the files it utilizes - e.g. /media/usbdisk/isolinux/txt.cfg - to add required boot parameters:" msgstr "" #, fuzzy #| msgid "syslinux.cfg file and preseeding parameters" msgid "isolinux/txt.cfg file and preseeding parameters" msgstr "fitxer syslinux.cfg i paràmetres de presembrat" #, fuzzy #| msgid "" #| "default vmlinuz\n" #| "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" msgid "" "label install\n" " menu label ^Install\n" " kernel [...]\n" " append preseed/file=/cdrom/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=/install.amd/initrd.gz --- quiet" msgstr "" "default vmlinuz\n" "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" #, fuzzy #| msgid "edit /media/usbdisk/syslinux.cfg and add required boot parameters (see example below)." msgid "If you have been using the hd-media installer image for a custom USB stick, edit /media/usbdisk/syslinux.cfg and add the required boot parameters as shown in the example below:" msgstr "editeu /media/usbdisk/syslinux.cfg i afegiu els paràmetres d'arrencada necessaris (vegeu l'exemple següent)." msgid "syslinux.cfg file and preseeding parameters" msgstr "fitxer syslinux.cfg i paràmetres de presembrat" msgid "" "default vmlinuz\n" "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" msgstr "" "default vmlinuz\n" "append preseed/file=/hd-media/preseed.cfg locale=en_US.UTF-8 keymap=us language=us country=US vga=788 initrd=initrd.gz --" msgid "Creating a CD-ROM Image" msgstr "Creació d'una imatge de CD-ROM" #, fuzzy #| msgid "mdadm" msgid "debian-cd" msgstr "mdadm" #, fuzzy #| msgid "xe" msgid "genisoimage" msgstr "xe" #, fuzzy #| msgid "xm" msgid "mkisofs" msgstr "xm" #, fuzzy #| msgid "xm" msgid "xorriso" msgstr "xm" msgid "A USB key is a read-write media, so it was easy for us to add a file there and change a few parameters. In the CD-ROM case, the operation is more complex, since we need to regenerate a full ISO image. This task is handled by debian-cd, but this tool is rather awkward to use: it needs a local mirror, and it requires an understanding of all the options provided by /usr/share/debian-cd/CONF.sh; even then, make must be invoked several times. /usr/share/debian-cd/README is therefore a very recommended read." msgstr "Un llapis USB és un mitjà de lectura-escriptura, per la qual cosa és fàcil afegir un fitxer i canviar alguns paràmetres. En el cas d'un CD-ROM l'operació és més complexa ja que hem de regenerar una imatge ISO completa. Aquesta tasca és resolta per debian-cd, però aquesta eina és força difícil d'utilitzar: necessita un mirall local, i requereix una comprensió de totes les opcions proporcionades per /usr/share/debian-cd/CONF.sh; fins i tot llavors, make ha de ser invocat diverses vegades. /usr/share/debian-cd/README és per tant una lectura molt recomanada." #, fuzzy #| msgid "Having said that, debian-cd always operates in a similar way: an “image” directory with the exact contents of the CD-ROM is generated, then converted to an ISO file with a tool such as genisoimage, mkisofs or xorriso. The image directory is finalized after debian-cd's make image-trees step. At that point, we insert the preseed file into the appropriate directory (usually $TDIR/$CODENAME/CD1/, $TDIR and $CODENAME being parameters defined by the CONF.sh configuration file). The CD-ROM uses isolinux as its bootloader, and its configuration file must be adapted from what debian-cd generated, in order to insert the required boot parameters (the specific file is $TDIR/$CODENAME/boot1/isolinux/isolinux.cfg). Then the “normal” process can be resumed, and we can go on to generating the ISO image with make image CD=1 (or make images if several CD-ROMs are generated)." msgid "Having said that, debian-cd always operates in a similar way: an “image” directory with the exact contents of the CD-ROM is generated, then converted to an ISO file with a tool such as genisoimage, mkisofs or xorriso. The image directory is finalized after debian-cd's make image-trees step. At that point, we insert the preseed file into the appropriate directory (usually $TDIR/$CODENAME/CD1/, $TDIR and $CODENAME being parameters defined by the CONF.sh configuration file). The CD-ROM uses isolinux as its bootloader, and its configuration file must be adapted from what debian-cd generated, in order to insert the required boot parameters (the specific files are $TDIR/$CODENAME/CD1/isolinux/isolinux.cfg and $TDIR/$CODENAME/CD1/boot/grub/grub.cfg as shown above). Then the “normal” process can be resumed, and we can go on to generating the ISO image with make image CD=1 (or make images if several CD-ROMs are generated)." msgstr "Dit això, debian-cd sempre funciona de manera similar: es genera un directori “imatge” amb el contingut exacte del CD-ROM, després es converteix en un fitxer ISO amb una eina com genisoimage, mkisofs o xorriso. El directori amb la imatge es finalitza després del pas make-image-trees de debian-cd. En aquest punt, s'insereix el fitxer de presembrat al directori apropiat (normalment $TDIR/$CODENAME/CD1/, on $TDIR i $CODENAME són paràmetres definits pel fitxer de configuració CONF.sh). El CD-ROM utilitza isolinux com el seu carregador d'arrencada, i el seu fitxer de configuració s'ha d'adaptar a partir del que debian-cd ha generat per tal d'inserir els paràmetres d'arrencada necessaris (el fitxer específic és $TDIR/$CODENAME/boot1/isolinux/isolinux.cfg). Llavors es pot reprendre el procés “normal” i podem continuar generant la imatge ISO amb make image CD=1 (o make images si es generen diversos CD-ROM)." msgid "Simple-CDD: The All-In-One Solution" msgstr "Simple-CDD: la solució tot-en-un" #, fuzzy #| msgid "mdadm" msgid "simple-cdd" msgstr "mdadm" msgid "Simply using a preseed file is not enough to fulfill all the requirements that may appear for large deployments. Even though it is possible to execute a few scripts at the end of the normal installation process, the selection of the set of packages to install is still not quite flexible (basically, only “tasks” can be selected); more important, this only allows installing official Debian packages, and precludes locally-generated ones." msgstr "Només utilitzar un fitxer de presembrat no és suficient per complir tots els requisits que poden aparèixer per a grans desplegaments. Tot i que és possible executar alguns scripts al final del procés d'instal·lació normal, la selecció del conjunt de paquets a instal·lar encara no és prou flexible (bàsicament, només es poden seleccionar “tasques”); i més important, això només permet instal·lar paquets oficials de Debian, i exclou els generats localment." #, fuzzy #| msgid "On the other hand, debian-cd is able to integrate external packages, and debian-installer can be extended by inserting new steps in the installation process. By combining these capabilities, it should be possible to create a customized installer that fulfills our needs; it should even be able to configure some services after unpacking the required packages. Fortunately, this is not a mere hypothesis, since this is exactly what Simple-CDD (in the simple-cdd package) does." msgid "On the other hand, debian-cd is able to integrate external packages, and debian-installer can be extended by inserting new steps in the installation process. By combining these capabilities, it should be possible to create a customized installer that fulfills our needs; it should even be able to configure some services after unpacking the required packages. Fortunately, this is not a mere hypothesis, since this is exactly what simple-cdd does." msgstr "D'altra banda, debian-cd és capaç d'integrar paquets externs, i debian-installer es pot estendre inserint nous passos en el procés d'instal·lació. Combinant aquestes capacitats, hauria de ser possible crear un instal·lador personalitzat que satisfaci les nostres necessitats; fins i tot hauria de ser capaç de configurar alguns serveis després de desempaquetar els paquets necessaris. Afortunadament, això no és una mera hipòtesi, ja que això és exactament el que fa el Simple-CDD (del paquet simple-cdd)." #, fuzzy #| msgid "The purpose of Simple-CDD is to allow anyone to easily create a distribution derived from Debian, by selecting a subset of the available packages, preconfiguring them with Debconf, adding specific software, and executing custom scripts at the end of the installation process. This matches the “universal operating system” philosophy, since anyone can adapt it to their own needs." msgid "The purpose of this tool is to allow anyone to easily create a distribution derived from Debian, by selecting a subset of the available packages, preconfiguring them with Debconf, adding specific software, and executing custom scripts at the end of the installation process. This matches the “universal operating system” philosophy, since anyone can adapt it to their own needs." msgstr "El propòsit de Simple-CDD és permetre a qualsevol crear fàcilment una distribució derivada de Debian seleccionant un subconjunt dels paquets disponibles, preconfigurant-los amb Debconf, afegint programari específic, i executant scripts personalitzats al final del procés d'instal·lació. Això coincideix amb la filosofia del \"sistema operatiu universal\", ja que qualsevol pot adaptar-lo a les seves pròpies necessitats." msgid "Creating Profiles" msgstr "Creació de perfils" msgid "Simple-CDD defines “profiles” that match the FAI “classes” concept, and a machine can have several profiles (determined at installation time). A profile is defined by a set of profiles/profile.* files:" msgstr "Simple-CDD defineix “perfils” que coincideixen amb el concepte de “classes” de FAI, i una màquina pot tenir diversos perfils (determinats en el moment de la instal·lació). Un perfil es defineix per un conjunt de fitxers profiles/perfil.*:" msgid "the .description file contains a one-line description for the profile;" msgstr "el fitxer .description conté una descripció d'una línia per al perfil;" msgid "the .packages file lists packages that will automatically be installed if the profile is selected;" msgstr "el fitxer .packages llista els paquets que s'instal·laran automàticament si el perfil està seleccionat;" msgid "the .downloads file lists packages that will be stored onto the installation media, but not necessarily installed;" msgstr "el fitxer .downloads llista els paquets que s'emmagatzemaran als mitjans d'instal·lació, però no necessàriament instal·lats;" msgid "the .preseed file contains preseeding information for Debconf questions (for the installer and/or for packages);" msgstr "el fitxer .preseed conté informació de presembrat per a les preguntes Debconf (per a l'instal·lador i/o per als paquets);" msgid "the .postinst file contains a script that will be run at the end of the installation process;" msgstr "el fitxer .postinst conté un script que s'executarà al final del procés d'instal·lació;" #, fuzzy #| msgid "lastly, the .conf file allows changing some Simple-CDD parameters based on the profiles to be included in an image." msgid "lastly, the .conf file allows changing some parameters based on the profiles to be included in an image." msgstr "Finalment, el fitxer .conf permet canviar alguns paràmetres de Simple-CDD basats en els perfils a ser inclosos en una imatge." msgid "The default profile has a particular role, since it is always selected; it contains the bare minimum required for Simple-CDD to work. The only thing that is usually customized in this profile is the simple-cdd/profiles preseed parameter: this allows avoiding the question, introduced by Simple-CDD, about what profiles to install." msgstr "El perfil default té un paper particular, ja que sempre està seleccionat; conté el mínim necessari perquè el Simple-CDD pugui funcionar. L'única cosa que normalment es personalitza en aquest perfil és el paràmetre preseed de simple-cdd/profiles: això permet evitar la pregunta, introduïda per Simple-CDD, sobre quins perfils s'han d'instal·lar." msgid "Note also that the commands will need to be invoked from the parent directory of the profiles directory." msgstr "Adoneu-vos-en que les ordres s'hauran d'invocar des del directori pare del directori profiles." msgid "Configuring and Using build-simple-cdd" msgstr "Configuració i ús de build-simple-cdd" msgid "build-simple-cdd" msgstr "build-simple-cdd" msgid "QUICK LOOK Detailed configuration file" msgstr "ULLADA RÀPIDA Fitxer de configuració detallat" #, fuzzy #| msgid "An example of a Simple-CDD configuration file, with all possible parameters, is included in the package (/usr/share/doc/simple-cdd/examples/simple-cdd.conf.detailed.gz). This can be used as a starting point when creating a custom configuration file." msgid "An example of a Simple-CDD configuration file, with most possible parameters, is included in the package (/usr/share/doc/simple-cdd/examples/simple-cdd.conf.detailed). This can be used as a starting point when creating a custom configuration file. Unfortunately not everything is documented there, so some variables are only listed and explained in /usr/lib/python3/dist-packages/simple_cdd/variables.py." msgstr "Un exemple d'un fitxer de configuració de Simple-CDD, amb tots els paràmetres possibles, s'inclou al paquet (/usr/share/doc/simple-cdd/examples/simple-cdd.conf.detailed.gz). Això es pot utilitzar com a punt d'inici quan es crea un fitxer de configuració personalitzat." msgid "It is further important to familiarize yourself with the variables understood by /usr/share/debian-cd/CONF.sh." msgstr "" msgid "Simple-CDD requires many parameters to operate fully. They will most often be gathered in a configuration file, which build-simple-cdd can be pointed at with the --conf option, but they can also be specified via dedicated parameters given to build-simple-cdd. Here is an overview of how this command behaves, and how its parameters are used:" msgstr "El Simpe-CDD requereix molts paràmetres per operar completament. Sovint es recolliran en un fitxer de configuració, que es pot indicar a build-simple-cdd amb l'opció --conf, però també es poden especificar mitjançant paràmetres dedicats passats a build-simple-cdd. Aquí hi ha una vista general de com es comporta aquesta ordre i com s'utilitzen els seus paràmetres:" msgid "the profiles parameter lists the profiles that will be included on the generated CD-ROM image;" msgstr "el paràmetre profiles llista els perfils que s'inclouran a la imatge CD-ROM generada;" msgid "based on the list of required packages, Simple-CDD downloads the appropriate files from the server mentioned in server, and gathers them into a partial mirror (which will later be given to debian-cd);" msgstr "Basant-se en la llista de paquets requerits, Simple-CDD descarrega els fitxers apropiats del servidor esmentat a server, i els recull en un mirall parcial (que més tard es passarà a debian-cd);" msgid "the custom packages mentioned in local_packages are also integrated into this local mirror;" msgstr "els paquets personalitzats esmentats a local_packages també seran inclosos en aquest mirall local;" msgid "debian-cd is then executed (within a default location that can be configured with the debian_cd_dir variable), with the list of packages to integrate;" msgstr "debian-cd s'executa llavors (des d'una ubicació predeterminada que es pot configurar amb la variable debian_cd_dir), amb la llista de paquets a incloure;" msgid "once debian-cd has prepared its directory, Simple-CDD applies some changes to this directory:" msgstr "Una vegada que debian-cd ha preparat el seu directori, Simple-CDD aplica alguns canvis a aquest directori:" msgid "files containing the profiles are added in a simple-cdd subdirectory (that will end up on the CD-ROM);" msgstr "els fitxers que contenen els perfils s'afegeixen en un subdirectori simple-cdd (que apareixerà al CD-ROM);" msgid "other files listed in the all_extras parameter are also added;" msgstr "també s'hi afegeixen altres fitxers llistats al paràmetre all_extras;" msgid "the boot parameters are adjusted so as to enable the preseeding. Questions concerning language and country can be avoided if the required information is stored in the language and country variables." msgstr "els paràmetres d'arrencada s'ajusten per habilitar el presembrat. Les preguntes relatives a la llengua i el país es poden evitar si la informació requerida s'emmagatzema a les variables language i country." msgid "debian-cd then generates the final ISO image." msgstr "llavors debian-cd genera la imatge ISO final." msgid "Generating an ISO Image" msgstr "Generació d'una imatge ISO" #, fuzzy #| msgid "Once we have written a configuration file and defined our profiles, the remaining step is to invoke build-simple-cdd --conf simple-cdd.conf. After a few minutes, we get the required image in images/debian-10-amd64-CD-1.iso." msgid "Once we have written a configuration file and defined our profiles, the remaining step is to invoke build-simple-cdd --conf simple-cdd.conf. After a few minutes, we get the required image in images/debian-11-amd64-CD-1.iso." msgstr "Una vegada que hem escrit un fitxer de configuració i definit els nostres perfils, el darrer pas és invocar build-simple-cdd --conf simple-cdd.conf. Després d'uns minuts, obtenim la imatge requerida a images/debian-10-amd64-CD-1.iso." #, fuzzy #| msgid "Munin" msgid "monitoring" msgstr "Munin" msgid "Munin" msgstr "Munin" msgid "Nagios" msgstr "Nagios" msgid "Monitoring is a generic term, and the various involved activities have several goals: on the one hand, following usage of the resources provided by a machine allows anticipating saturation and the subsequent required upgrades; on the other hand, alerting the administrator as soon as a service is unavailable or not working properly means that the problems that do happen can be fixed sooner." msgstr "La monitorizació és un terme genèric, i les diverses activitats implicades tenen diversos objectius: d'una banda, fer seguiment de l'ús dels recursos proporcionats per una màquina permet anticipar la saturació i les posteriors actualitzacions necessàries; d'altra banda, alertar a l'administrador tan aviat com un servei no estigui disponible o no funcioni correctament significa que els problemes que ocorren es poden solucionar abans." msgid "Munin covers the first area, by displaying graphical charts for historical values of a number of parameters (used RAM, occupied disk space, processor load, network traffic, Apache/MySQL load, and so on). Nagios covers the second area, by regularly checking that the services are working and available, and sending alerts through the appropriate channels (e-mails, text messages, and so on). Both have a modular design, which makes it easy to create new plug-ins to monitor specific parameters or services." msgstr "Munin cobreix la primera àrea, mitjançant la visualització de gràfics per a valors històrics d'una sèrie de paràmetres (RAM usada, espai de disc ocupat, càrrega de processador, trànsit de xarxa, càrrega Apache/MySQL, etc.). Nagios cobreix la segona àrea, comprovant regularment que els serveis estan funcionant i disponibles, i enviant alertes a través dels canals apropiats (e-mails, missatges de text, etc.). Tots dos tenen un disseny modular, que facilita la creació de nous connectors per monitorar paràmetres o serveis específics." msgid "ALTERNATIVE Zabbix, an integrated monitoring tool" msgstr "ALTERNATIVA Zabbix, una eina de monitorització integrada" msgid "Zabbix" msgstr "Zabbix" #, fuzzy #| msgid "Although Munin and Nagios are in very common use, they are not the only players in the monitoring field, and each of them only handles half of the task (graphing on one side, alerting on the other). Zabbix, on the other hand, integrates both parts of monitoring; it also has a web interface for configuring the most common aspects. It has grown by leaps and bounds during the last few years, and can now be considered a viable contender. On the monitoring server, you would install zabbix-server-pgsql (or zabbix-server-mysql), possibly together with zabbix-frontend-php to have a web interface. On the hosts to monitor you would install zabbix-agent feeding data back to the server. " msgid "Although Munin and Nagios are in very common use, they are not the only players in the monitoring field, and each of them only handles half of the task (graphing on one side, alerting on the other). Zabbix, on the other hand, integrates both parts of monitoring; it also has a web interface for configuring the most common aspects. It has grown by leaps and bounds during the last few years, and can now be considered a viable contender. On the monitoring server, you would install zabbix-server-pgsql (or zabbix-server-mysql), possibly together with zabbix-frontend-php to have a web interface. On the hosts to monitor you would install zabbix-agent feeding data back to the server. " msgstr "Tot i que Munin i Nagios són d'ús molt comú, no són els únics jugadors en el camp de la monitorització, i cadascun d'ells només s'encarrega de la meitat de la feina (visualització gràfica en un costat, i alertes a l'altre). Zabbix, d'altra banda, integra les dues parts de la monitorització; també té una interfície web per configurar els aspectes més comuns. Ha fet passes de gegant durant els últims anys, i ara pot considerar-se un contendent viable. Al servidor de monitorització s'hi instal·laria zabbix-server-pgsql (o zabbix-server-mysql), possiblement juntament amb zabbix-frontend-php per tenir una interfície web. A les màquines per monitoritzar s'hi instal·laria zabbix-agent que alimentaria amb dades el servidor. " msgid "ALTERNATIVE Icinga, a Nagios fork" msgstr "ALTERNATIVA Icinga, un «fork» de Nagios" msgid "Icinga" msgstr "Icinga" #, fuzzy #| msgid "Spurred by divergences in opinions concerning the development model for Nagios (which is controlled by a company), a number of developers forked Nagios and use Icinga as their new name. Icinga is still compatible — so far — with Nagios configurations and plugins, but it also adds extra features. " msgid "Spurred by divergences in opinions concerning the development model for Nagios (which is controlled by a company), a number of developers forked Nagios and use Icinga as their new name. Icinga is still compatible — so far — with Nagios configurations and plugins, but it also adds extra features. " msgstr "Afavorit per les divergències en les opinions relatives al model de desenvolupament de Nagios (que està controlat per una empresa), diversos desenvolupadors van bifurcar Nagios i van utilitzar Icinga com el seu nou nom. Icinga encara és compatible, fins ara, amb configuracions i connectors de Nagios, però també afegeix característiques addicionals. " msgid "Setting Up Munin" msgstr "Configuració de Munin" #, fuzzy #| msgid "installationautomated installation" msgid "Muningrapher" msgstr "instal·lacióinstal·lació automatitzada" msgid "The purpose of Munin is to monitor many machines; therefore, it quite naturally uses a client/server architecture. The central host — the grapher — collects data from all the monitored hosts, and generates historical graphs." msgstr "El propòsit de Munin és controlar moltes màquines; per tant, utilitza de forma natural una arquitectura client/servidor. L'amfitrió central, el «grapher» o “generador de gràfiques”, recull dades de tots les màquines controladess, i genera gràfiques d'històrics." msgid "Configuring Hosts To Monitor" msgstr "Configuració dels equips a monitoritzar" #, fuzzy #| msgid "installationautomated installation" msgid "servermunin-node" msgstr "instal·lacióinstal·lació automatitzada" msgid "The first step is to install the munin-node package. The daemon installed by this package listens on port 4949 and sends back the data collected by all the active plugins. Each plugin is a simple program returning a description of the collected data as well as the latest measured value. Plugins are stored in /usr/share/munin/plugins/, but only those with a symbolic link in /etc/munin/plugins/ are really used." msgstr "El primer pas és instal·lar el paquet munin-node. El dimoni instal·lat per aquest paquet escolta pel port 4949 i envia les dades recollides per tots els connectors actius. Cada connector és un programa senzill que retorna una descripció de les dades recollides així com el valor mesurat més recent. Els connectors s'emmagatzemen a /usr/share/munin/plugins/, però només aquells amb un enllaç simbòlic a /etc/munin/plugins/ s'utilitzen realment." msgid "/etc/etc/munin/Munin" msgstr "" #, fuzzy #| msgid "installationautomated installation" msgid "Munin/etc/munin/plugins/" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "Muninplugins" msgstr "instal·lacióinstal·lació automatitzada" msgid "When the package is installed, a set of active plugins is determined based on the available software and the current configuration of the host. However, this auto-configuration depends on a feature that each plugin must provide, and it is usually a good idea to review and tweak the results by hand. Browsing the Plugin Gallery can be interesting even though not all plugins have comprehensive documentation. " msgstr "" #, fuzzy #| msgid "When the package is installed, a set of active plugins is determined based on the available software and the current configuration of the host. However, this autoconfiguration depends on a feature that each plugin must provide, and it is usually a good idea to review and tweak the results by hand. Browsing the Plugin Gallery can be interesting even though not all plugins have comprehensive documentation. However, all plugins are scripts and most are rather simple and well-commented. Browsing /etc/munin/plugins/ is therefore a good way of getting an idea of what each plugin is about and determining which should be removed. Similarly, enabling an interesting plugin found in /usr/share/munin/plugins/ is a simple matter of setting up a symbolic link with ln -sf /usr/share/munin/plugins/plugin /etc/munin/plugins/. Note that when a plugin name ends with an underscore “_”, the plugin requires a parameter. This parameter must be stored in the name of the symbolic link; for instance, the “if_” plugin must be enabled with a if_eth0 symbolic link, and it will monitor network traffic on the eth0 interface." msgid "However, all plugins are scripts and most are rather simple and well-commented. Browsing /etc/munin/plugins/ is therefore a good way of getting an idea of what each plugin is about and determining which should be removed. Similarly, enabling an interesting plugin found in /usr/share/munin/plugins/ is a simple matter of setting up a symbolic link with ln -sf /usr/share/munin/plugins/plugin /etc/munin/plugins/. Note that when a plugin name ends with an underscore “_”, the plugin requires a parameter. This parameter must be stored in the name of the symbolic link; for instance, the “if_” plugin must be enabled with a if_eth0 symbolic link, and it will monitor network traffic on the eth0 interface." msgstr "Quan el paquet està instal·lat, es determina un conjunt de connectors actius basats en el programari disponible i la configuració actual de l'amfitrió. Tanmateix, aquesta autoconfiguració depèn d'una característica que cada connector ha de proporcionar, i normalment és una bona idea revisar i ajustar els resultats a mà. Navegar per la galeria de connectors pot ser interessant encara que no tots els connectors tinguin una documentació exhaustiva. No obstant això, tots els connectors són scripts i la majoria són bastant simples i estan ben comentats. Navegar per /etc/munin/plugins/ és, per tant, una bona manera d'obtenir una idea de què tracta cada connector i determinar què es pot eliminar. De la mateixa manera, l'habilitació d'un connector interessant trobat a /usr/share/munin/plugins/ és simplement qüestió de configurar un enllaç simbòlic amb ln -sf /usr/share/munin/plugins/connector /etc/munin/plugins/. Tingueu en compte que, quan un nom de connector acaba amb un subratllat “_”, el connector requereix un paràmetre. Aquest paràmetre s'ha d'emmagatzemar en el nom de l'enllaç simbòlic; per exemple, el connector «if_» s'ha d'habilitar amb un enllaç simbòlic if_eth0, i monitoritzarà el trànsit de xarxa a la interfície eth0." #, fuzzy #| msgid "installationautomated installation" msgid "Munin/etc/munin/munin-node.conf" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "servicemunin-node.service" msgstr "instal·lacióinstal·lació automatitzada" msgid "Once all plugins are correctly set up, the daemon configuration must be updated to describe access control for the collected data. This involves allow directives in the /etc/munin/munin-node.conf file. The default configuration is allow ^127\\.0\\.0\\.1$, and only allows access to the local host. An administrator will usually add a similar line containing the IP address of the grapher host, then restart the daemon with systemctl restart munin-node." msgstr "Una vegada que tots els connectors estan correctament configurats, la configuració del dimoni s'ha d'actualitzar per descriure el control d'accés de les dades recollides. Això implica directives allow al fitxer /etc/munin/munin-node.conf. La configuració per defecte és allow ^127\\.0\\.0\\.1$, i només permet l'accés a l'amfitrió local. Un administrador normalment afegeix una línia similar que conté l'adreça IP de dels gràfics, i després reinicia el dimoni amb systemctl restart munin-node." msgid "GOING FURTHER Creating local plugins" msgstr "ANANT MÉS ENLLÀ Creació de connectors locals" #, fuzzy #| msgid "installationautomated installation" msgid "Muninmunin-run" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "Munin does include detailed documentation on how plugins should behave, and how to develop new plugins. " msgid "Munin does include detailed documentation on how plugins should behave, and how to develop new plugins. " msgstr "Munin inclou documentació detallada sobre com s'han de comportar els connectors, i com desenvolupar-ne de nous. " msgid "A plugin is best tested when run in the same conditions as it would be when triggered by munin-node; this can be simulated by running munin-run plugin as root. A potential second parameter given to this command (such as config) is passed to the plugin as a parameter." msgstr "Un connector es prova millor quan s'executa en les mateixes condicions que si s'activa amb el munin-node; això es pot simular executant munin-run connector com a superusuari. Un segon paràmetre potencial donat a aquesta ordre (com ara config) es passa al connector com a paràmetre." msgid "When a plugin is invoked with the config parameter, it must describe itself by returning a set of fields:" msgstr "Quan s'invoca un connector amb el paràmetre config, aquest ha de descriure's retornant un conjunt de camps:" #, fuzzy #| msgid "" #| "$ sudo munin-run load config\n" #| "graph_title Load average\n" #| "graph_args --base 1000 -l 0\n" #| "graph_vlabel load\n" #| "graph_scale no\n" #| "graph_category system\n" #| "load.label load\n" #| "graph_info The load average of the machine describes how many processes are in the run-queue (scheduled to run \"immediately\").\n" #| "load.info 5 minute load average\n" #| "" msgid "" "# munin-run load config\n" "graph_title Load average\n" "graph_args --base 1000 -l 0\n" "graph_vlabel load\n" "graph_scale no\n" "graph_category system\n" "load.label load\n" "graph_info The load average of the machine describes how many processes are in the run-queue (scheduled to run \"immediately\").\n" "load.info 5 minute load average\n" "" msgstr "" "$ sudo munin-run load config\n" "graph_title Load average\n" "graph_args --base 1000 -l 0\n" "graph_vlabel load\n" "graph_scale no\n" "graph_category system\n" "load.label load\n" "graph_info The load average of the machine describes how many processes are in the run-queue (scheduled to run \"immediately\").\n" "load.info 5 minute load average\n" "" msgid "The various available fields are described by the “Plugin reference” available as part of the “Munin guide”. " msgstr "Els diversos camps disponibles són descrits per la «Plugin reference» o “referència sobre els connectors” disponible com a part de la «Munin guide». " msgid "When invoked without a parameter, the plugin simply returns the last measured values; for instance, executing sudo munin-run load could return load.value 0.12." msgstr "Quan s'invoca sense paràmetres, el connector simplement retorna els últims valors mesurats; per exemple, executant sudo munin-run load podria retornar load.value 0.12." msgid "Finally, when a plugin is invoked with the autoconf parameter, it should return “yes” (and a 0 exit status) or “no” (with a 1 exit status) according to whether the plugin should be enabled on this host." msgstr "Finalment, quan s'invoca un connector amb el paràmetre autoconf, hauria de retornar «yes» (i un codi de sortida 0) o «no» (amb un estat de sortida 1) segons si el connector s'ha d'habilitar en aquest amfitrió." msgid "Configuring the Grapher" msgstr "Configuració del Grapher" #, fuzzy #| msgid "installationautomated installation" msgid "Muninmunin-cron" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "installationautomated installation" msgid "Munin/etc/munin/munin.conf" msgstr "instal·lacióinstal·lació automatitzada" msgid "The “grapher” is simply the computer that aggregates the data and generates the corresponding graphs. The required software is in the munin package. The standard configuration runs munin-cron (once every 5 minutes), which gathers data from all the hosts listed in /etc/munin/munin.conf (only the local host is listed by default), saves the historical data in RRD files (Round Robin Database, a file format designed to store data varying in time) stored under /var/lib/munin/ and generates an HTML page with the graphs in /var/cache/munin/www/." msgstr "El «grapher» és simplement l'ordinador que agrega les dades i genera les gràfiques corresponents. El programari necessari està al paquet munin. La configuració estàndard executa munin-cron (una vegada cada 5 minuts), que recopila dades de tots els amfitrions llistats a /etc/munin/munin.conf (només el host local és llistat per defecte), desa les dades històriques en fitxers RRD («Round Robin Database», un format de fitxer dissenyat per emmagatzemar dades que varien en el temps) emmagatzemats sota /var/lib/munin/ i genera una pàgina HTML amb els gràfics a /var/cache/munin/www/." msgid "All monitored machines must therefore be listed in the /etc/munin/munin.conf configuration file. Each machine is listed as a full section with a name matching the machine and at least an address entry giving the corresponding IP address." msgstr "Per tant, totes les màquines controlades han d'estar llistades al fitxer de configuració /etc/munin/munin.conf. Cada màquina és llistada com una secció completa amb un nom que coincideixi amb la màquina i almenys una entrada address que indica l'adreça IP corresponent." msgid "" "[ftp.falcot.com]\n" " address 192.168.0.12\n" " use_node_name yes" msgstr "" "[ftp.falcot.com]\n" " address 192.168.0.12\n" " use_node_name yes" msgid "Sections can be more complex, and describe extra graphs that could be created by combining data coming from several machines. The samples provided in the configuration file are good starting points for customization." msgstr "Les seccions poden ser més complexes, i descriure gràfiquess addicionals que es podrien crear combinant dades procedents de diverses màquines. Les mostres proporcionades al fitxer de configuració són bons punts d'inici per a la personalització." msgid "The last step is to publish the generated pages; this involves configuring a web server so that the contents of /var/cache/munin/www/ are made available on a website. Access to this website will often be restricted, using either an authentication mechanism or IP-based access control. See for the relevant details." msgstr "L'últim pas és publicar les pàgines generades; això implica configurar un servidor web de manera que el contingut de /var/cache/munin/www/ estigui disponible en un lloc web. L'accés a aquest lloc web sovint es restringirà, utilitzant un mecanisme d'autenticació o control d'accés basat en IP. Vegeu per als detalls pertinents." msgid "Setting Up Nagios" msgstr "Configuració de Nagios" #, fuzzy #| msgid "mdadm" msgid "nagios4" msgstr "mdadm" #, fuzzy #| msgid "virtinst" msgid "monitoring-plugins" msgstr "virtinst" msgid "Unlike Munin, Nagios does not necessarily require installing anything on the monitored hosts; most of the time, Nagios is used to check the availability of network services. For instance, Nagios can connect to a web server and check that a given web page can be obtained within a given time." msgstr "A diferència de Munin, Nagios no necessàriament necessita instal·lar res en els equips controlats; la major part del temps, Nagios s'utilitza per comprovar la disponibilitat de serveis de xarxa. Per exemple, Nagios pot connectar-se a un servidor web i comprovar que una pàgina web donada es pot obtenir en un temps determinat." msgid "Installing" msgstr "Instal·lació" msgid "The first step in setting up Nagios is to install the nagios4 and monitoring-plugins packages. Installing the packages configures the web interface and the Apache server. The authz_groupfile and auth_digest Apache modules must be enabled, for that execute:" msgstr "El primer pas en la configuració de Nagios és instal·lar els paquets nagios4 i monitoring-plugins. La instal·lació dels paquets configura la interfície web i el servidor Apache. Els mòduls Apache authz_groupfile i auth_digest han d'estar habilitats; per a això executeu:" #, fuzzy #| msgid "" #| "# a2enmod authz_groupfile\n" #| "Considering dependency authz_core for authz_groupfile:\n" #| "Module authz_core already enabled\n" #| "Enabling module authz_groupfile.\n" #| "To activate the new configuration, you need to run:\n" #| " systemctl restart apache2\n" #| "# a2enmod auth_digest\n" #| "Considering dependency authn_core for auth_digest:\n" #| "Module authn_core already enabled\n" #| "Enabling module auth_digest.\n" #| "To activate the new configuration, you need to run:\n" #| " systemctl restart apache2\n" #| "# systemctl restart apache2\n" #| "" msgid "" "# a2enmod authz_groupfile\n" "Considering dependency authz_core for authz_groupfile:\n" "Module authz_core already enabled\n" "Module authz_core already enabled\n" "Enabling module authz_groupfile.\n" "To activate the new configuration, you need to run:\n" " systemctl restart apache2\n" "# a2enmod auth_digest\n" "Considering dependency authn_core for auth_digest:\n" "Module authn_core already enabled\n" "Enabling module auth_digest.\n" "To activate the new configuration, you need to run:\n" " systemctl restart apache2\n" "# systemctl restart apache2\n" "" msgstr "" "# a2enmod authz_groupfile\n" "Considering dependency authz_core for authz_groupfile:\n" "Module authz_core already enabled\n" "Enabling module authz_groupfile.\n" "To activate the new configuration, you need to run:\n" " systemctl restart apache2\n" "# a2enmod auth_digest\n" "Considering dependency authn_core for auth_digest:\n" "Module authn_core already enabled\n" "Enabling module auth_digest.\n" "To activate the new configuration, you need to run:\n" " systemctl restart apache2\n" "# systemctl restart apache2\n" "" msgid "/etc/etc/nagios4/Nagios" msgstr "" #, fuzzy #| msgid "installationautomated installation" msgid "Nagios/etc/nagios4/hdigest.users" msgstr "instal·lacióinstal·lació automatitzada" msgid "Adding other users is a simple matter of inserting them in the /etc/nagios4/hdigest.users file." msgstr "Afegir altres usuaris és una simple qüestió d'inserir-los al fitxer /etc/nagios4/hdigest.users." msgid "Pointing a browser at http://server/nagios4/ displays the web interface; in particular, note that Nagios already monitors some parameters of the machine where it runs. However, some interactive features such as adding comments to a host do not work. These features are disabled in the default configuration for Nagios, which is very restrictive for security reasons." msgstr "Carregant en un navegador http://servidor/nagios4/ mostra la interfície web; en particular, tingueu en compte que Nagios ja monitoritza alguns paràmetres de la màquina on s'executa. No obstant això, algunes característiques interactives com ara afegir comentaris a un amfitrió no funcionen. Aquestes característiques estan inhabilitades en la configuració predeterminada de Nagios, que és molt restrictiva per raons de seguretat." #, fuzzy #| msgid "installationautomated installation" msgid "Nagios/etc/nagios4/nagios.cfg" msgstr "instal·lacióinstal·lació automatitzada" msgid "Enabling some features involves editing /etc/nagios4/nagios.cfg. We also need to set up write permissions for the directory used by Nagios, with commands such as the following:" msgstr "Habilitar algunes característiques implica editar /etc/nagios4/nagios.cfg. També hem de crear permisos d'escriptura per al directori utilitzat per Nagios, amb ordres com les següents:" msgid "" "# systemctl stop nagios4\n" "# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios4/rw\n" "# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios4\n" "# systemctl start nagios4\n" "" msgstr "" "# systemctl stop nagios4\n" "# dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios4/rw\n" "# dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios4\n" "# systemctl start nagios4\n" "" msgid "Configuring" msgstr "Configuració" msgid "The Nagios web interface is rather nice, but it does not allow configuration, nor can it be used to add monitored hosts and services. The whole configuration is managed via files referenced in the central configuration file, /etc/nagios4/nagios.cfg." msgstr "La interfície web de Nagios és bastant agradable, però no permet la configuració, ni es pot utilitzar per afegir servidors o serveis monitoritzats. Tota la configuració es gestiona a través de fitxers referenciats al fitxer de configuració central, /etc/nagios4/nagios.cfg." msgid "These files should not be dived into without some understanding of the Nagios concepts. The configuration lists objects of the following types:" msgstr "Aquests fitxers no s'han de “bussejar” sense una certa comprensió dels conceptes de Nagios. La configuració llista els objectes dels següents tipus:" msgid "a host is a machine to be monitored;" msgstr "un host és una màquina que s'ha de monitoritzar;" msgid "a hostgroup is a set of hosts that should be grouped together for display, or to factor some common configuration elements;" msgstr "un hostgroup és un conjunt d'equips que s'han d'agrupar per a la seva visualització, o per abstraure alguns elements de configuració comuns;" msgid "a service is a testable element related to a host or a host group. It will most often be a check for a network service, but it can also involve checking that some parameters are within an acceptable range (for instance, free disk space or processor load);" msgstr "un service és un element verificable relacionat amb un amfitrió o un grup d'amfitrions. La majoria de les vegades serà la comprovació d'un servei de xarxa, però també pot implicar comprovar que alguns paràmetres estan dins d'un rang acceptable (per exemple, l'espai de disc lliure o la càrrega de processador);" msgid "a servicegroup is a set of services that should be grouped together for display;" msgstr "un servicegroup és un conjunt de serveis que s'han d'agrupar per a la visualització;" msgid "a contact is a person who can receive alerts;" msgstr "un contact és una persona que pot rebre alertes;" msgid "a contactgroup is a set of such contacts;" msgstr "un contactgroup és un conjunt d'aquests contactes;" msgid "a timeperiod is a range of time during which some services have to be checked;" msgstr "un timeperiod és un interval de temps durant el qual s'han de comprovar alguns serveis;" msgid "a command is the command line invoked to check a given service." msgstr "un command és la línia d'ordres invocada per comprovar un servei donat." msgid "According to its type, each object has a number of properties that can be customized. A full list would be too long to include, but the most important properties are the relations between the objects." msgstr "Segons el seu tipus, cada objecte té una sèrie de propietats que es poden personalitzar. Una llista completa seria massa llarga per incloure, però les propietats més importants són les relacions entre els objectes." msgid "A service uses a command to check the state of a feature on a host (or a hostgroup) within a timeperiod. In case of a problem, Nagios sends an alert to all members of the contactgroup linked to the service. Each member is sent the alert according to the channel described in the matching contact object." msgstr "Un service utilitza un command per comprovar l'estat d'una característica en un host (o en un hostgroup) dins d'un timeperiod. En cas d'un problema, Nagios envia una alerta a tots els membres del contactgroup vinculat al servei. Cada membre rebrà l'alerta d'acord amb el canal descrit en el corresponent objecte contact." msgid "An inheritance system allows easy sharing of a set of properties across many objects without duplicating information. Moreover, the initial configuration includes a number of standard objects; in many cases, defining new hosts, services and contacts is a simple matter of deriving from the provided generic objects. The files in /etc/nagios4/conf.d/ are a good source of information on how they work." msgstr "Un sistema d'herència permet compartir fàcilment un conjunt de propietats entre molts objectes sense duplicar informació. A més, la configuració inicial inclou una sèrie d'objectes estàndard; en molts casos, la definició de nous amfitrions, serveis i contactes és una qüestió senzilla de derivar a partir dels objectes genèrics proporcionats. Els arxius de /etc/nagios4/conf.d/ són una bona font d'informació sobre com funcionen." #, fuzzy #| msgid "installationautomated installation" msgid "Nagios/etc/nagios4/conf.d/" msgstr "instal·lacióinstal·lació automatitzada" msgid "The Falcot Corp administrators use the following configuration:" msgstr "Els administradors de Falcot Corp utilitzen la següent configuració:" msgid "/etc/nagios4/conf.d/falcot.cfg file" msgstr "Fitxer /etc/nagios4/conf.d/falcot.cfg" #, fuzzy #| msgid "" #| "define contact{\n" #| " name generic-contact\n" #| " service_notification_period 24x7\n" #| " host_notification_period 24x7\n" #| " service_notification_options w,u,c,r\n" #| " host_notification_options d,u,r\n" #| " service_notification_commands notify-service-by-email\n" #| " host_notification_commands notify-host-by-email\n" #| " register 0 ; Template only\n" #| "}\n" #| "define contact{\n" #| " use generic-contact\n" #| " contact_name rhertzog\n" #| " alias Raphael Hertzog\n" #| " email hertzog@debian.org\n" #| "}\n" #| "define contact{\n" #| " use generic-contact\n" #| " contact_name rmas\n" #| " alias Roland Mas\n" #| " email lolando@debian.org\n" #| "}\n" #| "\n" #| "define contactgroup{\n" #| " contactgroup_name falcot-admins\n" #| " alias Falcot Administrators\n" #| " members rhertzog,rmas\n" #| "}\n" #| "\n" #| "define host{\n" #| " use generic-host ; Name of host template to use\n" #| " host_name www-host\n" #| " alias www.falcot.com\n" #| " address 192.168.0.5\n" #| " contact_groups falcot-admins\n" #| " hostgroups debian-servers,ssh-servers\n" #| "}\n" #| "define host{\n" #| " use generic-host ; Name of host template to use\n" #| " host_name ftp-host\n" #| " alias ftp.falcot.com\n" #| " address 192.168.0.6\n" #| " contact_groups falcot-admins\n" #| " hostgroups debian-servers,ssh-servers\n" #| "}\n" #| "\n" #| "# 'check_ftp' command with custom parameters\n" #| "define command{\n" #| " command_name check_ftp2\n" #| " command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$ -w 20 -c 30 -t 35\n" #| "}\n" #| "\n" #| "# Generic Falcot service\n" #| "define service{\n" #| " name falcot-service\n" #| " use generic-service\n" #| " contact_groups falcot-admins\n" #| " register 0\n" #| "}\n" #| "\n" #| "# Services to check on www-host\n" #| "define service{\n" #| " use falcot-service\n" #| " host_name www-host\n" #| " service_description HTTP\n" #| " check_command check_http\n" #| "}\n" #| "define service{\n" #| " use falcot-service\n" #| " host_name www-host\n" #| " service_description HTTPS\n" #| " check_command check_https\n" #| "}\n" #| "define service{\n" #| " use falcot-service\n" #| " host_name www-host\n" #| " service_description SMTP\n" #| " check_command check_smtp\n" #| "}\n" #| "\n" #| "# Services to check on ftp-host\n" #| "define service{\n" #| " use falcot-service\n" #| " host_name ftp-host\n" #| " service_description FTP\n" #| " check_command check_ftp2\n" #| "}" msgid "" "define contact{\n" " name generic-contact\n" " service_notification_period 24x7\n" " host_notification_period 24x7\n" " service_notification_options w,u,c,r\n" " host_notification_options d,u,r\n" " service_notification_commands notify-service-by-email\n" " host_notification_commands notify-host-by-email\n" " register 0 ; Template only\n" "}\n" "define contact{\n" " use generic-contact\n" " contact_name rhertzog\n" " alias Raphael Hertzog\n" " email hertzog@debian.org\n" "}\n" "define contact{\n" " use generic-contact\n" " contact_name rmas\n" " alias Roland Mas\n" " email lolando@debian.org\n" "}\n" "\n" "define contactgroup{\n" " contactgroup_name falcot-admins\n" " alias Falcot Administrators\n" " members rhertzog,rmas\n" "}\n" "\n" "define host{\n" " use generic-host ; Name of host template to use\n" " host_name www-host\n" " alias www.falcot.com\n" " address 192.168.0.5\n" " contact_groups falcot-admins\n" " hostgroups debian-servers,ssh-servers\n" "}\n" "define host{\n" " use generic-host ; Name of host template to use\n" " host_name ftp-host\n" " alias ftp.falcot.com\n" " address 192.168.0.12\n" " contact_groups falcot-admins\n" " hostgroups debian-servers,ssh-servers\n" "}\n" "\n" "# 'check_ftp' command with custom parameters\n" "define command{\n" " command_name check_ftp2\n" " command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$ -w 20 -c 30 -t 35\n" "}\n" "\n" "# Generic Falcot service\n" "define service{\n" " name falcot-service\n" " use generic-service\n" " contact_groups falcot-admins\n" " register 0\n" "}\n" "\n" "# Services to check on www-host\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description HTTP\n" " check_command check_http\n" "}\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description HTTPS\n" " check_command check_https\n" "}\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description SMTP\n" " check_command check_smtp\n" "}\n" "\n" "# Services to check on ftp-host\n" "define service{\n" " use falcot-service\n" " host_name ftp-host\n" " service_description FTP\n" " check_command check_ftp2\n" "}" msgstr "" "define contact{\n" " name generic-contact\n" " service_notification_period 24x7\n" " host_notification_period 24x7\n" " service_notification_options w,u,c,r\n" " host_notification_options d,u,r\n" " service_notification_commands notify-service-by-email\n" " host_notification_commands notify-host-by-email\n" " register 0 ; Template only\n" "}\n" "define contact{\n" " use generic-contact\n" " contact_name rhertzog\n" " alias Raphael Hertzog\n" " email hertzog@debian.org\n" "}\n" "define contact{\n" " use generic-contact\n" " contact_name rmas\n" " alias Roland Mas\n" " email lolando@debian.org\n" "}\n" "\n" "define contactgroup{\n" " contactgroup_name falcot-admins\n" " alias Falcot Administrators\n" " members rhertzog,rmas\n" "}\n" "\n" "define host{\n" " use generic-host ; Name of host template to use\n" " host_name www-host\n" " alias www.falcot.com\n" " address 192.168.0.5\n" " contact_groups falcot-admins\n" " hostgroups debian-servers,ssh-servers\n" "}\n" "define host{\n" " use generic-host ; Name of host template to use\n" " host_name ftp-host\n" " alias ftp.falcot.com\n" " address 192.168.0.6\n" " contact_groups falcot-admins\n" " hostgroups debian-servers,ssh-servers\n" "}\n" "\n" "# 'check_ftp' command with custom parameters\n" "define command{\n" " command_name check_ftp2\n" " command_line /usr/lib/nagios/plugins/check_ftp -H $HOSTADDRESS$ -w 20 -c 30 -t 35\n" "}\n" "\n" "# Generic Falcot service\n" "define service{\n" " name falcot-service\n" " use generic-service\n" " contact_groups falcot-admins\n" " register 0\n" "}\n" "\n" "# Services to check on www-host\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description HTTP\n" " check_command check_http\n" "}\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description HTTPS\n" " check_command check_https\n" "}\n" "define service{\n" " use falcot-service\n" " host_name www-host\n" " service_description SMTP\n" " check_command check_smtp\n" "}\n" "\n" "# Services to check on ftp-host\n" "define service{\n" " use falcot-service\n" " host_name ftp-host\n" " service_description FTP\n" " check_command check_ftp2\n" "}" msgid "This configuration file describes two monitored hosts. The first one is the web server, and the checks are made on the HTTP (80) and secure-HTTP (443) ports. Nagios also checks that an SMTP server runs on port 25. The second host is the FTP server, and the check includes making sure that a reply comes within 20 seconds. Beyond this delay, a warning is emitted; beyond 30 seconds, the alert is deemed critical. The Nagios web interface also shows that the SSH service is monitored: this comes from the hosts belonging to the ssh-servers hostgroup. The matching standard service is defined in /etc/nagios4/conf.d/services_nagios2.cfg." msgstr "Aquest fitxer de configuració descriu dos amfitrions supervisats. El primer és el servidor web, i els controls es fan als ports HTTP (80) i HTTP segur (443). Nagios també comprova que un servidor SMTP funciona al port 25. El segon amfitrió és el servidor FTP, i la comprovació inclou assegurar-se que una resposta arriba en 20 segons. Més enllà d'aquest retard, s'emet un avís o «warning»; més enllà de 30 segons, l'alerta es considera crítica. La interfície web de Nagios també mostra que el servei d'SSH és monitoritzat: això ve dels amfitrions pertanyents al grup ssh-servers. El servei estàndard corresponent es defineix a /etc/nagios4/conf.d/services.nagios2.cfg." msgid "Note the use of inheritance: an object is made to inherit from another object with the “use parent-name”. The parent object must be identifiable, which requires giving it a “name identifier” property. If the parent object is not meant to be a real object, but only to serve as a parent, giving it a “register 0” property tells Nagios not to consider it, and therefore to ignore the lack of some parameters that would otherwise be required." msgstr "Adoneu-vos-en de l'ús de l'herència: es fa que un objecte hereti d'un altre objecte amb “use nom-pare\". L'objecte “pare” ha de ser identificable, la qual cosa requereix donar-li una propietat “name identificador”. Si l'objecte pare no està pensat per ser un objecte real, sinó només per servir com a pare, indicant-li una propietat “register 0” li diu a Nagios que no li consideri, i per tant ignorar la manca d'alguns paràmetres que d'una altra manera serien necessaris." msgid "DOCUMENTATION List of object properties" msgstr "DOCUMENTACIÓ Llista de propietats dels objectes" #, fuzzy #| msgid "A more in-depth understanding of the various ways in which Nagios can be configured can be obtained from the documentation hosted on . It includes a list of all object types, with all the properties they can have. It also explains how to create new plugins." msgid "A more in-depth understanding of the various ways in which Nagios can be configured can be obtained from the documentation hosted on . It includes a list of all object types, with all the properties they can have. It also explains how to create new plugins." msgstr "Una comprensió més profunda de les diverses maneres en què es poden configurar el Nagios es pot obtenir de la documentació allotjada a . Inclou una llista de tots els tipus d'objectes, amb totes les propietats que poden tenir. També explica com crear nous connectors." msgid "GOING FURTHER Remote tests with NRPE" msgstr "ANANT MÉS ENLLÀ Tests remots amb NRPE" msgid "Nagios Remote Plugin ExecutorNRPE" msgstr "" #, fuzzy #| msgid "RAID" msgid "NRPE" msgstr "RAID" #, fuzzy #| msgid "virtinst" msgid "Nagiosnagios-nrpe-plugin" msgstr "virtinst" #, fuzzy #| msgid "virt-manager" msgid "Nagiosnagios-nrpe-server" msgstr "virt-manager" #, fuzzy #| msgid "installationautomated installation" msgid "Nagios/etc/nagios/nrpe.cfg" msgstr "instal·lacióinstal·lació automatitzada" #, fuzzy #| msgid "xe" msgid "check_nrpe" msgstr "xe" #, fuzzy #| msgid "Many Nagios plugins allow checking some parameters local to a host; if many machines need these checks while a central installation gathers them, the NRPE (Nagios Remote Plugin Executor) plugin needs to be deployed. The nagios-nrpe-plugin package needs to be installed on the Nagios server, and nagios-nrpe-server on the hosts where local tests need to run. The latter gets its configuration from /etc/nagios/nrpe.cfg. This file should list the tests that can be started remotely, and the IP addresses of the machines allowed to trigger them. On the Nagios side, enabling these remote tests is a simple matter of adding matching services using the new check_nrpe command." msgid "Many Nagios plugins allow checking some parameters local to a host; if many machines need these checks while a central installation gathers them, the NRPE (Nagios Remote Plugin Executor) plugin needs to be deployed. The nagios-nrpe-plugin package needs to be installed on the Nagios server, and nagios-nrpe-server on the hosts where local tests need to run. The latter gets its configuration from /etc/nagios/nrpe.cfg. This file should list the tests that can be started remotely, and the IP addresses of the machines allowed to trigger them. On the Nagios side, enabling these remote tests is a simple matter of adding matching services using the new check_nrpe command." msgstr "Molts connectors de Nagios permeten comprovar alguns paràmetres locals d'un amfitrió; si moltes màquines necessiten aquestes comprovacions al temps que una instal·lació centralitzada les recopila, el connector NRPE («Nagios Remote Plugin Executor» o “executador de connectors remots de Nagios”) ha de ser desplegat. El paquet nagios-nrpe-plugin s'ha d'instal·lar al servidor Nagios, i nagios-nrpe-server als amfitrions on s'han d'executar les proves locals. Aquest últim obté la configuració de /etc/nagios/nrpe.cfg. Aquest fitxer hauria de llistar les proves que es poden activar remotament, i les adreces IP de les màquines poden activar-les. A la banda de Nagios, permetre aquestes proves remotes és una simple qüestió d'afegir serveis corresponents utilitzant la nova ordre check_nrpe." #~ msgid "VMWare" #~ msgstr "VMWare" #~ msgid "Bochs" #~ msgstr "Bochs" #~ msgid "QEMU" #~ msgstr "QEMU" #~ msgid "KVM" #~ msgstr "KVM" #~ msgid "LXC" #~ msgstr "LXC" #~ msgid "DOCUMENTATION xl options" #~ msgstr "DOCUMENTACIÓ Opcions d'xl" #~ msgid "" #~ "#auto eth0\n" #~ "#iface eth0 inet dhcp\n" #~ "\n" #~ "auto br0\n" #~ "iface br0 inet dhcp\n" #~ " bridge-ports eth0" #~ msgstr "" #~ "#auto eth0\n" #~ "#iface eth0 inet dhcp\n" #~ "\n" #~ "auto br0\n" #~ "iface br0 inet dhcp\n" #~ " bridge-ports eth0" #~ msgid "The newly-created filesystem now contains a minimal Debian system, and by default the container has no network interface (besides the loopback one). Since this is not really wanted, we will edit the container's configuration file (/var/lib/lxc/testlxc/config) and add a few lxc.network.* entries:" #~ msgstr "El sistema de fitxers recentment creat ara conté un sistema de Debian mínim, i per defecte el contenidor no té interfície de xarxa (tret de la de «loopback»). Com que això no és realment desitjat, editarem el fitxer de configuració del contenidor (/var/lib/lxc/testlxc/config) i afegirem unes quantes entrades lxc.network.*:" #~ msgid "copy the preseed file to /media/usbdisk/preseed.cfg" #~ msgstr "copieu el fitxer de presembrat a /media/usbdisk/preseed.cfg" #~ msgid "simple-cdd" #~ msgstr "simple-cdd"