From Fedora Project Wiki
m (Obbiettivo->Obiettivo)
 
(15 intermediate revisions by one other user not shown)
Line 2: Line 2:


== Sommario ==
== Sommario ==
Se l'utente sceglie di usare Brtfs su una o più partizioni, allora potrà:
* creare automaticamente nuove immagini di disco minime prima di ogni transazione yum
* scegliere da quale immagine minima avviare il sistema
* creare manualmente una nuova immagine minima


If a user has chosen to use Btrfs on one or more partitions, this feature will:
Tutte le opzioni indicate richiedono i privilegi di root.
 
# automatically create new disk snapshots before each yum transaction
# enable the user to change which snapshot will be next booted into, if desired
# enable the user to manually create a new snapshot, if desired
 
All of the above will require superuser privileges.


== Progettista ==
== Progettista ==
* Nome: [[User:Cjb|Chris Ball]]
* Email: [mailto:cjb@laptop.org cjb@laptop.org]
* Nome: [[User:Josef|Josef Bacik]]
* Email: [mailto:josef@redhat.com josef@redhat.com]


* Name: [[User:Cjb|Chris Ball]], [[User:Josef|Josef Bacik]]
== Stato corrente ==
* email: cjb@laptop.org, josef@redhat.com
* Rilascio: [[Releases/13| Fedora 13]]
 
