{
 "磁碟、分割區與檔案系統觀念#1": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "區塊裝置",
    "sub": "/dev",
    "color": 0
   },
   {
    "label": "分割區",
    "sub": "切成幾段",
    "color": 1
   },
   {
    "label": "檔案系統",
    "sub": "ext4、xfs",
    "color": 2
   },
   {
    "label": "掛載",
    "sub": "/data",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "磁碟、分割區與檔案系統觀念#2": {
  "type": "table",
  "head": [
   "名稱",
   "說明"
  ],
  "rows": [
   [
    "sda sdb",
    "SATA、SCSI、USB 磁碟"
   ],
   [
    "vda vdb",
    "虛擬機磁碟"
   ],
   [
    "nvme",
    "NVMe,分割區前多 p"
   ],
   [
    "loop",
    "把檔案當磁碟"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   4
  ]
 },
 "磁碟、分割區與檔案系統觀念#3": {
  "type": "table",
  "head": [
   "NAME",
   "SIZE",
   "TYPE",
   "MOUNT"
  ],
  "rows": [
   [
    "vda",
    "40G",
    "disk",
    ""
   ],
   [
    "vda1",
    "很小",
    "part",
    ""
   ],
   [
    "vda2",
    "40G",
    "part",
    "/"
   ]
  ],
  "reveal": [
   0,
   0,
   0,
   1,
   2,
   3
  ],
  "widths": [
   1,
   1,
   1,
   1
  ]
 },
 "磁碟、分割區與檔案系統觀念#4": {
  "type": "bar",
  "labels": [
   "vda",
   "vdb"
  ],
  "values": [
   40,
   20
  ],
  "unit": "G",
  "reveal": [
   0,
   2,
   2,
   2,
   2,
   2
  ],
  "highlight": 1
 },
 "磁碟、分割區與檔案系統觀念#6": {
  "type": "table",
  "head": [
   "格式",
   "特性"
  ],
  "rows": [
   [
    "MBR",
    "最大 2T,主分割區最多 4 個"
   ],
   [
    "GPT",
    "支援大磁碟與多分割區,UEFI 標準"
   ]
  ],
  "reveal": [
   0,
   1,
   2
  ]
 },
 "磁碟、分割區與檔案系統觀念#7": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "cards": [
   {
    "title": "ext4",
    "points": [
     "Debian/Ubuntu 預設",
     "線上擴大,可縮小"
    ]
   },
   {
    "title": "XFS",
    "points": [
     "Red Hat 預設",
     "可擴大,不能縮小"
    ]
   },
   {
    "title": "Btrfs、ZFS",
    "points": [
     "有快照等進階功能"
    ]
   },
   {
    "title": "swap",
    "points": [
     "交換空間",
     "不算一般檔案系統"
    ]
   }
  ]
 },
 "掛載與 /etc/fstab(別讓開機卡住)#2": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "mkdir",
    "sub": "/data",
    "color": 0
   },
   {
    "label": "mount",
    "sub": "裝置 掛載點",
    "color": 1
   },
   {
    "label": "df -h",
    "sub": "確認掛上",
    "color": 2
   },
   {
    "label": "umount",
    "sub": "卸載",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "掛載與 /etc/fstab(別讓開機卡住)#4": {
  "type": "table",
  "head": [
   "欄位",
   "內容"
  ],
  "rows": [
   [
    "1 裝置",
    "建議用 UUID"
   ],
   [
    "2 掛載點",
    "例如 /data"
   ],
   [
    "3 類型",
    "ext4 等"
   ],
   [
    "4 選項",
    "defaults、nofail"
   ],
   [
    "5 dump",
    "填 0"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 },
 "掛載與 /etc/fstab(別讓開機卡住)#7": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "nodes": [
   {
    "label": "備份",
    "sub": "加上日期",
    "color": 0
   },
   {
    "label": "寫 UUID",
    "sub": "加 nofail",
    "color": 1
   },
   {
    "label": "先測試",
    "sub": "findmnt --verify",
    "color": 2
   },
   {
    "label": "確認主控台",
    "sub": "雲端或虛擬機",
    "color": 3
   },
   {
    "label": "重開機",
    "sub": "維護時段",
    "color": 4,
    "kind": "end"
   }
  ],
  "layout": "snake"
 },
 "LVM:彈性管理磁碟空間#2": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "PV",
    "sub": "實體卷冊",
    "color": 0
   },
   {
    "label": "VG",
    "sub": "卷冊群組,空間池",
    "color": 1
   },
   {
    "label": "LV",
    "sub": "邏輯卷冊,可掛載",
    "color": 2,
    "kind": "end"
   }
  ]
 },
 "LVM:彈性管理磁碟空間#4": {
  "type": "flow",
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "nodes": [
   {
    "label": "pvcreate",
    "sub": "磁碟變 PV",
    "color": 0
   },
   {
    "label": "vgcreate",
    "sub": "建立 VG",
    "color": 1
   },
   {
    "label": "lvcreate",
    "sub": "-L 10G -n",
    "color": 2
   },
   {
    "label": "mkfs.ext4",
    "sub": "建立檔案系統",
    "color": 3
   },
   {
    "label": "mkdir",
    "sub": "掛載點",
    "color": 4,
    "kind": "end"
   }
  ],
  "layout": "snake"
 },
 "磁碟空間不足的排查#1": {
  "type": "flow",
  "reveal": [
   0,
   4
  ],
  "nodes": [
   {
    "label": "確認",
    "sub": "哪個檔案系統滿",
    "color": 0
   },
   {
    "label": "追查",
    "sub": "哪個目錄最大",
    "color": 1
   },
   {
    "label": "找檔案",
    "sub": "大檔案",
    "color": 2
   },
   {
    "label": "安全處理",
    "sub": "不亂刪",
    "color": 3,
    "kind": "end"
   }
  ]
 },
 "磁碟空間不足的排查#2": {
  "type": "bar",
  "labels": [
   "/",
   "/data"
  ],
  "values": [
   100,
   11
  ],
  "unit": "%",
  "reveal": [
   0,
   0,
   0,
   0,
   1,
   2
  ],
  "highlight": 0
 },
 "磁碟空間不足的排查#6": {
  "type": "table",
  "head": [
   "元凶",
   "處理"
  ],
  "rows": [
   [
    "日誌太大",
    "truncate 歸零"
   ],
   [
    "套件快取",
    "套件管理員清理指令"
   ],
   [
    "舊核心",
    "apt autoremove"
   ],
   [
    "家目錄大檔",
    "先問過使用者"
   ],
   [
    "容器映像",
    "用容器工具清理"
   ]
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ]
 }
}