Tag Info

New answers tagged

0

There is a nice tool to manage the send/recv stuff, and integrate a progress bar it is in the freebsd ports tree under sysutils/zxfer or on github You can also use a tool like sysutils/zfstools or sysutils/zfsnap to automate the creation of the snapshots, that will be synchronized to the remote machine via zxfer There is more documentation on the zfs ...


1

So, I've figured it out, through watching the file sizes in /var/lib/mysql/<mydb>/a*, where the index file(.MYI) had a significant and growing file size. DISABLE KEYS only disables non-unique keys in general, and leaves primary keys active in particular. Basically, the 125M-row INSERT INTO cased 125M index insertions on a joint PRIMARY KEY which ...


-1

On most devices, /proc/net/dev is read from hardware counters. Others stats are updated from the network stack in the device structures. Drops are the more likely not to match as they can be made by the hardware: packet mac destination is neither device's nor multicast, and the device is not in promiscuous: hardware directly drops the packet, the stack will ...


1

The correct fix is to update your SSL certificates. sudo yum upgrade ca-certificates --disablerepo=epel You need to disable the epel repo so that this command will succeed. After you update your certificates you can use yum normally as EPEL will work again.


-1

shot in the dark,depends on the environment. If running OES or better with NSS: If you can get IT to turn on CIFS for the NSS volume the share lives on, you can eliminate NCPmount and just connect using SMB. Works the same from an end user standpoint, but you lose access for the NCP functions like Salvage/Purge, your shares will be available and if you ...


0

There is a native tool implemented - rhnsd. It does the same - performs "rhn_check" every 240 mins. or whatever is set in /etc/sysconfig/rhn/rhnsd


-1

You can upload all you backups to an FTP server using the cpanel backup wizards. This option is available on both cpanel and WHM.


1

