[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

8989.0. "reboot problem and fstab file" by TROOA::QIAN () Thu Feb 27 1997 15:20

    Hello,
    
    	I cannot reboot my system after I change the "fstab" file. The
    previous "fstab" file is:
    
    	root_domain#root   /advfs  rw 0 0
    	/proc   /proc   procfs  rw 0 0
    	usr_domain#usr /usr  advfs  rw 0 0
    	/dev/rz1b  swap1  ufs	sw 0 2
    	u_domain#u  /u  advfs rw 0 0
    	oracle_domain#orcle /usr/opt/oracle advfs rw 0 0
    
    I changed it to:
    
    	/dev/rz1a  /  advfs rw 0 0
    	/dev/rz1g  /usr advfs rw 0 0
    	/dev/rz2c  /u advfs rw 0 0
    	/dev/rz1b  swap1 ufs sw 0 2
    	/dev/rz2c  /u  advfs rw 0 0
    	/dev/rz1g  /usr/opt/oracle advfs rw 0 0
    
    The reason why /i changed the file was that I tried to backup the file
    systems by "dump", but it coouldn't do it.  
    
    	I also tried to reboot the system to single user mode, and tried to
    modified the fstab file, but because the root file system was
    automaticly mounted as  read-only, so I cannot modify it.
    
    	How can I made it work again?
    
    	Any suggestions and comments will be welcome.
    
    Best regards,
    Cecilia
T.RTitleUserPersonal
Name
DateLines
8989.1I hope you have a storageworks box to swap disk drivesUNIFIX::HARRISJuggling has its ups and downsThu Feb 27 1997 15:5545
    Try "mount -u /"  (but I don't hold out much hope for that)
    
    Borrow a bootable disk from someone else and attach it to your system. 
    Boot into single user mode.  Then create the proper
    /etc/fdmns/any_name_you_like/rz1a soft links on the booted disk.  
    
        mkdir /etc/fdmns/any_name_you_like
        cd /etc/fdmns/any_name_you_like
    	ln -s /dev/rz1a
    
    Now mount the disk.
    
    	mount any_name_you_like#root /mnt
    
    Make your fstab changes.  Be careful to only make changes to your disk
    and not the one you borrowed, or you might loose some friends :-)
    
        ed /mnt/etc/fstab	# make sure you get the right fstab
    
    Remove the /etc/fdmns/any_name_you_like directory from your friends
    borrowed disk.
    
    ----
    
    Or you could take your boot disk to someone elses system and plug it
    it.  Make the /etc/fdmns/any_name_you_like/rz?a soft links.  Mount your
    disk.  Make the changes.
    
    ----
    
    AdvFS does not work with /dev/rz1a device enteries in fstab.  It needs
    to have the name of the domain and the file set in the domain.  The
    domain name it uses to find the /etc/fdmns/domain_name directory.  The
    file set name it uses to find the file set within the domain that is to
    be mounted.
    
    You threw this all away, so now AdfFS doesn't know what to do.  And
    since this is your root disk, can't find anything, so your dead.
    
    ----
    
    I don't know if your enter was a mistype or if you really mean dump. 
    To properly backup an AdvFS domain you use 'vdump' and 'vrestore'.
    
    					Bob Harris
8989.2An ideaNETRIX::"[email protected]"Brian HaleyThu Feb 27 1997 16:0115
Hi,

You should be able to do this:

   mount -u root_domain#root /

which should mount your AdvFS root filesystem.  That's assuming your
/etc/fdmns/root_domain/rz??a link is still there.

If this fails, you can boot to the install cd, exit to the shell, MAKEDEV
your device (where / lives), mount the filesystem and edit the fstab by hand
- I've done this before :-( but I think it might only be viable with 4.X?

-Brian
[Posted by WWW Notes gateway]
8989.3... and use /sbin/advfs/advscan to get the links backNETRIX::"[email protected]"Detlef SchmierThu Feb 27 1997 16:2916
Use /sbin/advfs/advscan (see man page for usage) to get your links back.

Detlef.

========================================================================
Detlef Schmier @RTO                 Digital Equipment GmbH
SBU, OEM/GY                         Freischuetzstrasse 91
Field Application Engineer          D-81927 Muenchen
Pub.Tel. +49-(0)89-9591 2752        DTN 865-2752
Mobile   +49-(0)171-3357582
Fax #    +49-(0)89-9591 1278        DTN 865-1278
========================================================================
eMail    : [email protected]
URL      : http://www.digital.de/infocenter/toem-gy/detlef.html
========================================================================
[Posted by WWW Notes gateway]
8989.4BIGUN::nessus.cao.dec.com::MayneChurchill's black dogThu Feb 27 1997 16:306
...and for future reference, dump is a UFS only command. It will *not* work with 
AdvFS, whatever you do to fstab.

USe vdump/vrestore for AdvFS (and UFS).

PJDM
8989.5ThanksTROOA::QIANThu Feb 27 1997 16:467
    Hello Guys,
    
    	Many thanks for your timely help!
    
    	My system can work now.
    
    Cecilia