* Per informazioni aggiornate sullo stato di ''SystemRollbackWithBtrfs'' consultare la [[Features/SystemRollbackWithBtrfs#Current_status | pagina originale]].
== Current status ==
* Targeted release: [[Releases/13 | Fedora 13]]  
* Last updated: 2010-01-15
* Percentage of completion: 80%
 
* Kernel patches for listing subvols and setting default subvolumes are submitted to btrfs list, hopefully going to Linus within two weeks
* Josef has submitted several iterations of a yum plugin
* Palimpsest code has not been started yet, waiting for kernel patches to hit the Fedora kernel
 
== Detailed Description ==
Btrfs is capable of creating lightweight filesystem snapshots that can be mounted (and booted into) selectively.  The created snapshots are copy-on-write snapshots, so there is no file duplication overhead involved for files that do not change between snapshots.
 
It's important to note that these snapshots are whole-filesystem snapshots -- while we propose to create a new snapshot each time a yum transaction happens, that doesn't mean reverting to an earlier snapshot will only revert the files changed by yum!  The entire root filesystem will be reverted, including users' home directories if they are on btrfs.  (Because of this, a user may decide to keep /home on a separate, non-btrfs partition where it is unaffected by rollbacks they decide to initiate.)
 
A "rollback" to an older snapshot is not destructive to data.  It switches to an earlier snapshot, and later snapshots are still available afterwards.  We allow the user to choose which snapshot will be mounted next, and making that choice does not affect or destroy any other snapshots.
 
We are not proposing Btrfs to be the default filesystem for Fedora 13; this feature would only be present on installs where Btrfs has been optionally chosen for at least one filesystem.
 
== Benefit to Fedora ==
There are several interesting use cases for this feature:
 
* Aaron is a developer whose laptop tracks Rawhide daily.  There will be days where Rawhide is not bootable/usable, though.  When Rawhide breaks, automated snapshots allow Aaron to easily revert to the previous day's filesystem until Rawhide's known-working again.
* Barbara wishes to bisect a mysterious bug that appears to have crept in on one of her recent Rawhide updates.  Performing the full-system bisection is made easier by binary searching the snapshots on her disk, to narrow down responsibility for the bug to a small list of modified packages and their versions.
* Christine wishes to create weekly snapshots by hand in case she later wants to have access to older versions of the files she's been working on.
* Donald has, independent of yum/rpm, somehow hosed his system and doesn't know how to recover it.  He'd like to revert back to the last snapshot that was made.
 
Of these, the ability for our developers to feel comfortable tracking Rawhide without fear of an unusable install seems to have the most immediate utility to Fedora.
 
== Scope ==
We propose to create:
 
* (required) a new "btrfs" section in gnome-disk-utility/Palimpsest.  When a btrfs filesystem is highlighted, the user is shown a drop-down menu that allows choosing the snapshot that will be used the next time the filesystem is mounted, and a separate text box and "create" button for creating a new snapshot immediately.  (cjb)
* (required) a yum plugin to create a timestamped snapshot just before starting each yum transaction.  (josef, skvidal)
* (optional) a patch to grub1 -- on top of the already existing patch to support btrfs in grub1 -- to allow selecting between snapshots of the boot partition.
* (optional) a patch to btrfs to set an fs-specific option of which snapshot should be the next "default" to boot.  This avoids having the control panel need to modify either the grub config or /etc/fstab; instead it would just set a filesystem property with btrfsctl(1).
 
== How To Test ==
The test plan will look something like:
 
* Make your root filesystem be on btrfs.  This can be by selecting it in the installer, or running the btrfs migration tool from ext3 or ext4.  Make sure to have a backup first!
* Boot into the new btrfs system, and perform a "yum install".  Does palimpsest show that a new snapshot was created?  Does it allow you to set that snapshot as active for the next book without any errors?
* When you reboot, verify that the application you successfully yum-installed is no longer present on the system.
* Switch back to the latest "default" snapshot and reboot.  Test that the yum-installed app is present once more.
* Try creating a snapshot by hand using palimpsest, and set it as active for the next boot.  Before rebooting, touch a file in the root directory of the filesystem.  After you reboot, it should be gone.


== User Experience ==
== Descrizione dettagliata ==
There will be new options available if your disk contains btrfs filesystems and you run palimpsest.  If there is a mounted btrfs partition, palimpsest will offer a selection of old snapshots to use at next mount, and offer the creation of new ones. If there are no btrfs mounts, the UI will be entirely unchanged.
Btrfs serve a creare un'immagine minima del filesystem che può essere montata (e da cui si può avviare il sistema) in maniera selettiva. Le immagini create sono ottimizzazioni ''copy-on-write'', in modo da non avere il sovraccarico di file duplicati quando non sono presenti cambiamenti.  


If the grub subfeature is completed, and a user has chosen to use btrfs as their boot filesystem, users will see a list of date/timestamps corresponding to snapshots that they can select from by interrupting grub at boot-time.
Per la spiegazione dettagliata fare riferimento alla [[Features/SystemRollbackWithBtrfs#Detailed Description | pagina originale]] di questo documento.


== Dependencies ==
== Vantaggi per Fedora ==
All of the support needed for btrfs snapshots should be already present in the kernel.  The patch to support btrfs in grub has not been committed to grub1 so far (although we note that Gentoo already carries it locally).  We would have to persuade the Fedora Grub maintainer(s) to adopt the patch for the grub subfeature to be completed.
Esistono diversi casi d'uso interessanti a proposito di questo progetto, in particolare per gli sviluppatori che usano Rawhide:


== Contingency Plan ==
*Per lo sviluppatore:<BR>Aaron è uno svulippatore che lavora su Rawhide installato su un portatile. Alcuni giorni capita che Rawhide non sia avviabile/usabile. In tali situazioni, le immagini minime automatizzate consentono ad Aaron di ritornare facilmente ad una configurazione del filesystem in cui Rawhide funziona.
None necessary, revert if not completed.
*Per chi risolve bug:<BR>Barbara ha scoperto un bug che misteriosamente sembra essersi intrufolato in uno dei recenti aggiornamenti di Rawhide. La ricerca nel sistema è facilitata se il binario responsabile viene ricercato tra le immagini minime.
*Per la storicizzazione dei file:<BR>Christine desidera creare immagini ridotte a scadenza settimanale, in modo da avere accesso alle versioni dei file meno recenti su cui sta lavorando.
*Per l'utente finale:<BR>Donald ha, in maniera indipendente da yum/rpm, compromesso in qualche maniera il suo sistema ed ora non sa come ripristinarlo. Vorrebbe ritornare ad usare l'ultima immagine funzionante.


== Documentation ==
Da ciò, la possibilità per gli sviluppatori di sentirsi tranquilli con Rawhide senza il timore di trovarsi con un'installazione non funzionante, rappresenta forse il vantaggio più immediato per Fedora.
Here is generic documentation on btrfs snapshots:


* http://blogs.igalia.com/aperez/2008/06/more-btrfs-goodness-snapshots/
== Documentazione ==
* http://btrfs.wiki.kernel.org/index.php/Getting_started
Quì è possibile trovare dei documenti di carattere generale su ''btrfs'':
* [http://blogs.igalia.com/aperez/2008/06/more-btrfs-goodness-snapshots/ more-btrfs-goodness-snapshots]
* [http://btrfs.wiki.kernel.org/index.php/Getting_started Getting_started]


There will be significant documentation work needed to explain the following about this feature:
== Note di rilascio ==
Gli utenti del filesystem sperimentale btrfs beneficiano di immagini ridotte automatiche ogni volta che il servizio yum effettua una installazione o un aggiornamento, con la possibilità di avviare/usare immagini ridotte diverse del proprio filesystem.


* While the snapshots are automatically created as part of yum transactions, they are full disk snapshots, not merely snapshots of the package changes.
== Altre informazioni ==
* Rolling back to an earlier snapshot is not destructive.  You can go back to the most recent version of the filesystem again afterwards using the same tool you used to switch to the earlier one.
Per:
* Obiettivi
* Test Plan
* Esperienza Utente
* Dipendenze
* Progetto corrente
* Commenti e Discussioni


== Release Notes ==
consultare la [[Features/SystemRollbackWithBtrfs | pagina originale]] di questo documento.
* Users of the experimental btrfs filesystem in Fedora 13 benefit from automatic filesystem snapshots each time the yum package manager performs an installation or upgrade, and from a user interface to allow switching between snapshots.


== Comments and Discussion ==
[[Category:Italiano]]
* See [[Talk:Features/SystemRollbackWithBtrfs]]
[[Category:F-13 Features IT|{{SUBPAGENAME}}]]


[[Category:FeatureAcceptedF13]]
[[Category:FeatureAcceptedF13]]
<!-- After review, the feature wrangler will move your page to Category:FeatureReadyForFesco... if it still needs more work it will move back to Category:FeaturePageIncomplete-->
<!-- A pretty picture of the page category usage is at: https://fedoraproject.org/wiki/Features/Policy/Process -->

Latest revision as of 22:54, 29 August 2010

Ripristino di Sistema con Btrfs

Sommario

Se l'utente sceglie di usare Brtfs su una o più partizioni, allora potrà:

  • creare automaticamente nuove immagini di disco minime prima di ogni transazione yum
  • scegliere da quale immagine minima avviare il sistema
  • creare manualmente una nuova immagine minima

Tutte le opzioni indicate richiedono i privilegi di root.

Progettista

Stato corrente

Descrizione dettagliata

Btrfs serve a creare un'immagine minima del filesystem che può essere montata (e da cui si può avviare il sistema) in maniera selettiva. Le immagini create sono ottimizzazioni copy-on-write, in modo da non avere il sovraccarico di file duplicati quando non sono presenti cambiamenti.

Per la spiegazione dettagliata fare riferimento alla pagina originale di questo documento.

Vantaggi per Fedora

Esistono diversi casi d'uso interessanti a proposito di questo progetto, in particolare per gli sviluppatori che usano Rawhide:

  • Per lo sviluppatore:
    Aaron è uno svulippatore che lavora su Rawhide installato su un portatile. Alcuni giorni capita che Rawhide non sia avviabile/usabile. In tali situazioni, le immagini minime automatizzate consentono ad Aaron di ritornare facilmente ad una configurazione del filesystem in cui Rawhide funziona.
  • Per chi risolve bug:
    Barbara ha scoperto un bug che misteriosamente sembra essersi intrufolato in uno dei recenti aggiornamenti di Rawhide. La ricerca nel sistema è facilitata se il binario responsabile viene ricercato tra le immagini minime.
  • Per la storicizzazione dei file:
    Christine desidera creare immagini ridotte a scadenza settimanale, in modo da avere accesso alle versioni dei file meno recenti su cui sta lavorando.
  • Per l'utente finale:
    Donald ha, in maniera indipendente da yum/rpm, compromesso in qualche maniera il suo sistema ed ora non sa come ripristinarlo. Vorrebbe ritornare ad usare l'ultima immagine funzionante.

Da ciò, la possibilità per gli sviluppatori di sentirsi tranquilli con Rawhide senza il timore di trovarsi con un'installazione non funzionante, rappresenta forse il vantaggio più immediato per Fedora.

Documentazione

Quì è possibile trovare dei documenti di carattere generale su btrfs:

Note di rilascio

Gli utenti del filesystem sperimentale btrfs beneficiano di immagini ridotte automatiche ogni volta che il servizio yum effettua una installazione o un aggiornamento, con la possibilità di avviare/usare immagini ridotte diverse del proprio filesystem.

Altre informazioni

Per:

  • Obiettivi
  • Test Plan
  • Esperienza Utente
  • Dipendenze
  • Progetto corrente
  • Commenti e Discussioni

consultare la pagina originale di questo documento.