Recovering from a corrupt drive partition SOL6346

Symptom:

Disk check failure, dropping user to bash without bigip.

Problem:

Unable to boot BigIP,  after a forced disk check.

Solution:

This Solution applies to BIG-IP versions 9.x through 10.x. For information about other versions, refer to the following Solution:
SOL13131: Recovering from a corrupt drive partition (11.x)
To recover from a corrupt drive partition, you must clear the Master Boot Record (MBR). Clearing the MBR allows the BIG-IP system’s installation script to correctly repartition the drive during the subsequent re-installation of the BIG-IP software.

Clearing the MBR for systems running BIG-IP version 10.x
To clear the MBR for systems running BIG-IP version 10.x, perform the following two procedures:

Booting into the Maintenance Operating System (MOS) using mosreboot
Running the diskinit utility
The procedures apply to the following supported platforms:

BIG-IP 1500 (C36)
BIG-IP 1600 (C102)
BIG-IP 3400 (C62)
BIG-IP 3410 (C100)
BIG-IP 3600 (C103)
BIG-IP 3900 (C106)
BIG-IP 4100 (D46) – unit running ASM only
BIG-IP 4500 (D43) – unit running WebAccelerator only
BIG-IP 6400 (D63)
BIG-IP 6800 (D68)
BIG-IP 6900 (D104)
BIG-IP 8400 (D84)
BIG-IP 8800 (D88)
BIG-IP 8900 (D106)
BIG-IP 8950 (D107)
BIG-IP 11050 (E102)
VIPRION (J100, J101)
Note: To identify your platform, refer to SOL10635: Determining the model and type of a BIG-IP appliance.

In order to run the diskinit utility, the system drives cannot be active. Therefore, you must boot the system into the MOS. When you initially run the image2disk utility to install the version 10.x software, the installation process places an updated MOS on the system.

Booting into the MOS using mosreboot

To boot into the MOS using mosreboot, log on to the command line of the system using the root account and type the following command:

mosreboot

The system reboots to the MOS, which runs in RAM. You may now run the diskinit utility to format the system drives.

Running the diskinit utility

Log in to the command line using an account with administrative permissions.
Type the following command:
diskinit -style [partitions|volumes]

Important: If you want to run version 9.x along with version 10.x, you must use the partitions style. If you want to run version 10.x exclusively, F5 recommends using the volumes style only. If the -style flag is not used, the utility will remove all system files and partitions/volumes from the disk, but it will not create new ones.

For example:
For a 9.x/10.x system: diskinit -style partitions
For a 10.x-only system: diskinit -style volumes

The system posts the following warning message:

***
*** WARNING:
*** All software and data on this system is about to be destroyed!
***
Ready to reformat. Continue? (y|n) [n] –>
To continue, type y and press Enter. Otherwise, type n and press Enter.
Note: If you type y, the system repartitions and reformats all system hard drives in the style you specify.

After formatting is complete, you may use the image2disk utility to install the version 10.x software
Note: For more information about performing a clean installation of the BIG-IP version 10.x software, refer to SOL10819: Performing a clean installation of BIG-IP version 10.x. For more information about the image2disk utility, refer to the Introducing the image2disk and diskinit utilities section in the BIG-IP Systems: Getting Started Guide.

Clearing the MBR for systems running BIG-IP versions 9.0.0 through 9.4.8
To clear the MBR, you must start a clean installation of the BIG-IP software. During the installation process, you must interrupt the installation script and clear the MBR. To do so, perform the following procedure:

Note: For detailed information about performing a clean installation, refer to the BIG-IP LTM, ASM, PSM, GTM, Link Controller, or WebAccelerator release notes for the version you are installing.

Perform the steps to boot the unit using USB Mass Storage, USB CD-ROM, or Pre-boot Execution Environment (PXE) server.
Note: For more information refer to the installation instructions in the release notes for the version of the BIG-IP system to be reinstalled.

After booting, the installer will prompt for the terminal type with the following message:
Terminal type? [vt100]

When prompted for the terminal type, terminate the installation script and exit to the shell command prompt by simultaneously pressing the Control and C keys.

The shell command prompt displays.
Clear the MBR using one of the following commands, depending on the BIG-IP platform and version you are running:
Important: You must run the wipedisk command on all drives, including CF cards on platforms that contain them. For example, the BIG-IP 6900 and 8900 platforms include two hard drives and a CF card. On these platforms, you must wipe all three devices.

