Best Way Of Mouting File System Remotely? NFS/SSHFS
Dec 29, 2007
I've been debating this in my head in that we have a number of servers that need to mount a remote server (for backups actually) and debating about the best way of doing it. Traditionally I would use NFS but this is going to have to run over the public internet and NFS is insecure at the best of times.
Now I've got root on all the servers and I was thinking of using sshfs via fuse but just wondered if anyone had any input of the stability of it or any other way.
R1Soft wouldn't work in this method as the backups are created by the user
how to use sshfs. I am trying to install it but I need to install FUSE first and I keep getting errors.
Code: === configuring in kernel (/root/fuse-2.6.5/kernel) configure: running /bin/sh ./configure '--prefix=/usr/local' --cache-file=/dev/null --srcdir=. checking for a BSD-compatible install... /usr/bin/install -c checking kernel source directory... Not found configure: error: *** Please specify the location of the kernel source with *** the '--with-kernel=SRCDIR' option configure: error: ./configure failed for kernel
i got this message from my provider after asking for a reboot:
Quote:
Your server had an EXT3 FS error scrolling across the screen.
I rebooted and the server mounted clean, but you may end up needing a file system check (FSCK).
I want to do that myself so i can schedule the downtime after midnight, what are the procedures to fix this erros to avoid the need to reboot the server often
I'm trying to run sshfs on my VPS but it seems to require the fuse module compiled on kernel. I already asked my host but they said that they won't change the kernel.
Is there an alternative to sshfs? I really need something to mount an external server.
Are you familiar with the file management system of oneandone.
Doing an ftp upload there is already an index file and many folders on the system and the technical manual has no indication on whether to upload into any of the folders or on the system?. By the way, if you upload into the system interface, your site will not appear online.....
Is anyone here running GFS? The responsibility of managing a small cluster of them is about to fall into my lap, and the only documentation I can find is on Wikipedia, which is troubling. I've got the man pages, but I was hoping for more of a document outlining how it works.
Why would lock_dlm2 or gfs_scand take up close to 100% CPU with minimal traffic on the machine, for example? What do those do? How can I tune it to not do that?
I'm not so much looking for specific answers here about tuning, but am more curious about where I should be looking for documentation. I find it hard to believe that there is none?
I am trying to figure out what file system to use for my server. It has 24 hard drives, 2 run the OS in RAID 1, and the other 22 are in RAID 10. When I was installing the OS (Ubuntu 8), I kept on getting problems when I tried to partition and format the second drive (the one with the 22 disks in RAID 10) and it keeps failing on me. I then changed the file system type from ext3 to XFS and it worked fine. I also gave it another try and did not partition/format the second drive and decided to do it manually once the OS was installed. When I did it it told me that the file system was too large for ext3. So my guess is that ext3 has a limit on the size of the file system it is being installed on.
Anyway, so I am wondering, is there any other file system that will get me the best performance, mainly I/O performance, that I can install? I would like to stick with Ubuntu OS. This server will mainly serve large files for download over HTTP.
thing is there is no SDC volume. there's SDA, SDA1 and SDA2 reflecting the primary drive in the system. if i put in the root password I can see all the data, everything looks fine.
how would i go about fixing this? system just reboots over and over.
I have a dedicated server and till few days back i was able to edit my files fine but this morning when i am trying to edit any file, it gives me back this error:
[user@domainname theme]$ chmod 777 header.php chmod: changing permissions of `header.php': Read-only file system [user@domainname theme]$
[root@domainname theme]$ chmod 777 directoryy chmod: changing permissions of `directoryy': Read-only file system [root@domainname theme]$
I tried both as normal user and root and same results. Do you think the hosting guys changed the permissions of the file system or something?
I have a centos server & whenever I reboot it, it goes into File System check and takes about 1 hr to turn online.
The irony is, I reboot the server only when the load goes high (esp when traffic is high).. And the server is down for long times when traffic is high.
The server config is pretty good, but it shows these problems once in 15-20 days.
How do I sweep my entire server and chmod a particular filename located in the cgi-bin to either 0, 755, etc?
For example, to disable a particular perl script running on my system on over 100 accounts in the /cgi-bin/file.cgi I want to chmod the file on every account that it comes up on that /cgi-bin/file.cgi needs to be chmod'd to 0.
Anyone know how to do this thru ssh or another method?
I recently had an issue where my box wasnt listing accounts (on logging into WHM for the first time it would, thereafter browsing different functions in WHM it would fail to list any accounts), would not list any zone items when editing DNS zones and in general was acting very strange.
I think the tech support chap narrowed it down to zero free inodes on the filesystem (i was even getting errors when editing files with 'vi'). This was increased for the VPS and all issues seemed to be resolved...
However named and httpd were not starting after reboots. Again on looking closely named and httpd were missing from /etc/init.d (on CentOS 5.3)! This is very strange and i certainly didnt modify those nor delete such critical files.
For a second opinion, is there any cPanel script that can be ran to fix the issues, i am concerned other things have been affected but havent manifested themselves yet (other files deleted etc). Does cPanel update script create the init.d files or is this done by the CentOS operating systems itself? Are these files modified during a cPanel update script?
These init.d files for named and httpd have been readded (copied across from another box) and it seems to be ok again, but ideas on howto proceed much appreciated, as i mentioned i dont want any nasty supprises!
They are located in different places on the file system. And i need to redirect from one project to another internally, so url for site.loc is preserved.
E.g. requesting site.loc/hey/there i need apache to serve files form proj2.0.
First, i know that on the .htaccess level we cannot use RewriteRule to file-system path (for security reasons).
Okay, an Alias is a workaround. Say I add an Alias to virtual host as following:
Code: Alias /newsite /some/path/to/proj2.0
Then if i'll add the rule to proj's .htaccess:
Code: RewriteRule ^hey/there /newsite
This will work.
But, the webroot does not work:
Code: RewriteRule ^$ /newsite
Is it i'm doing something wrong or there is some quirk about the webroot?
in CENTOS 6.6 / PLESK 12 when I use the find command I get this notice:find: File system loop detected; "/var/named/chroot/var/named" is part of the same file system loop as "/var/named".
I am getting this error for one of my website. This site is working fine on the old server from which it has been migrated:
============================================================= Server Error in '/' Application. --------------------------------------------------------------------------------
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (c:Inetpubvhosts<domain.com>httpdocsweb.config line 59) Source Error: Line 57: <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers> Line 58: <httpModules> Line 59: <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> Line 60: </httpModules> Line 61: </system.web> Source File: c:Inetpubvhosts<domain.com>httpdocsweb.config Line: 59 --------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053 =============================================================
I am attaching the web.config file as attachment. Can anyone tell me how do I fix this.
I have two servers - one serves dynamic content (PHP) and the other serves static content (images and other files).
The PHP needs to have access to the images and files on the other server so at the moment I execute SSHFS manually to mount a directory containing the contents of the remote server. Permissions are set up so PHP can access and modify the images and files as if they're local files.
This works fine until the server needs restarting or network problems occur. I'd like to rectify this by using an daemon auto-mounter to make sure the directory is remounted if it ever becomes unmounted for any reason, including after a server reboot.
I understand that SSHFS is solid and secure, and both AFUSE and AutoFS offer suitable auto-mounting functionality, but I can't find any solid information on how suitable AFUSE or AutoFS are for a production server - my main concern being whether it's going to cause some unforeseen security issues.
Is AFUSE or AutoFS suitable for a production server?
floodkoruma is a script which securing our servers from syn floods. But I couldnt understand our connection lost from server on that screen. Last screen is it.
last log messages
Jul 7 19:41:27 server filelimits: Increasing file system limits succeeded Jul 7 19:42:25 server kernel: printk: 234 messages suppressed. Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed. Jul 7 19:49:42 server syslogd 1.4.1: restart. Jul 7 19:49:42 server syslog: syslogd startup succeeded
as you can see I rebooted from apc server. But before it
Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed.