sccheck and stdout

this is cross posted onto the cluster forum.,,

I tried running sccheck this morning on my cluster- It's a 4 node active-active cluster of v880s running sybase databases for failover type situations.

3 of the four nodes worked correctly and ran explorer reports.

Node 2 failed. After checking through the sccheck shell scripts I found that

the line

jver=`${JAVA} -version 2> /dev/stdout`

failed.

Changing it to read "setenv jver `java -version 2> /dev/stdout`" from tcsh caused the command to still fail on node 2 but work correctly on node 1.

I have done a restore of root on node 2 earlier in the year via legato networker and a few things were not quite right in the restore. Apparently something else that got hosed is /dev/stdout.

The error I get is

/dev/stdout: No such device or address.

root@DT5AE2:fd:# ls -la /dev/stdout

lrwxrwxrwx 1 root root 6 Jan 20 07:30 /dev/stdout -> ./fd/1

shows the link but when I follow the link the fd directory is missing.

I've attemtped to copy fd from another system but that didn't work. Anyone know how to recreate fd so that a basic element such as stdout works again?

[1214 byte] By [solder] at [2007-11-26 6:39:20]
# 1
try the followingmkdir /dev/fdmknod /dev/fd/1 c 312 1 and check whether the link is still the same for /dev/stdout.
lpandre at 2007-7-6 14:50:59 > top of Java-index,General,Talk to the Sysop...
# 2
Thanks for the reply. but that didn't work (don't know if it's part of the puzzle yet). But what sun support did determine is that because /dev/fd didn't exist, it didn't get mounted (see the fd entry in the vfstab).
solder at 2007-7-6 14:50:59 > top of Java-index,General,Talk to the Sysop...
# 3

The problem:

During a system restore, /dev/fd didn't get restored which broke /dev/stdout and friends

The Solution:

create /dev/fd

do a reconfigure reboot. It's the kernel's responsibility to create the links in /dev/fd for stdin,stdout and stderr. If these links disappear only the kernel can recreate them with a reconfigure reboot.

solder at 2007-7-6 14:50:59 > top of Java-index,General,Talk to the Sysop...