如何掛載這個LVM磁碟區?

如何掛載這個LVM磁碟區?

我試圖跟隨本文,但看起來我失敗了:

# fdisk -l

Disk /dev/vda: 171.8 GB, 171798691840 bytes
16 heads, 63 sectors/track, 332881 cylinders, total 335544320 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a5206

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1              63    37998046    18998992   83  Linux
/dev/vda2        37998592    38998015      499712   82  Linux swap / Solaris
/dev/vda3        38998016   335544319   148273152   8e  Linux LVM
# pvs
  PV         VG   Fmt  Attr PSize   PFree  
  /dev/vda3  vd   lvm2 a--  141.40g 141.40g
# lvdisplay /dev/vd
#
# vgchange vd -a y
0 logical volume(s) in volume group "vd" now active

我究竟做錯了什麼?

答案1

您的捲組中似乎沒有任何邏輯磁碟區。你需要這個lvcreate命令。

坦白說,我不喜歡從 CLI 進行磁碟分割。 KVPM 是一個很棒的 LVM GUI(如果您能親自使用的話)。它更加直觀,您實際上「看到」了您的佈局,如果您需要編寫腳本,您可以稍後學習 CLI 命令。

相關內容