bash:umount/: no such file or directory


 
Thread Tools Search this Thread
Operating Systems Linux bash:umount/: no such file or directory
# 1  
Old 07-04-2012
bash:umount/: no such file or directory

I am trying to connect two system (let's say for time being) together such that it supports clustering.

for this I got the following packages:
Code:
   	 	 	 	 	 	  # sudo apt-get install  pacemaker sysv-rc-conf glusterfs-server glusterfs-examples glusterfs-client chkconfig nmap ntp

Next, I did the following for both system:
Code:
   	 	 	 	 	 	  node[x]:~# mkfs.ext3 /dev/sd??  
 node[x]:~# blkid -g  
 node[x]:~# blkid /dev/sd?? >> /etc/fstab  
 node[x]:~# vi /etc/fstab  
 you must have a line like that :
 UUID=9dc20d6c-a3d7-4667-a9b1-e8939a0473f1	/export	 ext3	defaults		0	2  
 node[x]:~# mount /export/
 node[x]:~# mkdir  /export/part1

Then, I added two files inside /etc/glusterfs. These are glusterd.vol & raid1.vol

Here's the contents of the two files, for the second system ip addresses may change though.

this is for glusterd.vol

Code:
volume management
    type mgmt/glusterd
    option working-directory /etc/glusterd
    option transport-type socket,rdma
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2
end-volume


Quote:
the above lines are defaults, i mean, they're the only lines which are included in this file when you installed glusterfs package, I commented them first as I thought they wouldn't be needed, but then I got the endpoint connection error when tried to mount /mnt/glusterfs.
volume posix type storage/posix option directory /export/part1 end-volume volume brick type features/locks subvolumes posix end-volume volume server type protocol/server subvolumes brick option transport-type tcp option transport.socket.bind-address 192.168.3.13 # system IP option transport.socket.listen-port 820 option transport.socket.nodelay on option auth.addr.brick.allow 127.0.0.1,192.168.3.13,192.168.3.99 #Systems IPs end-volume

and this is the raid1.vol file

Code:
volume VolNode1 
  type protocol/client 
  option remote-subvolume brick 
  option transport-type tcp/client 
  option remote-host 192.168.3.13 # system 1  IP
  option remote-port 820 
  option transport.socket.nodelay on 
end-volume 

volume VolNode2 
  type protocol/client 
  option remote-subvolume brick 
  option transport-type tcp/client 
  option remote-host 192.168.3.99 # system 2  IP
  option remote-port 820 
  option transport.socket.nodelay on 
end-volume 

volume afr 
  type cluster/replicate 
  subvolumes VolNode2 VolNode1 
  option read-subvolume VolNode2 
end-volume 

volume wb 
  type performance/write-behind 
  subvolumes afr 
  option cache-size 4MB 
end-volume 

volume cache 
  type performance/io-cache 
  subvolumes wb 
  option cache-size 1024MB 
  option cache-timeout 60 
end-volume

could anyone tell me how to make the two system work fine n share the folder?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sourcing file from parent directory bash

"Debian 9 64x - LXDE" I try to source a file from my parent directory: #!/bin/bash #source.bash . ../links.bash but i get "file not found". I tried . "../links.bash" and . '../links.bash'. I got on all methods the same result. If i use the absolute path it works, but i don't want to... (4 Replies)
Discussion started by: int3g3r
4 Replies

2. UNIX for Beginners Questions & Answers

Reading a file from a different directory in a Bash script

Hi all, Given here under a section of a script I am using. SIMDIR="/home/Ins/forces" cd $SIMDIR for file in `ls *.forces` do basename=`echo $file | sed 's/\.*$//'` extname=`echo $file | sed 's/*\(*\)\.\(.*\)/\2\1/'` echo "Processing file: "$basename python convert.py... (4 Replies)
Discussion started by: Theo Score
4 Replies

3. Shell Programming and Scripting

Bash to select and save file in new directory

I am trying to select a file in bash and save it to a directory. The below does run but no selected file is saved. Thank you :). bash # select file printf "please select a file to analyze with entered gene or genes \n" select file in $(cd... (4 Replies)
Discussion started by: cmccabe
4 Replies

4. Shell Programming and Scripting

Rename specific file extension in directory with match to another file in bash

I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies

5. Shell Programming and Scripting

Bash to delete file in directory

Will the below bash delete all the "snps.ivg" in the given directory? Thank you :) find N:\all_array\Samples -maxdepth 1 -type f -name "snps.ivg" -delete (6 Replies)
Discussion started by: cmccabe
6 Replies

6. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies

7. Shell Programming and Scripting

bash: How to send a file/directory as argument?

Hi, I'd like to make a script where I can send a directory OR files as an argument, and compress them. My proble mis, I do know how to send a directory, but I do not know what to do if there are more than 1 file, I mean I can store the directory in $1, but how do I store 4 files? must I write $1,... (3 Replies)
Discussion started by: lamachejo
3 Replies

8. Solaris

Filesystem - umount the / (root) file system

Hi all Is it ok to umount the / (root) file system? Because recently i had extend the swap space by add the cylinders, now only found that the cylinders is overlap with the root. Is it ok for future server operation? partition> print Current partition table (original): Total disk... (6 Replies)
Discussion started by: SmartAntz
6 Replies

9. Shell Programming and Scripting

FIle (directory) test operator (bash)

I'm almost pulling out my hair trying to figure out what's wrong with this... there's no reason I can see that it shouldn't be working. It seems that the code acts as though the conditional statement is true no matter what - I've even tried removing the negation operator, but it always goes into... (5 Replies)
Discussion started by: wildbluefaerie
5 Replies

10. Solaris

bash: ./<scriptname>: No such file or directory

I have simply downloaded a file to my local folder, made one small change and uploaded it back, ever since it will not run the file. I have now uploaded the original, unchanged file, which still doesn;t work. Evertime it is run ot says bash: ./nrcardprint: No such file or directory The... (10 Replies)
Discussion started by: Heidi.Ebbs
10 Replies
Login or Register to Ask a Question