Strumenti Utente

Strumenti Sito


xfs

XFS

XFS: è un filesystem noto per l' estrema velocità unita all' uso di grossi file, per lo più multimediali. Oltre ad un' arrichita schiera di comandi.

Comandi

I Particolari comandi sono:

fsck.xfs      esce semplicemente con uno zero status, poiché le partizioni XFSsono verificate all'atto del mount.

mkfs.xfs      costruisce un file system XFS.

xfs_admin     cambia i parametri di un file system XFS.

xfs_bmap      stampa la mappa dei blocchi per un file XFS.

xfs_check     verifica la consistenza del file system XFS.

xfs_copy      copia i contenuti di un file system XFS in parallelo verso uno o più posti.

xfs_db        è usato per fare il debug di un file system XFS.

xfs_freeze    sospende l'accesso ad un file system XFS.

xfs_growfs    espande un file system XFS.

xfs_info      è equivalente a invocare xfs_growfs, ma specificando che non devono essere apportati cambiamenti al file system.

xfs_io        è un tool di debug come xfs_db, ma intende esaminare il path normale di I/O dei file piuttosto che il volume XFS in sé stesso.

xfs_logprint  stampa il log di un file system XFS.

xfs_mkfile    crea un file XFS, imbottito di zero per default.

xfs_ncheck    genera pathname da numeri di inode per un file system XFS.
  
xfs_repair    ripara file system XFS corrotti o danneggiati.

xfs_rtcp      copia un file nella partizione real-time in un file system XFS.

xfs_fsr       Used to defragment mounted XFS file systems. When invoked with no arguments, xfs_fsr defragments all regular files in all mounted XFS file systems. This utility also allows users to suspend a defragmentation at a specified time and resume from where it left off later. In addition, xfs_fsr also allows the defragmentation of only one file, as in xfs_fsr /path/to/file. Red Hat advises against periodically defragmenting an entire file system, as this is normally not warranted. 

The following utilities are also useful in debugging and analyzing XFS file systems:

xfs_metadump      Copies XFS file system metadata to a file. The xfs_metadump utility should only be used to copy unmounted, read-only, or frozen/suspended file systems; otherwise, generated dumps could be corrupted or inconsistent. 
xfs_mdrestore     Restores an XFS metadump image (generated using xfs_metadump) to a file system image.

Esempi utili

Per creare un backup del disco o magari della partizione root, in un supporto tipo “/dev/tape” procedere come segue:

 Xfsdump –v trace –f /dev/tape /

Ma va bene anche un altro disco magari in usb, /dev/sdc

 Xfsdump –v trace –f /dev/sdc /

Un buon comando per determinare il grado di frammentazione è il seguente:

xfs_db -c frag -r /dev/sdaX

Mentre per deframmentare un' unità:

xfs_fsr /dev/sdaX
xfs.txt · Ultima modifica: 2016/08/16 02:48 da amnesia