Solved

can not fsck /opt (encapsulated into VM)

Posted on 2002-07-10
5
578 Views
Last Modified: 2013-12-27
I have lost my /opt (ie I can not fsck it) because it is encapsulated into volume manager. And volume manager is sitting in the /opt, which means that volume manager is unavailable because, it's sitting in a filesystem which needs, to be fixed... And it can not be fixed becuase  VM is not running... It's a vicious circle. Please help, I have a full day downtime!! I tried logging in in single user mode (using cdrom), but still I can't get through!!
0
Comment
Question by:biki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 4

Expert Comment

by:Otetelisanu
ID: 7145398
You can boot from cdrom (eprom modus and
boot cdrom)
After boot you can mount /yourdisc /a
0
 

Expert Comment

by:dforster
ID: 7146362
Have you tried to unencapsulate the disk ?

Mount the disk from a cdrom kernel

ie boot 1a / stop a

boot cdrom

mount /dev/dsk/cxtxdxs0 /mnt

cd /mnt/etc

vi /etc/vfstab

edit the entries / /opt /var to cxtxdxsx and comment out the /dev/vx/ entries

cd /mnt/etc/vx/reconfig.d/state.d

rm root-done

touch install-db

cd /mnt/etc/init.d

mv the volume manager start scripts

reboot on the disk

then fsck /opt

If you require further instructions one will send them.

Then once rebooted fix the re - encapsulate

0
 
LVL 1

Expert Comment

by:k.kidambi
ID: 7188816
hi, Biki

Following may help you in fixing your problem.

boot cdrom in single user mode.

boot cdrom -s

mount your old root device.

mount /dev/dsk/c0t0d0s0 /mnt

cat /mnt/etc/vfstab.prevm

This will have your original entry of your /opt

do an fsck on that /dev/rdsk/c0t0d0s? (on the /opt) device.

This should probably fix your problem.

Try your luck
Kidambi
0
 
LVL 21

Expert Comment

by:tfewster
ID: 8094163
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- PAQ, no points refunded

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
ID: 8144054
Per recommendation, points NOT refunded and question closed.

Netminder
EE Admin
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question