• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

Solaris Troubleshooting : Removing Root Disk from Disksuite Control

This procedure removes the root disk from DiskSuite control while leaving all other data under DiskSuite intact.

A. Boot system from CD-ROM or Single User Mode ( using Single usermode, you have to be careful to not miss any of the configuration changes).

B. Restore or modify necessary files.

C. Disable DiskSuite on the root partition(s).

D. Boot system.

E. Re-mirror root disk.

STEP-BY-STEP PROCEDURE:

Please be sure to substitute the system disk name (i.e., c0t0d0) in the example commands below. This example uses “c0t0d0″.

1. Boot from CD-ROM, and perform the file recovery necessary to boot the system. This may be as drastic as running ‘newfs’ and ‘ufsrestore’ on each slice of the boot disk, or as simple as editing the /etc/passwd file, to remove an unknown root password. Remember, if the root partition is being restored from a backup tape, the boot block will need to be installed as well. NOTE: There may not be any recovery required at all … it depends on WHY the system will not boot.

2. Mount the root partition onto /a. It may be required to run ‘fsck’ on this partition before it can be mounted.

# mount /dev/dsk/c0t0d0s0 /a

3. Edit the /etc/system file, and remove/comment the “rootdev” line shown below:

# vi /a/etc/system * rootdev:/pseudo/md@0:0,0,blk

 

4. In the /etc/vfstab file, replace the lines for the system file system metadevices with their underlying partitions.

For example, change lines from:

/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -

to:

/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -

ONLY change the lines for root (/) and the file systems which were affected by the  actions taken in step 1 above. All other metadevices, may stay ‘as is’, in this file.

5. Unmount and check the root file system. Then stop the system.

# cd / # umount /a # fsck /dev/rdsk/c0t0d0s0 STOP-A (L1-A)

5a. At OBP enter

ok printenv boot-device

Check if the recently mounted disk, is the first entry in the list of devices. For instance:

boot-device = sds-disk sds-mirror

ok devalias sds-disk /ssm@0,0/pci@18,700000/pci@1/SUNW,isptwo@4/sd@0,0

–> make sure this device is disk c0t0d0, from the previous commands.

ok devalias sds-mirror /ssm@0,0/pci@1c,700000/pci@1/SUNW,isptwo@4/sd@0,0

If not, specify the disk from which you want to boot.

6. Boot to single-user mode. THIS IS VERY IMPORTANT. THE SYSTEM MUST BE BOOTED TO SINGLE USER MODE TO AVOID FILE SYSTEM CORRUPTION.

ok boot -sw

If the system does not boot to single user mode, it is possible that a mistake was made in the above steps.

7. Enter the root password when prompted. Once in single-user mode, clear the metamirrors and all the submirrors of all the system file systems.

For example, to clear the root (/), /usr, and /var metamirrors,identified as d0, d1, and d2, respectively, run the command:

# metaclear -f -r d0 d1 d2

This will not only clear the metamirrors but also the submirrors which are part of these mirrors.

Note: If the machine has been restored from a backup, extra commands may be required to address the replicas (a bad trap can be received during boot). If the machine has not been restored from backup, skip to step 8. 

7a. List the existing state databases on the system:

# metadb -i

Example output:

 flags first blk block count 
a m p luo 16 8192 /dev/dsk/c1t1d0s7 
a p luo 8208 8192 /dev/dsk/c1t1d0s7 
a p luo 16400 8192 /dev/dsk/c1t1d0s7 
a p luo 16 8192 /dev/dsk/c1t0d0s7 
a p luo 8208 8192 /dev/dsk/c1t0d0s7 
 p luo 16400 8192 /dev/dsk/c1t0d0s7

7b. Remove the state databases (the -f switch is only required for removing the last DB). This command needs to be completed for all state databases.

# metadb [-f] -d

8. Once the metamirrors are cleared, continue the boot up to multi-user mode, by issuing either a CTRL-D or entering:

# exit

9. Now everything should be as it was, except that the system partitions are on the underlying partitions, and are not mirrored. Simply re-create the replicas and metadevices for the root mirror, as had been done originally.


You might be interested to read below :


  • SAN Storage Migration – Solaris with VxVM

  • Solaris host level SAN migration from Clariion to VMAX – Hands on Lab

  • Hands on Lab – Replacing Failed Disks from ZFS Pools ( RaidZ2 / RaidZ3 ) – Part2

  • Enabling SVM in Failsafe and password recovery in Solaris.

  • Hands on Lab – Replacing Failed Disks from ZFS Pools ( Simple / Mirrored / RaidZ )

  • Oracle Server Hardware Reference ( 3D View)
  • Email
  • More
  • Print
  • Digg
Posted by Ramdev
2 Comments
Tagged with: [ boot errors, remove, root disk, root disk from vxvm, SDS, Solaris Troubleshooting, VxVM Learning ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments on “Solaris Troubleshooting : Removing Root Disk from Disksuite Control”

Trackbacks

  1. Solaris Troubleshooting : Removing Root Disk from Disksuite … | unixsecure secondary
  2. Solaris Troubleshooting : Removing Root Disk from Disksuite … | unixsecure secondary

Leave a Comment

Join to our Professional Network (of 1400+ unixadmins ) to receive Unix Administration and Job Updates -

Pages1

Don't Miss Updates

 

Beginners Zone

 

Unixadmin Careers

Server Hardware

Beginners Lessons

Troubleshooting-Flowchart

 

Intermediate Zone

 

Solaris Booting

Solaris Volume Manager

Storage Configurations

Solaris Networking

Solaris X86

Solaris ZFS

Solaris NFS

Solaris NIS

Solaris Patching

Solaris Booting

Solaris Kernel

Veritas Volume Manager

Solaris NIS

Logical Volume Manager

Linux Networking

Linux Disk Management

Linux Troubleshooting

 

Experts Zone 

 

Solutions

Scripting and Automation

Server Security

Veritas Cluster Services

Sun Cluster Services

Cloud Computing

SUN LDOMS

Copyright © 2009 unixadminschool.com. All rights reserved.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.