无法挂载 lvm 分区

无法挂载 lvm 分区

您好,我正在尝试安装一个新的逻辑卷。我在 ubuntu 服务器 13.04 上。我使用剩余的磁盘空间创建了 lv。我收到此错误:

NTFS signature is missing.
Failed to mount '/dev/mapper/TheServer--vg-lv_media': Invalid argument
The device '/dev/mapper/TheServer--vg-lv_media' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

我不确定为什么会发生这种情况。这是我的 LVM 设置列表:

--- Logical volume ---
  LV Path                /dev/TheServer-vg/root
  LV Name                root
  VG Name                TheServer-vg
  LV UUID                OVIFDE-jtqA-lvlm-3Qu2-mWz9-Ktsw-IjlFdb
  LV Write Access        read/write
  LV Creation host, time TheServer, 2013-05-08 19:26:34 -0600
  LV Status              available
  # open                 1
  LV Size                26.30 GiB
  Current LE             6734
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Path                /dev/TheServer-vg/swap_1
  LV Name                swap_1
  VG Name                TheServer-vg
  LV UUID                bGmvaC-Q2xf-V814-TG7i-9mDp-XJv3-CI0rVA
  LV Write Access        read/write
  LV Creation host, time TheServer, 2013-05-08 19:26:35 -0600
  LV Status              available
  # open                 2
  LV Size                3.50 GiB
  Current LE             895
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

  --- Logical volume ---
  LV Path                /dev/TheServer-vg/lv_media
  LV Name                lv_media
  VG Name                TheServer-vg
  LV UUID                OK3auK-I1sL-DiBf-sYxV-gZFs-UfOR-OcNDDA
  LV Write Access        read/write
  LV Creation host, time theserver, 2013-05-20 23:09:29 -0600
  LV Status              available
  # open                 0
  LV Size                901.47 GiB
  Current LE             230776
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:2

我正在安装/media/store

这可能是一个问题,因为挂载点位于同一个 VG 中的另一个 LV 上?

答案1

仅创建分区并不能使其可用,必须在其上创建文件系统。您需要以与简单分区相同的方式对 LVM 分区进行创建。要使用的工具是带有mkfs适当参数的。指定文件系统类型和设备名称就足够了。如果您想创建ext4类型文件系统,可以使用以下命令:

sudo mkfs.ext4 /dev/TheServer-vg/lv_media

同样,ext4如果您愿意,可以用其他文件系统类型替换,但[TAB]密钥会像往常一样提供帮助。

相关内容