Re: [Clonezilla-server-edition] NSF Server
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
From: Alexandru D. <ale...@pi...> - 2016-06-18 05:38:43
|
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:ho...@fl...] Sent: Friday, June 17, 2016 5:15 PM To: Alexandru Duzsardi <ale...@pi...> 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:ale...@pi...] Gesendet: Freitag, 17. Juni 2016 15:38 An: clo...@li... <mailto:clo...@li...> 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> |