Solved

can not fsck /opt (encapsulated into VM)

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 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