Whamcloud - gitweb
It is pretty important that Lustre knows when the DLM for a given service is
authorpschwan <pschwan>
Thu, 18 Apr 2002 16:54:00 +0000 (16:54 +0000)
committerpschwan <pschwan>
Thu, 18 Apr 2002 16:54:00 +0000 (16:54 +0000)
running on the local machine.

lustre/tests/common.sh

index 33e1992..57fea7d 100644 (file)
@@ -120,6 +120,12 @@ setup_portals() {
                exit -1
        fi
 
                exit -1
        fi
 
+       if [ "$LOCALHOST" == "$SERVER" ]; then
+               DLM=localhost
+       else
+               DLM=$SERVER
+       fi
+
        [ -c /dev/portals ] || mknod /dev/portals c 10 240
 
        insmod $PORTALS/linux/oslib/portals.o || exit -1
        [ -c /dev/portals ] || mknod /dev/portals c 10 240
 
        insmod $PORTALS/linux/oslib/portals.o || exit -1
@@ -150,6 +156,7 @@ setup_portals() {
        add_uuid self
        add_uuid mds
        add_uuid ost
        add_uuid self
        add_uuid mds
        add_uuid ost
+       connect $DLM $PORT
        add_uuid ldlm
        quit
        EOF
        add_uuid ldlm
        quit
        EOF