Photon OSベースの仮想アプライアンスで"Failed to start File System Check on /dev/vg_root_0/lv_root_0"というエラーが発生
search cancel

Photon OSベースの仮想アプライアンスで"Failed to start File System Check on /dev/vg_root_0/lv_root_0"というエラーが発生

book

Article ID: 452973

calendar_today

Updated On:

Products

VMware vCenter Server VMware Cloud Foundation VMware SDDC Manager / VCF Installer VCF Operations/Automation (formerly VMware Aria Suite) VMware Site Recovery Manager 8.x VMware Live Recovery VMware Cloud Director VMware vCenter Server 8.0 VCF Operations VMware HCX

Issue/Introduction

免責事項:これは英文の記事「Photon OS based Virtual appliance fails to boot with error: "Failed to start File System Check on /dev/vg_root_0/lv_root_0"」の日本語訳です。
記事はベストエフォートで翻訳を進めているため、ローカライズ化コンテンツは最新情報ではない可能性があります。最新情報は英語版の記事で参照してください。

  • システムの再起動、停電、データストアへのアクセス不可、または同様の障害が発生した後、Photon OSベースの仮想アプライアンスがエマージェンシーモードで起動します。
  • アプライアンスが正常に起動せず、次のようなエラーが表示されます。
    [FAILED] Failed to start File System Check on /dev/vg_root_0/lv_root_0
    [DEPEND] Dependency failed for /sysroot.
    [DEPEND] Dependency failed for Initrd Root File System.
    [DEPEND] Dependency failed for Reload Configuration from the Real Root.

  • システムがエマージェンシーモードから抜け出せなくなり、次のエラーが表示されます。
    [FAILED] Failed to start File System #-####-####-###-##########
    [DEPEND] Dependency failed for /var/log/vmware.
    [DEPEND] Dependency failed for Local File Systems.
    You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"

  • エマージェンシーモード中、/storage/logディレクトリなどの特定のマウントポイントに対して "Dependency failed" エラーが表示される場合があります。
    [FAILED] Failed to start File Syste= #-####-####-####-############
    [DEPEND] Dependency failed for /storage/log.
    [DEPEND] Dependency failed for Local File Systems.
    You are in emergency Mode. After logging in, type "journalctl -xb" to view
    system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
    to boot into default Mode.
    Give root password for Maintenance
    (or press Control-D to continue):
    

  • 起動中に以下のエラーが表示される場合があります。
    dracut-initqueue[441]: Warning: Could not boot.
    Starting Dracut Emergency Shell ...
    Warning: /dev/vg_root_0/lv_root_0 does not exist
    
    Generating "/run/initramfs/rdsosreport. txt"
    
    Entering emergency mode. Exit the shell to continue.
    Type "journalctl" to view system logs.
    You might want to save "/run/initramfs/rdsosreport. txt" to a USB stick or /boot
    after mounting them and attach it to a bug report.
    
    Give root password for maintenance
    or press Control-D to continue):

Environment

  • Photon OS-based appliance VMs
  • VMware vCenter Server
  • VCF Operations 9.x

Cause

  • この問題は、ストレージの障害、停電、またはその他のクラッシュの結果として仮想アプライアンスにファイルの不整合が発生した場合に発生します。
  • また、仮想アプライアンスが1つ以上のディスクにアクセスできなくなった場合にも、エマージェンシーモードに入ることがあります。たとえば、vCenter Server仮想アプライアンスからハードディスクが取り外された場合などです。

Resolution

この問題を解決するには、fsckコマンドを自動(推奨)または手動で実行して、ファイルシステムをスキャンし、修正します。

注: 先に進む前に、影響を受けている仮想アプライアンスのオフラインスナップショットを作成してください。

手順:

  1. 仮想アプライアンスを再起動し、OSが起動した直後に「e」を押してGNU GRUBの編集メニューを開きます。linuxという単語で始まる行を見つけます。

    オプション 1:

    行の最後に fsck.repair=yes を追加し、F10キーを押してアプライアンスの起動を続行します。これにより、ファイルシステムのチェックと、ディスクの問題に対する自動修復処理が強制的に実行されます。必要に応じて、アプライアンスは問題を修正するためにバックグラウンドで複数回再起動します。



    オプション 2:

    行の最後にsystemd.unit=emergency.targetを追加し、F10キーを押してアプライアンスの起動を続行します。



    1. 影響を受けたファイルシステムを見つけます。
      systemctl status systemd-fsck-root

    2. 問題のあるマウントポイントに対してfsckコマンドを実行します。
      fsck -y /dev/<mount>
      注: -y スイッチを使用すると、ノードが自動的に修正されます。<mount>を問題が発生しているマウントポイントに置き換えます。
      fsck -y /dev/mapper/vg_root_0-lv_root_0

      または、以下のコマンドを使用して手動でファイルシステムのチェックと修復を実行します(パーティションは一例です)。

      e2fsck -y /dev/vg_root_0/lv_root_0
    3.  仮想アプライアンスの電源をオフにします。
      shutdown -h now
    4. 仮想アプライアンスの電源をオンにします。
    5. もし上記の手順で影響を受けているアプライアンスが復旧しない場合は、バックアップから VM をリストアしてください。

      コンポーネント別のリストアリファレンス:手順を実行するには、影響を受けたアプライアンスを特定し、対応する公式手順に従ってください。

      vCenter: ファイルベースのバックアップからの vCenter のリストア
      VCF Operations: VCF Operations のイメージベースのリストア
      SDDC Manager: SDDC Manager のリストア
      VCF Automation: VCF Automation のファイルベースのリストア



 

Additional Information

Photon OS based Virtual appliance fails to boot with error: "Failed to start File System Check on /dev/vg_root_0/lv_root_0"