Important: When running the wipedisk command, ensure you are not in the /dev directory or in a directory on the target media.

Versions 9.0.0 through 9.1.0

Platform Command (hard disk) Command (CF card)
1000, 2400, 51xx n/a dd if=/dev/zero of=hda bs=512 count=1
1500 dd if=/dev/zero of=hda bs=512 count=1 n/a
3400, 6400, 6800 dd if=/dev/zero of=hdc bs=512 count=1 dd if=/dev/zero of=hda bs=512 count=1
Versions 9.1.1 through 9.1.3, and 9.2 through 9.2.5

Platform Command (hard disk) Command (CF card)
520, 540 wipedisk /dev/hda n/a
1000, 2400, 51xx n/a wipedisk /dev/hda
1500 wipedisk /dev/hda n/a
3400, 6400, 6800 wipedisk /dev/hdc wipedisk /dev/hda
8400 wipedisk /dev/sda
wipedisk /dev/sdb

Important: When booting from a USB mass storage device (thumb drive) the internal compact flash (CF) drive for the BIG-IP 8400 and 8800 platform is identified as sdc and the correct command to use is wipedisk /dev/sdc.
Versions 9.2.0 through 9.2.5
Note: The following platform(s) are only supported platforms in versions 9.2 and later.

Platform Command (hard disk) Command (CF card)
4100 wipedisk /dev/hda n/a

Versions 9.3.0 through 9.4.8

Platform Command (hard disk) Command (CF card)
520, 540 wipedisk hda n/a
1000, 2400, 51xx n/a wipedisk hda

Versions 9.3.0 through 9.4.8

Platform Command (hard disk) Command (CF card)
1500 wipedisk hda n/a
4100 wipedisk hda n/a
3400, 6400, 6800 wipedisk hdc wipedisk hda
8400, 8800 wipedisk sda
wipedisk sdb

Important: When booting from a USB mass storage device (thumb drive) the internal compact flash (CF) drive for the BIG-IP 8400 and 8800 platform is identified as sdc and the correct command to use is wipedisk sdc.
Versions 9.4.5 through 9.4.8
Note: The following platforms are supported only in versions 9.4.5 and later.

Platform Command (hard disk) Command (CF card)
1600 wipedisk sda n/a
3600 wipedisk sda wipedisk hda

Versions 9.4.6 through 9.4.8
Note: The following platform(s) are supported only in versions 9.4.6 and later.

Platform Command (hard disks) Command (CF card)
6900
wipedisk sda
wipedisk sdb

Important: When booting from a USB mass storage device (thumb drive) the two hard drives (hard disk) for the BIG-IP 6900 and 8900 platform are identified as sdb and sdc; the correct commands to use are wipedisk sdb and wipedisk sdc

wipedisk hda

Versions 9.4.7 through 9.4.8
Note: The following platform(s) are supported only in versions 9.4.7 and later.

Platform Command (hard disks) Command (CF card)
8900
wipedisk sda
wipedisk sdb

Important: When booting from a USB mass storage device (thumb drive) the two hard drives (hard disk) for the BIG-IP 6900 and 8900 platform are identified as sdb and sdc; the correct commands to use are wipedisk sdb and wipedisk sdc

wipedisk hda

Versions 9.4.8
Note: The following platform(s) are supported only in versions 9.4.8 and later.

Platform Command (hard disk) Command (CF card)
3900 wipedisk sda wipedisk hda

VIPRION
Important: The following is for the VIPRION platform only.

Platform Command (hard disk) Command (CF card)
VIPRION with version 9.6.0 wipedisk hdc wipedisk hda
VIPRION with version 9.6.1 wipedisk hdc steamboat wipedisk hda steamboat
After typing the appropriate wipedisk command, a warning message displays that appears similar to the following example:
***** Warning: about to completely clean <device>
***** confirm this action by re-entering the disk

Confirm the device name, by retyping the device name.

For example, to confirm cleaning the hard disk on 8400 and 8800 platforms running versions 9.3 through 9.4.6, type the following device name:
sda

To confirm cleaning the hard disk on 6400 and 6800 platforms running versions 9.1.1 through 9.1.3 and later, type the following device name:
/dev/hdc

Reboot the system by typing the following command:
reboot

The system reboots and discovers the installation server.
Perform the installation as detailed in the version-specific clean installation document.

 

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.