wiki:TipAndDoc/storage/filesystem

Version 20 (modified by mitty, 13 years ago) (diff)

moved to HA/DRBD?

LVM

mount(8)

mount with UUID

mount disk image

NTFS

swapが複数あるときの優先順位

  • swapon.2
    • Each swap area has a priority, either high or low. The default priority is low. Within the low-priority areas, newer areas are even lower priority than older areas.
    • All priorities set with swapflags are high-priority, higher than default. They may have any non-negative value chosen by the caller. Higher numbers mean higher priority.
    • Swap pages are allocated from areas in priority order, highest priority first. For areas with different priorities, a higher-priority area is exhausted before using a lower-priority area. If two or more areas have the same priority, and it is the highest priority available, pages are allocated on a round-robin basis between them.
  • SWAP Priority Setting - Ubuntu Forums

testing xfs_growfs

  • 結論
    • diskの後方に向けて拡張するのは、開始セクタを変えずにパーティションを切り直し、リマウントしてxfs_growfsすればよい
    • diskの前方に向けて拡張するのは、パーティション内容をあらかじめdd等で移動する手間が必要
      • データ総量が十分小さければ、前方にあらかじめ別のパーティションを切り、cpした上で古いパーティションを削除して、新しいパーティションを後方拡張する方が操作ミスを起こしにくいと思われる
    • LVMを使えばより単純になると思われる
      • ただし、LVM自体を扱う手間が増える(障害時の復旧手順が複雑化)
  • see xfs_growfs?

undelete

ext3 / ext4