Solved

can not fsck /opt (encapsulated into VM)

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

743 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

11 Experts available now in Live!

Get 1:1 Help Now