Check /var/tmp Is Mounted As A Filesystem
May 30, 2007I have WHM/cPanel server.
I am installed ConfigServer (Firewall)
On configserver it says " /var/tmp should either be symlinked to /tmp or mounted as a filesystem" how can i do this?
I have WHM/cPanel server.
I am installed ConfigServer (Firewall)
On configserver it says " /var/tmp should either be symlinked to /tmp or mounted as a filesystem" how can i do this?
i have a 32 GB hdd the results of df command are:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 32G 29G 715M 98% /
/dev/sda1 99M 14M 81M 15% /boot
tmpfs 1.5G 0 1.5G 0% /dev/shm
so there are 29GB used
but the du command shows only 19GB used:
du -hs /
19G /
where are the remaining 10GB from 19GB to 29GB?
I currently have a VPS. I have installed cPanel/WHM + CSF Firewall.
Everything is fine and all the ports are closed except for the ones I need.
I currently have some issues I need to fix, but google isn't helping
Quote:
Check /tmp is mounted as a filesystemWARNING/tmp should be mounted as a separate filesystem with the noexec,nosuid options set
I tried googling this and there was a cPanel script but I do not have permission to run it. So does anyone mind explaining it to me one step at a time?
Quote:
You should consider adding ini_set to the disable_functions in the PHP configuration as this setting allows PHP scripts to override global security and performance settings for PHP scripts. Adding ini_set can break PHP scripts and commenting out any use of ini_set in such scripts is advised
I have disabled this in php.ini but I do not know why it still says that I have to fix this
I have a server with pacificrack. When I see my website it says "Read-Only File system" and my SSH dies with read-only file system errors.
It happens once per month, and the bad thing is I'm sleeping when it happens so I don't know my server is in this state.
Even though support fixes the problem within 15minutes of my support ticket, my server is down for hours because I don't know its down to then raise a ticket. I asked support why it happens and they never tell me... just tell me to read the logs but I'm not technical enough to understand linux logs etc.
Server is centos.
Somehow the filesystem on my server turned read-only. The databases would not connect. When I rebooted the box it would not come up.
Support had to run FSCK. Even after, the databases had to be repaired using the CPanel tool. Things seem to be ok now, however:
1. What could have caused this to happen? Software or hardware failure?
2. I get these notifications, should I be worried?
WARNING: Kernel Errors Present
EXT3-fs error (device sda2): e...: 1 Time(s)
I found VPS at Virtuozzo logs that system turns locked and mounted and I believe the system becomes unresponsive at same time.
Here is the sequence of the status that can be found at VPS/status changes
RUNNING--->MOUNTED--->(LOCKED)-->(LOCKED, MOUNTED)-->
(LOCKED, RUNNING)-->(LOCKED)-RUNNING
Code:
VPS STATUS LOGS:
Aug 17, 2007 01:06:16 PM VPS is locked at the moment. It may take some time.(locked) VPS is up and running now.running
Aug 17, 2007 01:06:10 PM VPS is locked at the moment. It may take some time.(locked,mounted) VPS is locked at the moment. It may take some time.(locked,running)
Aug 17, 2007 01:06:04 PM VPS is mounted now. It is not running and some operations are not available.mounted VPS is locked at the moment. It may take some time.(locked)
Aug 17, 2007 01:05:49 PM VPS is up and running now.running VPS is mounted now. It is not running and some operations are not available.mounted
Aug 17, 2007 12:46:10 PM VPS is locked at the moment. It may take some time.(locked) VPS is up and running now.running
Aug 17, 2007 12:46:04 PM VPS is mounted now. It is not running and some operations are not available.mounted VPS is locked at the moment. It may take some time.(locked)
Aug 17, 2007 12:45:16 PM VPS is up and running now.running VPS is mounted now. It is not running and some operations are not available.mounted
Aug 17, 2007 09:37:13 AM VPS is starting up at the moment. It may take some time.(starting) VPS is up and running now.running
Aug 17, 2007 09:37:10 AM VPS is stopping now. It may take some time.(stopping) VPS is starting up at the moment. It may take some time.(starting)
Aug 17, 2007 09:36:52 AM VPS is up and running now.running VPS is stopping now. It may take some time.(stopping)
Aug 17, 2007 08:51:46 AM VPS is locked at the moment. It may take some time.(locked) VPS is up and running now.running
Aug 17, 2007 08:51:25 AM VPS is up and running now.running VPS is locked at the moment. It may take some time.(locked)
Aug 16, 2007 03:00:18 PM VPS is locked at the moment. It may take some time.(locked) VPS is up and running now.running
Aug 16, 2007 03:00:03 PM VPS is mounted now. It is not running and some operations are not available.mounted VPS is locked at the moment. It may take some time.(locked)
Aug 16, 2007 02:59:39 PM VPS is up and running now.running VPS is mounted now. It is not running and some operations are not available.mounted
Also I'm receiving emails with ftpd, exim, cpsrvd failed
when that happens:
Code:
ftpd failed @ Fri Aug 17 09:37:26 2007. A restart was attempted
automagically.
I mounted sda2 as var and its size is 2GB. I wanna to increase its size to 4GB,which command should i run without umount and mount it again?
View 2 Replies View RelatedWe're considering deploying a large server that will have 8x 500GB drives in a RAID-10 config. I intend to use a 3ware 9650SE w/ BBU along with A/B power to each of the PSU's.
My question is... since this will return into a 2TB array/partition, in event of a crash (kernel panic, etc -- I expect a power outage will be very, very rare if at all) what do you guys think the fsck time would be? In my experience a RAID BBU significantly drops it, sometimes to the point of no manual fsck required, but in event of a manual fsck shouldn't the BBU be able to provide more consistent data (less errors) and therefore a much shorter fsck? Maybe just recovering the journal?
I've got a problem with one of my servers, and i dont now how to do it. I need to find a technical service that I could hire for a job.
It's a small job. I've got one server that was compromised by D.O.S. atack and taken down by hosting company they did a clean instal fedora and cpanel and said that the data would be mounted on a old drive I need to restore the webs about 30 small sites
Would anyone suggest a person that could do that?
I have seen quite a few users stack all their desktops together in the datacentre racks instead of using rack mounted servers.
Actually between rack mounted servers and desktop servers (with the same motherboard and parts) which will be better in the racks and why?
I deleted my tmp folder and mounted a secure tmp file via fstab
e.g.
/path/to/tmp /tmp ext2 loop,noexec,nosuid,rw 0 0
the temp files are now written to a secure tmp file, however some processes still need that folder for example cpanel.
"Failed to create directory /tmp/cpanel.TMP.xxxxx"
Should I ignore that and similar error messages or what am I supposed to do?
I have a problem with my new server's setup. It's using a big RAID storage mounted to the main system. When it comes to shell everything is fine, I have access to the disk and files. Problems rise when I try to access the storage content from my php scripts (running on apache) - "Permission Denied" ...
Anyone knows where might be the problem?
I suppose it's because of using RAID but I'm sure it's doable.. somehow..
When I tried to use CLI mode it looks fine - PHP script can access RAID'ed folders when running like :
php /var/www/html/filetest.php
My hosting company is offering to sell me backup space which will be mounted as a network location. e.g. /usr/local/backup
My question is how would I use this since Plesk seems to be configured either to use an FTP location or to use the server repository. Would I have to change the location of the server repository to this network location? This doesn't seem ideal.
Plesk 11.5 on CentOs 6.4
I'm currently connecting one of my servers to an iSCSI SAN but would like to hook up another server to that target as well. However, this doesn't work with NTFS filesystem and I couldn't really find any windows solutions for that. Does anyone have experience with this?
View 5 Replies View RelatedMy /etc/fstab:
Code:
# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1 / ext3 defaults,usrquota 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs rw,noexec,nosuid,nodev 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/sdb1 /backups ext3 defaults 1 2
Code:
# /scripts/fixquotas
Installing Default Quota Databases...../aquota.user..../quota.user..../boot/aquota.user..../boot/quota.user..../backups/aquota.user..../backups/quota.user.....Done
Quotas are now on
Updating Quota Files......
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
....Done
AND
root@srv01 [/www/logs]# /scripts/initquotas
Quotas are now on
Updating Quota Files......
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
....Done
I am in the process of configuring my volumedrive dedicated server and would like some input on ideal settings for my filesystem.
I'd appreciate suggestions and explanations of what they options do.
Here is my system info:
Linux volumedrive.com 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 5 (Final)
AMD Sempron64 3000+
1GB RAM
HDD:
Location: SCSI device B
Cylinders: 60801
Size: 465.76 GB
Model: ATA ST3500320AS
Seagate Barracuda 7200.11 ST3500320AS 500GB 7200 RPM
32MB Cache SATA 3.0Gb/s Hard Drive
Parameters I can change:
EXT 3 File System Configuration Options:
Block size
Fragment size
Bytes per inode
Reserved blocks
Journal file size
Edit IDE Parameters
Transfer mode: Default mode / Disable IORDY / PIO mode 1,2,3,4 / Multimode DMA 0,1,2 / Ultra DMA 0,1,2
Using DMA: On/Off
Sector count: 256
Read-lookahead: On/Off
Write caching: On/Off
Interrupt unmask: On/Off
Keep settings over reset: On/Off
Keep features over reset: On/Off
Read only: On/Off
Reprogram best PIO: On/Off
Standby timeout: 0
32-bit I/O support: Disable / Enable / Enable with special sync sequence
Sector count for multiple sector I/O: Disable 2 4 8 16 32
i had to do a file system back up because of the size of my database.
i shutdown postmaster and tar'd the files.
i recently reloaded my OS and now i'm attempting to restore the backups. i first shut down postmaster, restored the backups to the data folder and restarted postmaster.
i then su'd from root to postgres user:
Code:
[postgres@austin1 pgsql]$ psql service_2_3
psql: FATAL: database "service_2_3" does not exist
DETAIL: The database subdirectory "base/16385" is missing.
the backups had a database named service_2_3 but upon restoring the backups, it doesn't seem to be available.
my data directory is /var/pgsql/data.
Code:
[postgres@austin1 pgsql]$ ls -lahR /var/pgsql/ | grep 16385
but that yielded nothing.
have i done something wrong while backing up? i don't think i have since i followed the postgres manual when backing up. but the administrators have not been very thorough with how they've set the system up for me.
how i can resolve this issue if you have the time.
Code:
Installing package webmin-1.350-1 needs 1 inodes on the / filesystem
Hmm, this is the first time I've encountered this error when installing Webmin and I have no idea what it means. My other servers doesnn't output this error.
What does it means by it needs 1 inodes on the filesystem?
Does writing large files (ie, 10GB backups in one archive) cause any risk of damaging a linux filesystem?
View 1 Replies View RelatedSo I have a script running on my apache that catalogs pictures and clips. All the actual video files are located on a separate drive which is mounted in to a folder in my site. I've set apache as the owner and have the correct permissions on the mounted folder but I'm getting Forbidden errors accessing files even when on html file in the mounted folder.
I know it's a permissions issue at the disk or mounting level. The way I mount is by using this command:
mount -t ext4 /dev/sdc /var/www/html/media
my cpanel doesn't get backups. When I force it, it gives me this error:
mount: can't find /backup in /etc/fstab or /etc/mtab
mount: can't find /backup in /etc/fstab or /etc/mtab
[cpbackup] Backup failed! /bekkaplars is not mounted! at /scripts/cpbackup line 415.
It's a vps. Another interesting thing is, my other 3 vpses run good even /etc/fstab has no line like /backup in there, also.
I would like to know how to check load via ssh and check files causing load?
I want the ssh codes for 2 different set of control panels, one with cpanel+whm and other with kloxo+hypervm
and I would also know how to check the files causing the load, such as some files could have been interrupted while processing, so they could be causing load some times, so I want to stop such processes if any are running on the vps on my friends accounts
i recently purchased a VPS from internetvps.com, but im not sure what OS of linux it is. How can you check the OS of the server?
View 10 Replies View RelatedLet's say I have a VPS with 512 MBs of RAM.
How do I check in shell that this is indeed the case?
I read in some places that "top" and "free -m" and such can help.
But these gave me way more than 512.
Here is the output from my "free -m". Total shows here 3886 MBs of MEM??? That is almost 4 Gigs. Please someone explain this.
total used free shared buffers cached
Mem: 3886 3721 164 0 17 542
-/+ buffers/cache: 3161 724
Swap: 6142 2020 4121
Quote:
Nobody Check 1.0.3 Current on cPanel
Tue Mar 20 16:00:02 SGT 2007 on blue.mydomain.com
Server Load: 16:00:02 up 21 days, 14:02, 0 users, load average: 2.73, 2.20, 2.08
Warning: Malicious Nobody Process Found
=========================================
Options: kill bad proc=1 logging lvl=1
SCAN SUMMARY
========================================
Clean Processes: 57
DETECTED Malicious Processes: 1
DETECTION DETAILS
========================================
DETECTION: Process 4221 with name php and path /usr/bin/php
Process ID: 4221 has been killed
Restuls for PID: 4221
total 0
dr-xr-xr-x 3 easyzz easyzz 0 Mar 20 16:00 .
dr-xr-xr-x 291 root root 0 Feb 27 10:01 ..
dr-xr-xr-x 2 easyzz easyzz 0 Mar 20 16:00 attr
-r-------- 1 easyzz easyzz 0 Mar 20 16:00 auxv
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 cmdline
lrwxrwxrwx 1 easyzz easyzz 0 Mar 20 16:00 cwd -> /home/easyzz/public_html
-r-------- 1 easyzz easyzz 0 Mar 20 16:00 environ
lrwxrwxrwx 1 easyzz easyzz 0 Mar 20 16:00 exe -> /usr/bin/php
dr-x------ 2 easyzz easyzz 0 Mar 20 16:00 fd
-rw-r--r-- 1 easyzz easyzz 0 Mar 20 16:00 loginuid
-r-------- 1 easyzz easyzz 0 Mar 20 16:00 maps
-rw------- 1 easyzz easyzz 0 Mar 20 16:00 mem
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 mounts
lrwxrwxrwx 1 easyzz easyzz 0 Mar 20 16:00 root -> /
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 stat
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 statm
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 status
dr-xr-xr-x 3 easyzz easyzz 0 Mar 20 16:00 task
-r--r--r-- 1 easyzz easyzz 0 Mar 20 16:00 wchan
Netstat:
Environ:
Hello, I got this notification from the 'Nobody Check'.
Is there anything I need to be aware of? ..
confirm this is only 1gig of ram?
Mem: 1034096 985128 48968 0 157944 559136
-/+ buffers/cache: 268048 766048
Swap: 2040212 160 2040052
Total: 3074308 985288 2089020
I'm running CSF on a Cpanel server and have questions about new features in CSF
Apache Check
Check Apache weak SSL/TLS Ciphers (SSLCipherSuite)
Results
Cipher list []. Due to weaknesses in the SSLv2 cipher you should disable SSLv2 in WHM > Apache Configuration > Global Configuration > SSLCipherSuite > Add -SSLv2 to SSLCipherSuite and/or remove +SSLv2. Do not forget to Save AND then Rebuild Configuration and Restart Apache, otherwise the changes will not take effect in httpd.conf
Can someone explain this in laymen terms? I know this is new in Cpanel. I'm already running Apache 2.2, PHP 5.2.9 with suPHP enabled and mod_security as well (these rules: [url]
Also, what exactly are these CSF checks?
Check csf PT_SKIP_HTTP option
This option disables checking of processes running under apache and can limit false-positives but may then miss running exploits
Check csf SAFECHAINUPDATE option
This option closes a window of opportunity that opens when dynamic chain updates occur
how to check using SSH if the HD is SSD drive in a linux box?
View 1 Replies View RelatedHow can we be sure that we are facing ddos attacks any good command which will make me 100 percent sure that there is ddos attacks on server ?
View 12 Replies View RelatedIs it possible to run a hardware check on my VPS?
For instance DFT (Drive Fitness Test) or Memtest?
I'm running HyperVM and WHM.