管理指令

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

 

RecuseCD 功能一覽

RecuseCD 是我最心愛的工具碟來, 它集所有必殺 Linux 工具於一碟, 能力驚人 !!

 


 

memtester

memtester <MEMORY> [ITERATIONS]

MEMORY: megabytes
ITERATIONS: infinite

root  privileges  to  mlock
It will then attempt to mlock this memory
decrease the amount of memory requested until it succeeds.

深究 ssh-keygen

最後更新: 2022-09-02

目錄

  • 建立 SSH Pri & Pub Keys
  • 由私匙找回公匙
  • 移除己知 server 的 fingerprint
  • 在 known_hosts file 找回 Server 的公匙
  • 找出 Server 公匙的 fingerprint
  • 更改私匙的 password
  • OpenSSH format key -> RSA format key
  • Re-generating SSH Server Host Keys

 

script ( terminal 記錄工具 )

script

它是可出將 terminal 輸出的文字寫入到檔案內

# script -t 2>~/upgrade-lenny.time -a ~/upgrade-lenny.script

-a            Append the output to file
-t             Output timeing data to standard error

Output timeing data:

<time elapsed since the previous output> <characters were output this time>

 

重播 upgrade-lenny.script 的過程
# scriptreplay ~/upgrade-lenny.time ~/upgrade-lenny.script

 

Remark:

script 及 scriptreplay 是在 bsdutils 包內的

RSS feed