LVM2パーティションをマウントできません。

LVM2パーティションをマウントできません。

私は、マウントしたい2つのEXT3パーティションを含むLVM2パーティションを持つ160 GBのハードドライブを持っています。

ただし、LVM2でこれら2つのパーティションのいずれかをマウントしようとすると、次のエラーが発生します。

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

また、fdiskを実行すると、両方のパーティションに「有効なパーティションテーブル」が含まれていないとマークされます。

Disk /dev/sdd: 160.0 GB, 16004188696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x0002d815

Device      Boot    Start       End     Blocks      Id  System
/dev/sdd1   *   63      305234      152586      83  Linux
/dev/sdd2       305235      4498199     2096482+    82  Linux swap / Solaris
/dev/sdd3       4498200     312576704   154039252+  8e  Linux LVM

Disk /dev/mapper/VolGroup00-lv_root: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylindars, total 41943040
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: 0x00000000

Disk /dev/mapper/VolGroup00-lv_root doesn't contain a valid partition table

Disk /dev/mapper/VolGroup00-lv_usr2: 136.2 GB, 136197439488 bytes
255 heads, 63 sectors/track, 16558 cylindars, total 266010624 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: 0x00000000

Disk /dev/mapper/VolGroup00-lv_usr2 doesn't contain a valid partition table

以下はlvdisplayの内容です。

  --- Logical volume ---
  LV Name                /dev/VolGroup00/lv_root
  VG Name                VolGroup00
  LV UUID                jOeBez-2QxJ-Rwth-ufsK-kohE-dHrW-XwDeEi
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                20.00 GiB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:0

  --- Logical volume ---
  LV Name                /dev/VolGroup00/lv_usr2
  VG Name                VolGroup00
  LV UUID                YvbvFJ-yq2t-gSoV-6CqL-Imby-qx6E-uNu3Iz
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                126.84 GiB
  Current LE             4059
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           252:1

コメントありますか?私は彼らがext3パーティションであると確信しています..

ベストアンサー1

私の経験では、ext2 / ext3形式の論理ボリュームを処理するときにマウントするファイルシステムの種類を提供する必要はありません。

出力が与えられたら、lvdisplay次のように2つの論理ボリュームのいずれかをマウントする必要があります。

 $ mount /dev/VolGroup00/lv_root /mnt
 -or-
 $ mount /dev/VolGroup00/lv_usr2 /mnt

これらのいずれかに問題がある場合は、このコマンドを使用してlvscanその項目が有効になっていることを確認できます。

はい

$ lvscan
  ACTIVE            '/dev/VolGroup00/LogVol00' [228.53 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
  inactive          '/dev/kodak_vg/lvm0' [149.00 GB] inherit
  ACTIVE            '/dev/lvm-raid2/lvm0' [2.73 TB] inherit

有効になっていない場合を使用して設定できますvgchange

はい

$ vgchange -ay
  2 logical volume(s) in volume group "VolGroup00" now active
  1 logical volume(s) in volume group "kodak_vg" now active
  1 logical volume(s) in volume group "lvm-raid2" now active

これにより、すべてアクティブ状態に戻ります。

おすすめ記事