How to recover from a corrupt /etc/vx/volboot file when the root disk is encapsulated.

book

Article ID: 100010415

calendar_today

Updated On:

Description

Error Message

vxvm:vxconfigd: ERROR: enable failed: volboot file not loaded
transactions are disabled

Resolution

A corrupt /etc/vx/volboot file can make the systemnon-bootable in a VERITAS Volume Manager (VxVM) encapsulated root diskenvironment.

The steps below explain how to recreate the/etc/vx/volboot file in a VxVM root disk encapsulated environment.

NOTE : Break the mirror if the root disk is mirrored,  beforecontinuing with the following procedure.
This can be done by deletingthe private region (tag 15) of the mirror disk.


1. Boot themachine into single user mode from CD:
 
#boot cdrom -s

2. Mount  the root partition (in this example theroot partition is c0t0d0s0):
 
#mount /dev/dsk/c0t0d0s0 /a

3. Stop VxVM from starting:
 
#touch /a/etc/vx/reconfig.d/state.d/install-db

4. Make a copy of  /a/etc/system to bootfrom that system file temporarily:
 
# cp/a/etc/system /a/etc/system.rsv

5. Edit system.rsv and remove the followingentries:

rootdev:/pseudo/vxio@0:0
setvxio:vol_rootdev_is_volume=1

6. Halt the machine and do aboot -a, then select the /etc/system.rsv:
 
#halt
#boot -a
 
Enter filename [kernel/unix]: <<<<<---hit enter
Enter default directory for modules[/platform/SUNW,Ultra-5_10/kernel /platform   <<<--- hitenter
Name of system file [etc/system]:  /etc/system.rsv<<--- type  /etc/system.rsv here
root filesystemtype [ufs]:  <<<--- hitenter
[/pci@1f,0/pci@1,1/ide@3/disk@0,0:a]: <<<----hit enter

Now the machine will fail to boot and go into systemmaintenance mode.  Type the root password to continue.

7. Remountroot so that it is possible to make changes to the root filesystem:
 
#mount -o remount /dev/dsk/c0t0d0s0 /

8.  vxiod set 10

9. Run thevxconfiguration daemon in disable mode:
 
#vxconfigd -m disable

10. Recreate the volboot file:
 
#vxdctl init  

11. Remove the install-db file so that VxVM,which was disabled in Step 3, can be re-enabled:
 
# rm/etc/vx/reconfig.d/state.d/install-db

12.  Reboot

Once the system is bootable,you can then re-mirror your boot disk.

13. Re-mirroring yourbootdisk

13a. Adding alternate disk back into Volume Managerconfiguration
#/etc/vx/bin/vxdisksetup -i c#t#d#

13b. Mirroring bootdisk
#/etc/vx/bin/vxmirror boot_disk alternate_disk

 
 

 

Issue/Introduction

How to recover from a corrupt /etc/vx/volboot file when the root disk is encapsulated.