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
Solved

can not fsck /opt (encapsulated into VM)

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

808 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