管理指令

ubuntu apt mirror

 

deb mirror://mirrors.ubuntu.com/mirrors.txt precise main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security main restricted universe multiverse

 

 

unionfs 與 aufs

更新日期: 2020-07-28

介紹

unionfs 與 aufs  為的都是要把多個目錄"虛擬"成一個目錄(overlays)

這有兩個好處

  1. 方便管理檔案(相關的檔案分佈於不同的地方, 如 sda1, sdb1)
  2. 想修改 readonly 的地方(如 squashfs)

而且我們可以指定某些目錄(Branch) 是 Readonly 的, 而把修改過的檔案放到另一個目錄

 

9. yum command

最後更新: 2023-05-02

目錄

 

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

 

RSS feed