挂载 LVM 卷

挂载 LVM 卷

我已经安装了 openstack cinder 模块。一切运行正常。但我想挂载一个卷以查看其内容。

我在 Cinder 存储计算机上输入了 lvscan 命令。我可以看到我的卷列表。

 ACTIVE            '/dev/cinder-volumes/volume-XXXXX-XXXX-XXXX-XXX-XXXX' [1.00 GiB] inherit

但是当我输入

 mount /dev/cinder-volumes/volume-XXXXX-XXXX-XXXX-XXX-XXXX /mnt

我收到此错误信息

  mount: wrong fs type, bad option, bad superblock on /dev/mapper/cinder--volumes-volume--XXXXXXXXXXXXXXXX,
  missing codepage or helper program, or other error

  In some cases useful info is found in syslog - try
  dmesg | tail or so.

是不是因为卷已经被 openstack 实例挂载了?我应该如何挂载或读取/写入此卷中的数据?

以下是 lvdisplay 命令结果:

  --- Logical volume ---
  LV Path                /dev/cinder-volumes/volume-d6dc111d-5496-4e5b-a554-e781691b0611
  LV Name                volume-d6dc111d-5496-4e5b-a554-e781691b0611
  VG Name                cinder-volumes
  LV UUID                nTlThd-770h-Y0kq-iIRD-DiCg-2ugv-lPwyUo
  LV Write Access        read/write
  LV Creation host, time block1, 2016-11-03 09:56:56 +0100
  LV Status              available
  # open                 1
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

相关内容