nessmssit
asked on
How to mount /usr file system in read write mode
My sun solaris server version 2.8 showing /usr file system is mounted as read only because of that my veritas netbackup is not coming up
1) How do I mount the /usr file system to read write
2) Procedure for unmounting the /usr file system and mounting read write.
Thanks
1) How do I mount the /usr file system to read write
2) Procedure for unmounting the /usr file system and mounting read write.
Thanks
Check the /etc/vfstab - by the sounds of it there is an option in there that is telling the system to mount /usr with read only permission (usually a "-r" switch). You can remove this option. AFAIK - the system would need a reboot to apply these changes.
sorry - will be a "ro" switch - not just an "r" as I previously stated.
Grass-hopper,
Assuming there is nothing wrong causing the file system to be mounted a specific way (e.g. cuz an admin put something in /etc/vfstab like read-only mode), no, the system doesn't have to be rebooted. See the mount and mount_ufs man pages and look at the "-o remount" switch.
Assuming there is nothing wrong causing the file system to be mounted a specific way (e.g. cuz an admin put something in /etc/vfstab like read-only mode), no, the system doesn't have to be rebooted. See the mount and mount_ufs man pages and look at the "-o remount" switch.
I was always under the impression that /usr could not be mounted/unmounted in "live" mode - however I now stand corrected!!
A "mount -o remount,...." doesn't physically unmount and then remount the file system. It changes the various mount flags.
ASKER
hi all,
/root>mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/lar
/usr on /dev/dsk/c0t0d0s4 read only/setuid/intr/largefile
/proc on /proc read/write/setuid/dev=4400
/dev/fd on fd read/write/setuid/dev=4500
/etc/mnttab on mnttab read/write/setuid/dev=45c0
/var on /dev/dsk/c0t0d0s5 read/write/setuid/intr/lar
/var/run on swap read/write/setuid/dev=1 on Tue Apr 25 13:49:56 2006
/tmp on swap read/write/setuid/dev=2 on Tue Apr 25 13:49:57 2006
/opt on /dev/dsk/c0t0d0s3 read/write/setuid/intr/lar
/cdrom/nb_45_opt on /vol/dev/dsk/c0t6d0/nb_45_
This is my /etc/vfstab file there is no read only given but still it shows the same
:/root>more /etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr ufs 1 yes -
fd - /dev/fd fd - no -
/proc - /proc proc - no -
/dev/dsk/c0t0d0s1 - - swap - no -
/dev/dsk/c0t0d0s0 /dev/rdsk/c0t0d0s0 / ufs 1 no -
/dev/dsk/c0t0d0s4 /dev/rdsk/c0t0d0s4 /usr ufs 1 no -
/dev/dsk/c0t0d0s5 /dev/rdsk/c0t0d0s5 /var ufs 1 no -
/dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s3 /opt ufs 2 yes -
swap - /tmp tmpfs - yes -
i tried the command which is given but it does not seems to be working
mount -o remount,rw /usr
please advice me how to go a head.
ASKER
Hi all,
when i run the command
mount -o remount,rw /usr
i got this error
mount: the state of /dev/dsk/c0t0d0s4 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
Then I went to single user mode and ran fsck -y /dev/rdsk/c0t0d0s4
Then restarted the multiuser mode and now if i give the mount command it shows
:/root>mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/lar gefiles/on error=pani c/dev=8000 00 on Wed Apr 26 00:38:17 2006
/usr on /dev/dsk/c0t0d0s4 read/write/setuid/intr/lar gefiles/on error=pani c/dev=8000 04 on Wed Apr 26 00:38:18 2006
Now even my netbackup administration console also opens and backup is going on.
Thanks to all for your support
Prakash
when i run the command
mount -o remount,rw /usr
i got this error
mount: the state of /dev/dsk/c0t0d0s4 is not okay
and it was attempted to be mounted read/write
mount: Please run fsck and try again
Then I went to single user mode and ran fsck -y /dev/rdsk/c0t0d0s4
Then restarted the multiuser mode and now if i give the mount command it shows
:/root>mount
/ on /dev/dsk/c0t0d0s0 read/write/setuid/intr/lar
/usr on /dev/dsk/c0t0d0s4 read/write/setuid/intr/lar
Now even my netbackup administration console also opens and backup is going on.
Thanks to all for your support
Prakash
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
mount -o remount,rw /usr
*BUT* I've never heard of Veritas NB stopping /usr from being mounted RW. This usually happens when a system reboots but something is wrong with the file system on the box and the automagic fsck won't fix the problems its found because they are too severe.
Did your system go down hard recently ?
Have you had disk issues with this box recently ?
Have the disks been making weird noises ?