This is indeed a common use case when one has more than one network cnnection, e.g. an internet connection (for the generic traffic) and a vpn connection (just for traffic to a company or remote site). This is a valid example for the question of the OP. I know no operating system (excluding OSX as I've learned above) which can handle this problem from ...


1

I would use incremental ZFS send/receive. It should be more efficient than rsync as ZFS knows what has been changed since the previous snapshot without needing to explore the whole file system. Assuming you want to fully backup a file system namen datapool/fs. You first create a pool to store your backup on the destination server and a recursive snapshot ...


1

Default NFS service do not support proxy so i suggest you to use ganesha which i belive solve your problem https://github.com/nfs-ganesha/nfs-ganesha/wiki/PROXY


0

I've tried everything, but only this seems to work: put the ks.cfg inside the initrd. So the steps below extract initrd, add the ks.cfg in there, and recreate it. Tested with CentOS7 First mount the original .iso image on your pc, and copy its contents under tmp/ Then, #Keep the original file cp -ai tmp/isolinux/initrd.img initrd.img.orig mkdir irmod cd ...


0

You can also pipe the send/receive into e.g. bzip2 and rsync it. As this blog post notes, the slave must have "readonly" set.


0

SAP OSS was also looking into the issue. Today i got the reply from them. My observation was correct. Java was not the culprit. ABAP stack was facing some issue and not releasing memory. After restarting ABAP work process, memory got released at OS level. But i would also like to get an understanding on the highlighted portion of the question, like whether ...


1

Instead of overriding local_transport with your hookpickup, you can setup transport_maps. #main.cf transport_maps = hash:/etc/postfix/mytransport #/etc/postfix/mytransport extract@localhost hookpickup: In this mode, just email send out to extract@localhost will be delivered to hookpickup


3

ZFS is very resilient. The most basic example of shipping a file system would be: # zfs snapshot tank/test@tuesday # zfs send tank/test@tuesday | ssh user@server.example.com "zfs receive pool/test" Note the snapshot prior to the send (and sending the snapshot). You could wrap that up into a script to delete the local snapshot after you've sent it to the ...


1

This should do (note that this is untested): #!/bin/bash BASE_DIR="/var/www/testing" NEW_BASE_DIR="/var/www/testing/old" FILE_EXTENSIONS_TO_MOVE="zip" # If the new directory doesn't exist, create it if [ ! -d ${NEW_BASE_DIR} ] ; then echo "Creating ${NEW_BASE_DIR}" mkdir ${NEW_BASE_DIR} fi echo "Moving files with extension .${FILE_EXTENSION} in ...


1

Try below wget options if you have special character in username. --user='username' --password='myPassword' OR --ftp-user='myname@gmail.com' --ftp-password='password' Your wget command will be as below wget -r --user='myname@gmail.com' --password='password' ftp://ip.of.old.host OR wget -r --ftp-user='myname@gmail.com' --ftp-password='password' ...


5

It looks to me like your datadir is in a file system of its own. Ext file systems, like most FSes under Unix, have at their root a directory called lost+found. It exists in order to allow files that become detached (that is, they have content, but no associated directory entry) to be reattached somewhere when an inconsistent file system is fscked (see, eg, ...


0

I don't know of any other program that shows network traffic by process, as nethogs does. I guess your best option would be to edit the nethogs source. Find and increase the constant that determines how long it shows idle processes, then rebuild nethogs.


0

I found a solution, although I don't really understand it yet. I'm using REDIRECT instead of DNAT, and what do you know, it works like a charm! The only thing I could come up with, is the fact that in my DNAT rule I kept my actual IP address to which I want to redirect, whilst REDIRECT actually just reroutes to 127.0.0.1. Kind regards, Xabre


1

That's by desigm (assuming you're changing the time by a significant amount). See the ntpd nan page ... -g Normally, ntpd exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can ...


-4

ls | grep '' As simple as that, works for me!


1

Sounds like you are missing the MIB files that do the translation. To install them run: apt-get install snmp-mibs-downloader For licensing reasons they arent included by default. Installing that package will go download the standard ones from the internet. For specific manufactuer's custom SNMP values you will need to find their .mib files from the ...


5

The easiest way to solve this problem is to run CentOS or Fedora, rather than RHEL. Anything along the lines of walking the filesystem using sed is the path of madness.


1

AllowOverride is set to None by default, Must be changed to All <Directory /> AllowOverride All </Directory>


1

I had a similar issue, I created a new sources.list file which held only the sources I wanted Apticron to work with And then I changed the Apticron code so it will use the file I created. sudo grep "-security" /etc/apt/sources.list | sudo grep -v "#" > /etc/apt/security.sources.list Above command will create a new sources list specifically for ...


0

please read this article I wrote with about How to install DBD::Oracle. It contains all the steps required to install DBD::Oracle CPAN module, which is not a straightforward installation. The purpose is to reduce headache and turn it into a repeatable process. Hope it can help, and also let me contribute back to the great Perl community.


0

@psusi and @Halfgaar Hypervisor : virsh attach-disk my_VM /dev/vgdata/disk10 vdc on my VM : ls -la /dev/vd* brw-rw---- 1 root disk 252, 0 Dec 22 11:22 /dev/vda brw-rw---- 1 root disk 252, 1 Dec 22 11:22 /dev/vda1 brw-rw---- 1 root disk 252, 2 Dec 22 11:22 /dev/vda2 brw-rw---- 1 root disk 252, 16 Dec 22 11:22 /dev/vdb brw-rw---- 1 root disk 252, 32 ...


0

If inotify can't do it itself, you can always do something like find . -type d -name ".spam" -execute inotify [options] \{} \;


2

You are almost certainly running into mis-matched DNS entries. In your case using IPv6 transport, the AAAA and PTR records must match for the source address(es) of an MTA, also matching the EHLO name you are claiming to be.


2

Your guest is using lvm so you need ot mount the logical volume, not the physical volume. Make sure vgchange -ay activates it and the logical volumes should appear in /dev/mapper.


13

Do not attempt to do this with .profile because it provides no security whatsoever and restricts exactly nothing! It doesn't matter what you put in .profile, since you can bypass it by simply giving a command to run on the ssh command line, like this: ssh user@host command. You can still get normal shell access by doing ssh -t user@host bash. Disabling the ...


1

In addition to my request for more information: Whether you have a virtual disk on a logical volume or a file, the following will work. You can do fdisk -lu <diskimage> and see the partition table. Then you can see the offset at which your partition begins (except if it's GPT...). Then use losetup -d /dev/loop0 -o 512 * <startsector> ...


3

On my RHEL6 and CentOS6 that is established by creating a symbolic link to VM XML description in /etc/libvirt/qemu/autostart/ : ls -la /etc/libvirt/qemu/autostart/ total 4 drwxr-xr-x. 2 root root 4096 Dec 19 2012 . drwx------. 4 root root 4096 Dec 21 08:50 .. lrwxrwxrwx. 1 root root 29 Mar 3 2012 hosting2.xml -> ../hosting2.xml lrwxrwxrwx. 1 root ...


4

You're looking for Out-Of-Band Management. The best solution is to use purpose-built equipment with the feature set and qualities that you need. There's no shortcut here. It would be nice to know why you're requesting this functionality and what the core issue is. If you have machines that aren't intended to be remotely managed, but have a need to support ...


4

Buy computers with Intel vPro built into the chipset or ship them to your end users with KVMoIP cards.


2

Linux provides a number of tools for flexible routing selection. Single routing table In the simplest case, there is just one kernel routing table and no routes with the SRC attribute. This table contains a number of routes, which were placed there manually (ip route add), by the DHCP daemon, or by routing daemons. In this case, the kernel chooses: the ...


2

There are some possible solutions for this: You can go for a replicated block storage like DRBD (or MARS as mentioned above), but you need to setup a cluster file system on top of the block storage. Such file systems could be GFS2 or OCFS2 which are both available in the Debian kernel afaik. DRBD can handle primary/primary and you can mount it on both ...


0

This is an old question, but we faced the same issues (High IO waits, and terrible insert / update speeds) the past week on a new dedicated server and this solution addresses this issue directly. Disabling journaling with tune2fs -O "^has_journal" /dev/<drive> was the quickest solution as it eliminates the IO wait because of the JDB2 process. But this ...


0

I like to suggest exec the following commands to clear your network stuff: Clear the ipsec transform sets ip xfrm policy flush ip xfrm state flush Clear the IP addresses from the unused gre Tunnel: ip address flush dev gre0 This should remove the unwanted parts from your running network config. Make sure to remove the stuff also from your distros ...


0

Finally I identified the issue. The mirror which is contacted by my machine is not containing the files requested. So changing the base URL/Mirror list in the repository configuration is solved the issue.


-3

There are many factors contribute to the high %sys usage such as Logon, system call, context switch(both thread and procedure),IO and even sockets data copying from kernel mode to user mode. I suggest you can use sar, vmstat and iostat to check these out. Further more, it would be nice to find out which process caused the high %sys usage when spike. gdb ...


26

As others have mentioned, disabling sftp isn't anywhere near sufficient - a user with unrestricted ssh access can view any file that their account has permissions to view, can modify anything they have permission to modify, and can easily download anything they can read to their own machine. The only way to stop them from doing this is to actually restrict ...


0

This is a loaded question. There are two ways to go about what you want. Sysprep and image - This means creating a generalized version of the OS and then using it to create a bunch of new VMs. This is advantageous when you want the ability to clone (but grant new usernames and password, computer names, etc to) the VMs. This also allows the VMs to co-exist ...


0

Node data is stored in the Chef server database in a format that isn't trivial to extract. If your Chef Server is still functional then you can simply run knife download nodes/NODENAME.json for a particular node or simply knife download nodes to download all of your nodes data to a nodes directory. If your Chef server is no longer functioning properly then ...


3

Turns out I was misunderstand the mail command. It mails the log that is about to be deleted. I wanted the log that was just rotated, so I had to add the "mailfirst" directive to my configuration file.


1

Yes, there is. Using a tap device causes context switches between the client process and the process that holds the tap device. It also causes additional copies, as data needs to be copied from the client process into the kernel, and then from the kernel into the tap holder. However, Linux is pretty good at context switching, and in-cache copies are ...


17

Edit: In case it's not obvious, the following answer isn't intended as a secure method of prefenting SFTP from being used by anyone with shell access to the server. It's just an answer that explains how to disable it from external visibility. For a discussion about security, see answers from @cpast and @Aleksi Torhamo. If security is your focus, this answer ...


-4

Erm..... First hit from google (search string mx record lookup) was: http://mxtoolbox.com/ For those who have never used it, it has a history button to show previous mx records for a given domain.


2

You need to use the same MySQL configuration on the Linux system as you used on the Mac. The error message in your question comes because InnoDB log file settings are different in your Linux.



Top 50 recent answers are included