How to perform FSCK (file system check) from maintenance mode

How to perform FSCK (file system check) from maintenance mode

81673
Created On 09/25/18 19:49 PM - Last Modified 06/12/23 19:32 PM


Symptom


Symptoms

How to perform FSCK (file system check) from maintenance mode

Diagnosis

In certain cases, a FSCK is required when a file system corruption is supected.

This article explains how to perform FSCK from mainetenance mode.



Resolution


Step 1.  Determine the current bootup partition. This is required if you are looking to do FSCK on the current bootup partition.

 

user@host> debug swm status

 

Partition State Version

--------------------------------------------------------------------------------

sysroot0 REVERTABLE 6.1.9

sysroot1 RUNNING-ACTIVE 7.0.5-h2 <<<<<<< This is the current bootup partition

 

Step 2.  Boot device to maintenance mode.

Refer https://live.paloaltonetworks.com/t5/Management-Articles/How-to-Enter-Maintenance-Mode-on-the-Palo-Alto-Networks-Firewall/ta-p/55082

 

Step 3. Select the directory that you want to do a FSCK

 

FSCK (Disk Check)

 

Partition:

 

( ) panlogs ( ) sysroot0 (X) sysroot1

( ) panrepo ( ) pancfg

 

--------------------------------------------------------------------------------

 

Options:

[X] Force Fixing - 'y' to all questions

 

 

< Start Disk Check (May take a few minutes) >

 

--------------------------------------------------------------------------------

 

If the disk check fails, full formatting of panlogs may be required:

 

< Format Panlogs >

 

Step 4. Navigate to Start Disk Check and select it. Wait for FSCK to complete

FSCK Status

 

FSCK returned status 0

Pass 1: Checking inodes, blocks, and sizes

Pass 2: Checking directory structure

Pass 3: Checking directory connectivity

Pass 4: Checking reference counts

Pass 5: Checking group summary information

sysroot1: 36774/501952 files (0.4% non-contiguous), 338187/1002054 blocks

 

Step 5. Press 'esc' twice, to land on the main menu as shown below and select reboot.

< Maintenance Entry Reason >

< Get System Info >

< Factory Reset >

< Set FIPS Mode >

< Set CCEAL4 Mode >

< FSCK (Disk Check) >

< Log Files >

< Bootloader Recovery >

< Disk Image >

< Select Running Config >

< Content Rollback >

< Set IP Address >

< Diagnostics >

< Debug Reboot >

< Reboot > <<<<<<<

 

 

 

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000Clf0CAC&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language