From: Enda Mannioooo on
Hi,

There was a power outage and I had to restart my solaris machine:
SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10

Now whan I attempt to make any write on the /usr drive I get the
following type of message:
cp: cannot create ../mc3.tar: Read-only file system

Here is the line in my vfstab file:
/dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /usr ufs 1
no -

Here is the corresponding line in the mnttab file:
/dev/dsk/c0t0d0s7 /usr ufs ro,suid,dev=2200007,largefiles
1112694631

Any ideas on this one.
Enda
From: d. on
Enda Mannioooo napisaý(a):
> Hi,
>
> There was a power outage and I had to restart my solaris machine:
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
>
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system
>
> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /usr ufs 1
> no -
>
> Here is the corresponding line in the mnttab file:
> /dev/dsk/c0t0d0s7 /usr ufs ro,suid,dev=2200007,largefiles
> 1112694631
>
> Any ideas on this one.
> Enda

change:
/dev/dsk/c0t0d0s7 /usr ufs RW,suid,dev=2200007,largefiles
1112694631
reboot now.

ro says read-only filesystem

--
d.
From: d. on
Enda Mannioooo napisaý(a):
> Hi,
>
> There was a power outage and I had to restart my solaris machine:
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
>
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system
>
> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /usr ufs 1
> no -
>
> Here is the corresponding line in the mnttab file:
> /dev/dsk/c0t0d0s7 /usr ufs ro,suid,dev=2200007,largefiles
> 1112694631
>
> Any ideas on this one.
> Enda
and the "no" in vfstab line says "no mount in boot time"
man vfstab
man mount
--
d.
From: Oscar del Rio on
Enda Mannioooo wrote:

> There was a power outage and I had to restart my solaris machine:
> SunOS mymachine 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-5_10
>
> Now whan I attempt to make any write on the /usr drive I get the
> following type of message:
> cp: cannot create ../mc3.tar: Read-only file system

The filesystem might have been corrupted. Try to "fsck" and remount "rw"

> Here is the line in my vfstab file:
> /dev/dsk/c0t0d0s7 /dev/rdsk/c0t0d0s7 /usr ufs 1
> no -

You might want to add "logging" to the mount options (man mount_ufs).
You might have to patch up the system first (I think "logging" was added
in a kernel patch of SunOS 5.7). Apply the latest Recommended Patch Cluster
From: Oscar del Rio on
d. wrote:

>> Here is the corresponding line in the mnttab file:
>> /dev/dsk/c0t0d0s7 /usr ufs ro,suid,dev=2200007,largefiles
>> 1112694631

> change:
> /dev/dsk/c0t0d0s7 /usr ufs RW,suid,dev=2200007,largefiles
> 1112694631

do not edit mnttab