Solved

can not fsck /opt (encapsulated into VM)

Posted on 2002-07-10
5
564 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
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 20

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now