can i activate the deletion command for 10 or 30 mins and then stop it? i think by this way we cant delete some files from the dir and not all the files so i can edit my files
i want to do this because my server doesnt respond to any file system command because my hardisk is full! so i need to remove some files by any way
but that didn't work and if i try rmdir c emp, it removed c: emp directory or maybe i'm not looking hard enough.
basically i want to copy a folder with many subdirectory under it, zip it up the folder and delete all the subfolder and the files in the subfolder but not the parent folder where it store all temp data.
i already got xcopy and zipping work but i can't seem to figure out how to remove all the folder inside the parent folder without deleting the parent folder.
Although running >> /usr/local/psa/bin/dns --info dev.sname.c002.aname.domain.com >> shows the 'ecz1' TXT record exists for "dev.sname.c002.aname.domain.com" : ... ecz1.dev.sname.c002.aname.domain.com. TXT ecz1
[Code] ....
The issue can be caused by extra spaces in the TXT record:
Code: [root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --add dev.sname.c002.aname.domain.com -txt 'ecz1 ' -domain ecz1 SUCCESS: Creation of DNS record in Domain 'dev.sname.c002.aname.domain.com' complete. [root@a10-52-143-28 ~]# /usr/local/psa/bin/dns --del dev.sname.c002.aname.domain.com -txt 'ecz1' -domain ecz1 Unable to del record in DNS server: unable to find DNS record
In the following example I have 3 such TXT records with 3, 5, 7 extra spaces and remove record with 3 spaces:
Code: [root@a10-52-143-28 ~]# mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e "select host, val, (length(val) - length(rtrim(val))) as extraspaces from dns_recs where host='ecz1.dev.sname.c002.aname.domain.com.' and val like 'ecz1%'" +---------------------------------------+-------------+-------------+ | host | val | extraspaces | +---------------------------------------+-------------+-------------+ | ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 5 | | ecz1.dev.sname.c002.aname.domain.com. | ecz1 | 3 |
Is there a command i can type into the ssh console to stop a current transfer that i started wit the wget command?
the file im wgeting always stuffs up at 51% but then the server just retries and starts again, its done it 3 times so far and i just want to completely cancle the process if possible....
i've created VPS with OpenVZ.And there is some problem i have access the vps and it's show some error
Code: VM creation has failed. Reason: Private area already exists in /vz/private/250 .At the moment i forgot my SSH details..only i know my hypervm "root" details..where i log with admin password.I need to fix this because some clients of my hosting company is waiting and my number of VPS is limited.
Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/sda1 * 1 57 457821 83 Linux /dev/sda2 58 15355 122881185 83 Linux /dev/sda3 15356 15616 2096482+ 82 Linux swap / Solaris /dev/sda4 15617 19457 30852832+ 8e Linux LVM
All the log is under a single file, occupying huge amount of space on our server use lxadmin for the vps
we are unable to even open up the file, as we have almost run out of space, we would atleast like to delete around old logs older than a month, this logs are from 3 months, so please help us in solving this problem
if we delete the sql log, will a new log be created automatically or it gives an error?
Question: Is it safe to delete the files in /var/log/mysql ? Also, is there some way I can disable logging so that this folder does not get filled up again?
Explanation:
Last night I started running a Perl script to process the data contained in some files, and then do a series of INSERTs to put them in a MySQL database. When I checked on it this morning, I found that it was very close to being done, but had locked up. I had trouble doing anything at all, actually, until I realized that 100% of the disk space on my hard drive had now been used. I went to investigate, and I quickly realized that my /var/log/mysql folder was over 120GB!
My intuition tells me that this folder is just used to store logs of what MySQL is doing. However, I have no need for these logs, and seeing as they are (unnecessarily) using over 120GB of my hard drive space, I would like to delete everything in that folder. But I'm still fairly new to Linux, and I'm not sure if this is safe. Can I just delete these files? And also, to prevent this from happening again, is there some way I can disable MySQL from creating such enormous log files?
I have a cronjob that is still entered in my server, but due to my own lack of knowledge i deleted the domain from my server without removing the cronjob and now i keep getting the emails from my server
Code: /bin/sh: line 1: /home/userID_Removed/public_html/cgi-bin/script-removed/cron.cgi: No such file or directory I just need to know how to remove the cronjob via SSH, i logged in as Root to my SSH and then did crontab -l and I see the two cronjobs I want to remove, but can't find the code to do so anywhere via Google.
There is 3 total that I want to remove but there is about 10 cronjobs setup there so i want to remove those three and make sure the other 7 stay running as they should.
i have update my.cnf with the following configuration and now i have a lor of customer that have lost him table, seem that this configuration have delete in random .Myi files, i would put this my.cnf also on others server but i would undestand which setting in this .cnf make problem for the table.
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock skip-locking skip-innodb #skip-networking safe-show-database query_cache_limit=1M query_cache_size=96M ## 32MB for every 1GB of RAM query_cache_type=1 max_user_connections=200 max_connections=500 interactive_timeout=10 wait_timeout=20 connect_timeout=20 thread_cache_size=128 key_buffer=384M ## 128MB for every 1GB of RAM join_buffer=1M max_connect_errors=20 max_allowed_packet=16M table_cache=1024 record_buffer=1M sort_buffer_size=3M ## 1MB for every 1GB of RAM read_buffer_size=3M ## 1MB for every 1GB of RAM read_rnd_buffer_size=3M ## 1MB for every 1GB of RAM thread_concurrency=2 ## Number of CPUs x 2 myisam_sort_buffer_size=64M server-id=1 log_slow_queries=/var/log/mysql-slow-queries.log long_query_time=2 collation-server=latin1_general_ci
im using fireftp and i chmod the folders to 777 but it seems that im still unable to delete the folders as i get the message 550 directory not empty etc.
I am currently transferring from a VPS to a dedicated server.
After you have made the transition, do you delete everything on your previous server? Or can I expect that everything be deleted anyway when my subscription runs out?
I bring this up because there sometimes is sensitive data stored there (ie. databases with personal info) and I'm wondering how much I should delete. Obviously I'll get rid of the DBs, but what about essential stuff like the operating system?
When i try to erase a domain from the Plesk it can't be erased and it gives the following error, i have read a lot of writings about this problem but i still didn't succeed. When at last i tried to erase it again it gave the following problem.
Error; Domains not delete : Problems occured while removing domains: Unable to turn the domain OFF: domainsmng failed : Execute usermng access off failed : Unable to get the user (kenthosting) home: (2221) The user name could not be found
In one folder, I have thousand of files, and I want to delete 100 specific files. Saying specific files, I mean all of them has a keyword. So, I can find out all of them by using grep "keyword" *
but dont know how to delete all of them. Not deleting one by one.
we've just moved to a new server and was wondering if there was any programs to secure erase all data on the hard drive on the old server (with centOS), as we don't want anyone else who get this harddrive to be able to recover any data.
I'm not that familiar with the file systems used by linux, so perhaps this isn't a problem. Just had to ask.
We use some DoD "approved" applications to remove sensitive data on NTFS partitions on our stationary computers, but couldn't find anything for *nix.
I'm having a problem with one of my users on my box. For some reason they cannot delete files or change permissions and sometimes while uploading, it says the server has reset.
I haven't had any issues myself but what could be causing this?