Linux
My problem is that I wanted to filter access on a raid array instead of doing it on the switch. I could login to the switch and figure out the linux hba's wwn (world-wide-name), but I thought there must be a way to get it from the linux machine directly.
Here's the steps
- determine the hba's scsi bus number, set VENDOR to the vendor of your fibre channel array
[root@host ~] grep -B1 "Vendor: $VENDOR" /proc/scsi/scsi |grep Host |head Host: scsi3 Channel: 00 Id: 00 Lun: 00 Host: scsi3 Channel: 00 Id: 00 Lun: 01 Host: scsi3 Channel: 00 Id:…
I had a problem with a filesystem that was full on a vm. The vm's hard drive is just a lun on a fibre channel. So I resized the lun on the raid controller. The devices (/dev/sdx) for the drive noticed the new size after I did the usual scan and partprobe, but the multipath device didn't see the new size and was working off the old size. After some digging I found this page on how to get multipathd to notice the new size. I'll summarise here.
Assuming our hard drive in question is called vm1…
While attempting to monitor traffic on a qlogic Sanbox 5602 I noticed that the traffic (connUnitPortStatCountTxObjects) was being returned as a hexadecimal value with spaces in it (e.g. Hex-STRING: 00 00 00 00 01 4F E1 1B). Zabbix was complaining about an invalid type of returned data because of the spaces. I wrote the following simple patch to remove the spaces (I know it could be done simpler but I just needed a quick fix).
diff -up zabbix-1.8.1/src/libs/zbxcommon/misc.c.spaces zabbix-1.8.1/src/libs/zbxcommon/misc.c
--- zabbix-1.8.1/src/libs/zbxcommon/misc.c…
We often need to keep two directories on different machines synchronised. We would like the rsync to be secure and to only allow the rsync, no shell access. This method uses ssh keys with commands in authorized_keys.
Scenario I
Backup directory /mnt/one from server pris to client directory /home/user/two on client deckard by initiating the the copy from the client deckard. (i.e. send files from the server to the client)
- create ssh keys using ssh-keygen
[user@deckard ~]$ cd .ssh [user@deckard .ssh…
We had a problem where new clients couldn't get their keys signed properly by the puppetmaster. Both the client and the server were in perfect sync with our ntp server. date on both machines returned the expected results. We are running mongrel so I went down the wrong path of thinking apache was to blame for the time problem. It wasn't until I started going through the certificate_factory stuff that I found the problem.
We'd errors on the certs like this:
[root@puppet ~]# cd /var/lib/puppet/ssl
[root@puppet ssl]# openssl verify
> -CAfile ./certs/ca.pem…
using fedora-ds/redhat-ds it creates cert8.db and key3.db to store the certs. I wanted to extract the private key as PEM so I could import it elsewhere.
[root@ldap] cd /etc/dirsrv/slapd-ldap
[root@ldap] pk12util -o cert.p12 -n 'server-cert' -d .
Enter Password or Pin for "NSS Certificate DB":
Enter password for PKCS12 file:
Re-enter password:
pk12util: PKCS12 EXPORT SUCCESSFUL
[root@ldap] openssl pkcs12 -in cert.p12 -out cert.pem -nodes -clcerts
Enter Import Password:
MAC verified OK
[root@ldap] cat cert.pem
Bag Attributes
friendlyName: server-cert…
Was getting this error on our puppetmaster that only had a few clients.
Turns out it's just an error from mysql being passed down the line. We share our mysql for puppet with multiple servers. Restarting mysql saved the day...
Read http://dev.mysql.com/doc/refman/5.1/en/too-many-connections.html for instructions on increasing the limit...
mysql> show variables like 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
|…
We had a machine that would keep coming up with devXXXXX where XXXXX is a seemingly random number.
We tried ifrename to no avail, modprobe -r didn't help, modules.conf didn't help. It turned out that the HWADDR line in the ifcfg-ethX file was wrong. After fixing the line we were able to do ifup ethX and the devXXXXX went away.
This is my first android phone, so I thought I'd share my experience of rooting the phone.
All credit to Zinx Verituse over on Alldroid.org
Note: I just updated to the update released December 10th for the droid and was able to reapply the update.zip.
The instructions are here
- Download this file and rename it update.zip on the sdcard.
- turn off the phone
- turn on the phone holding down the x key on the keyboard
- When you see the…
After upgrading to 0.25, the following error occurs:
Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target ''This turned out to be because of recipes using exec without naming the exec. Example
exec { "cat /that/file":
unless => "something",
path => "/bin",
refreshonly => false
}
should be rewritten as
exec { "cat that file":
command => "cat /that/…