From: Jun C. P. <jun...@gm...> - 2010-12-21 21:19:25
|
Hi, When I list up a set of hdd drives in mfshdd.cfg, all the given hdd drives are automatically managed as single storage by mfs which, I agree, is desired in many cases. However, is there any way to make separate mfs-mount points on different storage? For instance, what if one wants to have two different mfs-mount points on the same mfs client node while the two mount points are pointing out to different sets of hdd drivers or different directories? I got this question while comparing MFS with GlusterFS that provides the capability of allowing multiple mount points to sit on different storage devices. Any comment or workaround will be greatly appreciated. -Jun |
From: Michal B. <mic...@ge...> - 2010-12-21 21:38:17
|
Hi! You don't need any hacks, look at http://www.moosefs.org/reference-guide.html at " Clients (mfsmount) " section. There you have: MooseFS is mounted with the following command: mfsmount [-h master] [-p port] [-l path] [-w mount-point] where master is the host name of the managing server, port is the same as given in MATOCU_LISTEN_PORT in file mfsmaster.cfg, path is mounted MooseFS subdirectory (default is /, which means mounting the whole file system), mount-point is the previously created directory for MooseFS. (Or you need still another functionality?) Kind regards Michal Borychowski MooseFS Support Manager _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Gemius S.A. ul. Wołoska 7, 02-672 Warszawa Budynek MARS, klatka D Tel.: +4822 874-41-00 Fax : +4822 874-41-01 -----Original Message----- From: Jun Cheol Park [mailto:jun...@gm...] Sent: Tuesday, December 21, 2010 10:19 PM To: moo...@li... Subject: [Moosefs-users] Is it possible to make separate mfs-mount points on different sets of hdd drives? Hi, When I list up a set of hdd drives in mfshdd.cfg, all the given hdd drives are automatically managed as single storage by mfs which, I agree, is desired in many cases. However, is there any way to make separate mfs-mount points on different storage? For instance, what if one wants to have two different mfs-mount points on the same mfs client node while the two mount points are pointing out to different sets of hdd drivers or different directories? I got this question while comparing MFS with GlusterFS that provides the capability of allowing multiple mount points to sit on different storage devices. Any comment or workaround will be greatly appreciated. -Jun ---------------------------------------------------------------------------- -- Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ moosefs-users mailing list moo...@li... https://lists.sourceforge.net/lists/listinfo/moosefs-users |
From: Jun C. P. <jun...@gm...> - 2010-12-21 23:54:09
|
Thanks for the comment. Somehow my question seems not clear enough to get some help. Please, let me clarify what I want. First of all, I am using mfs-1.6.15-2. > mfsmount [-h master] [-p port] [-l path] [-w mount-point] I think that the right command manual would be the following (the current manual on mfsmount has conflicting guides). There is no -l path option in mfsmount in my version. mfsmount mountpoint [-d] [-f] [-s] [-m] [-n] [-p] [-H MASTER] [-P PORT] [-S PATH] [-o OPT[,OPT...]] Now let me describe what I want in detail. For example, suppose that I have the following mfs-mount point using "mfsmount -H 10.1.2.22 -o suid -o dev -o rw -o exec /mnt/mfs." # cat /etc/mfs/mfshdd.cfg /home/mfs-rdvol1 /home/mfs-rdvol2 # cat /etc/mfs/mfsexports.cfg 10.1.2.23-10.1.2.25 /home/mfs_rdvol1 rw,alldirs,maproot=nobody,password=test1 10.1.2.23-10.1.2.25 /home/mfs_rdvol2 rw,alldirs,maproot=nobody,password=test1 # df -h | grep mfs mfs#10.1.2.22:9421 24T 399G 24T 2% /mnt/mfs However, I want to let /mnt/mfs points out only to /home/mfs-rdvol1 while /mnt/mfs2 uses /home/mfs-rdvol2, illustrated below as an example. # df -h | grep mfs mfs#10.1.2.22:9421 24T 399G 24T 2% /mnt/mfs mfs#10.1.2.22:?? 10T 1T 10T 10% /mnt/mfs2 However, I got the following error when I tried to add a separate mount point: # mfsmount /mnt/mfs2 -H 10.1.2.22 -S /home/mfs-rdvol2 -o suid -o dev -o rw -o exec mfsmaster register error: No such file or directory How can I get a separate mfs-mount point (/mnt/mfs2) that sits on a different set of hdd drives? -Jun |
From: Anh K. H. <ky...@vi...> - 2010-12-22 02:53:57
|
On Tue, 21 Dec 2010 16:54:02 -0700 Jun Cheol Park <jun...@gm...> wrote: > ... > Now let me describe what I want in detail. For example, suppose > that I have the following mfs-mount point using "mfsmount -H > 10.1.2.22 -o suid -o dev -o rw -o exec /mnt/mfs." > > # cat /etc/mfs/mfshdd.cfg > /home/mfs-rdvol1 > /home/mfs-rdvol2 So "/home/mfs-rdvol{1,2}/" will be used by mfsmaster/chunk server (to store data) and they are *transparent* to end users (to clients). You can write data directory to /home/mfs-rdvol{1,2}. > ... > However, I want to let /mnt/mfs points out only to /home/mfs-rdvol1 > while /mnt/mfs2 uses /home/mfs-rdvol2, illustrated below as an > example. > > # df -h | grep mfs > mfs#10.1.2.22:9421 24T 399G 24T 2% /mnt/mfs > mfs#10.1.2.22:?? 10T 1T 10T 10% /mnt/mfs2 > > However, I got the following error when I tried to add a separate > mount point: > > # mfsmount /mnt/mfs2 -H 10.1.2.22 -S /home/mfs-rdvol2 -o suid -o dev > -o rw -o exec > mfsmaster register error: No such file or directory Because "/home/mfs-rdvol2" isn't a exported directory. If you want to mount "/foo/bar/" from the mfsmaster, that directory should be mentioned in "mfsexports.cfg". > How can I get a separate mfs-mount point (/mnt/mfs2) that sits on a > different set of hdd drives? I have no idea why you need that. You can remove the second disk (/home/mfs-rdvol2) from the current master, and install another mfsmaster/mfschunk servers that use "/home/mfs-rdvol2" -- but this way is too complex. I mean you would have two different setup of MooseFS. Regards, -- Anh Ky Huynh at UTC+7 |
From: Anh K. H. <ky...@vi...> - 2010-12-22 03:01:03
|
On Wed, 22 Dec 2010 09:53:38 +0700 "Anh K. Huynh" <ky...@vi...> wrote: > You can write data directory to /home/mfs-rdvol{1,2}. Oops my English.. I meant "you can't write directly to /home/mfs-*" -- Anh Ky Huynh at UTC+7 |
From: Thomas S H. <tha...@gm...> - 2010-12-22 04:59:24
|
As far as I can tell, if you want to designate two disk locations you can, and this is very viable, but you would just need two mfsmaster servers and explicitly declare which one you are connecting too when you mount. As for being able to do that from just one mfsmaster, I do not believe that is possible -Tom Hatch On Tue, Dec 21, 2010 at 7:53 PM, Anh K. Huynh <ky...@vi...> wrote: > On Tue, 21 Dec 2010 16:54:02 -0700 > Jun Cheol Park <jun...@gm...> wrote: > > ... > > Now let me describe what I want in detail. For example, suppose > > that I have the following mfs-mount point using "mfsmount -H > > 10.1.2.22 -o suid -o dev -o rw -o exec /mnt/mfs." > > > > # cat /etc/mfs/mfshdd.cfg > > /home/mfs-rdvol1 > > /home/mfs-rdvol2 > > So "/home/mfs-rdvol{1,2}/" will be used by mfsmaster/chunk server (to store > data) and they are *transparent* to end users (to clients). You can write > data directory to /home/mfs-rdvol{1,2}. > > > ... > > However, I want to let /mnt/mfs points out only to /home/mfs-rdvol1 > > while /mnt/mfs2 uses /home/mfs-rdvol2, illustrated below as an > > example. > > > > # df -h | grep mfs > > mfs#10.1.2.22:9421 24T 399G 24T 2% /mnt/mfs > > mfs#10.1.2.22:?? 10T 1T 10T 10% /mnt/mfs2 > > > > However, I got the following error when I tried to add a separate > > mount point: > > > > # mfsmount /mnt/mfs2 -H 10.1.2.22 -S /home/mfs-rdvol2 -o suid -o dev > > -o rw -o exec > > mfsmaster register error: No such file or directory > > Because "/home/mfs-rdvol2" isn't a exported directory. If you want to mount > "/foo/bar/" from the mfsmaster, that directory should be mentioned in > "mfsexports.cfg". > > > How can I get a separate mfs-mount point (/mnt/mfs2) that sits on a > > different set of hdd drives? > > I have no idea why you need that. You can remove the second disk > (/home/mfs-rdvol2) from the current master, and install another > mfsmaster/mfschunk servers that use "/home/mfs-rdvol2" -- but this way is > too complex. I mean you would have two different setup of MooseFS. > > Regards, > > -- > Anh Ky Huynh at UTC+7 > > > ------------------------------------------------------------------------------ > Forrester recently released a report on the Return on Investment (ROI) of > Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even > within 7 months. Over 3 million businesses have gone Google with Google > Apps: > an online email calendar, and document program that's accessible from your > browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew > _______________________________________________ > moosefs-users mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moosefs-users > |