系統

partclone

最後更新: 2017-10-13

前言

由於我重裝系統, 所以選用了 ext4 系統.

可恨用開的 partimage 不支援它 ............................

那唯有另覓工具

安裝:

  • Clonezilla
  • SystemRescueCD

它們都是集成了 partclone 的一身化的 liveCD 來 !!!

功能

 * back up and restore used-blocks of a partition
 * All backup blocks will be vertified by crc32 to make sure the data are correct.

應用

事前要看清楚它是否支援你的系統的 file system

Linux

  • Btrfs
  • Ext2, Ext3, and Ext4
  • Reiserfs
  • Reiser4
  • Xfs
  • Jfs

Windows

  • NTFS
  • FAT

 

Debian Squeeze 上的 Software RAID + LVM

以下是在 Debian Installer 內的 md + lvm 過程, 結構如下

/boot 200MB raid1
/ 2.5GB raid1
/vz 7GB raid + lvm
swap 1GB swap

 

 

btrfs - 最強的 FileSystem

最後更新: 2023-03-10

 

目錄

  • 注意事項
  • 新式指令
  • Scrub
  • Kernel threads
  • Recovery
  • Build btrfs-progs
  • extref(extended inode refs)
  • More about btrfs
  • 建立多 Device 的 btrfs (mkfs.btrfs)
  • RAID1 Usage
  • Conversion (single -> raid1)
  • Replacing failed devices
  • Play btrfs with image file
  • btrfs-send / btrfs-receive
  • GlobalReserve
  • XOR module
  • 常遇到的應用
  • Data Integrity Test

 

介紹

btrfs 是一個多才多藝的 FileSystem 來, 它核心架構是 CoW, 支援以下功能:

  • Extent based file storage (2^64 max file size = 16EiB)
  • Dynamic inode allocation
  • Writable snapshots
  • Subvolumes (internal filesystem roots)
  • Subvolume-aware quota support
  • Object level mirroring and striping
  • Compression (ZLIB, LZO)
  • Online filesystem defragmentation
  • Integrated multiple device support (RAID0, RAID1, RAID10, RAID5 )
  • Checksums on metadata and data (crc32c, xxhash, sha256, blake2b)
  • Space-efficient packing of small files
  • Space-efficient indexed directories
  • Seed devices
    (Create a readonly filesystem that acts as a template to seed other Btrfs filesystems)
  • Background scrub process for finding and fixing errors on files with redundant copies
  • Efficient incremental backup(btrfs send)

所以說, 唔用就走寶 ~

不過, 使用前一定要少心, 因為在 Linux2.6 上它仍未有 fsck !! (Linux 3.2 上的 btrfsck 仍未用得..)

此外, 如果 CPU 支援 hardware 的 CRC32 那效能會更好
(grep -i SSE4.2 /proc/cpuinfo)

Version

每 version 的改善: btrfs_version

 

lvm - 硬碟的動態管理

更新時間: 2020-07-26

目錄

 

介紹

LVM 在商用的環境下應用實在不可或缺, 它可以應用在硬碟備份, 硬碟替換, 容量擴充等方面.

LVM works at the block level.

強大功能

  • Online data relocation
  • Flexible capacity
  • Disk striping
  • Mirroring volumes
  • Volume Snapshots

它一共由三個部分所組成

  • PV
  • VG
  • LV

LVM 自身支援

  • RAID4/5/6
  • Linear
  • Striped
  • Mirrored

 

DOC

 

RSS feed