Thank you Florian!

This should not be as hard to find and guess to modify an essential setting
like the NFS server which you would like to use.

Any ideas where I could request/suggest a change ?

 

This lines in /tftpboot/node_root/sbin/init

 

# Find NFS server

for i in $NFSSERVER_LIST; do

  # Use the clients-of-$nfsserver.txt in the common root.

  if [ -n "$(grep -Ew "$IP" /etc/drbl/clients-of-${i}.txt 2>/dev/null)" ];
then

    nfsserver="$i"

    break

  fi

done

if [ -z "$nfsserver" ]; then

  # No NFS server found. Use plan B. Try to use gateway as NFS server

  gateway="$(LANG=C route -n | awk '/^0.0.0.0/ {print $2}')"

  if [ -n "$gateway" ]; then

    nfsserver=$gateway

  else

    echo "NFSSERVER is not found, use default one: \"$nfsserver_default\"."

    nfsserver=$nfsserver_default

  fi

fi

 

if [ -n "$nfsserver" ]; then

  echo "NFS server is $nfsserver."

else

  echo "No NFS Server was found!"

  echo "Program terminated!"

  exit 1

fi

 

 

should be in my opinion , otherwise what's the point in having a default nfs
server if it always falls back to the gateway, and also this setting should
be far more easy to find and to set. 

 

# Find NFS server

for i in $NFSSERVER_LIST; do

  # Use the clients-of-$nfsserver.txt in the common root.

  if [ -n "$(grep -Ew "$IP" /etc/drbl/clients-of-${i}.txt 2>/dev/null)" ];
then

    nfsserver="$i"

    break

  fi

done

if [ -z "$nfsserver_default" ]; then

  # No NFS server found. Use plan B. Try to use gateway as NFS server

  gateway="$(LANG=C route -n | awk '/^0.0.0.0/ {print $2}')"

  if [ -n "$gateway" ]; then

    nfsserver=$gateway

  fi

else

    echo "NFSSERVER is not found, use default one: \"$nfsserver_default\"."

    nfsserver=$nfsserver_default

fi

 

if [ -n "$nfsserver" ]; then

  echo "NFS server is $nfsserver."

else

  echo 'No NFS Server was found!'

  echo 'Program terminated!'

  exit 1

fi

 

From: Florian Hahner [mailto:h...@florian-hahner.de] 
Sent: Friday, June 17, 2016 5:15 PM
To: Alexandru Duzsardi <alexandru.duzsa...@pitechnologies.ro>
Subject: AW: [Clonezilla-server-edition] NSF Server

 

Hi, 

 

sorry. It seems your question aims to change to ip to DNS. You have to
modify multiple script to do this.

 

A good start is 

 

/usr/share/drbl/bin/drbl-get-nfsserver

 

Good Luck !

 

 

Von: Alexandru Duzsardi [mailto:alexandru.duzsa...@pitechnologies.ro] 
Gesendet: Freitag, 17. Juni 2016 15:38
An: clonezilla-server-edition@lists.sourceforge.net
<mailto:clonezilla-server-edition@lists.sourceforge.net> 
Betreff: [Clonezilla-server-edition] NSF Server

 

Hey guys , any idea where i can specify an IP address instead of hostname
for the 

"NFS Server is..." , when trying to restore an image ?

 

Here is an image for clarity sake

http://imgur.com/HbL2CXw

 

Thank you!

 

---- 

 

 

  _____  


 
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=emailclient> 

This email has been checked for viruses by Avast antivirus software. 
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
gn=sig-email&utm_content=emailclient>  

 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Clonezilla-server-edition mailing list
Clonezilla-server-edition@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-server-edition

Reply via email to