Setup NIS + Red Hat + CentOS + Linux

The following describes a procedure to set up NIS network name service under Red Hat Linux. This is geared toward a small intallation with only one domain. However, it should be fairly evident how to add more NIS domains. The NIS domain name has nothing to do with any DNS naming convention being used. In ...

The real osama bin laden dead photo

ZFS + List all snapshots

zfs list -t snapshot Example Output: nas1# zfs list -t snapshot NAME USED AVAIL REFER MOUNTPOINT nfs/datastore@rep-init-20110113013713 18K – 21K – nfs/datastore@rep20110113013825 311M – 311M – nfs/datastore@rep20110113015314 0 – 68K –

ZFS NFS Export

Activate NFS on the pool: zfs set sharenfs=on Now restrict access by IP range: zfs sharenfs=”-maproot=root -alldirs -network 10.10.40.0 -mask 255.255.255.0″ Verify using showmount: nas1# showmount -e Exports list on localhost: /nfs/datastore 10.10.40.0 /nfs 10.10.40.0

FreeBSD LAGG / LACP Uneven Distribution

If you have setup LAGG on FreeBSD and are noting that one NIC is getting all of the traffic. Switch to roundrobin and check results. The primary (“MASTER”) NIC will always receive the incoming traffic. With roundrobin all of the traffic will exit all NICs assigned to the LAGG.

FreeBSD + HAST + CARP + NFS

FreeBSD recently introduced a disk replication setup: HAST. This is FreeBSD’s answer to DRDB for Linux. Some very good blog posts, with scripting, can be found here: FreeBSD + HAST + CARP + NFS HAST with ZFS My issues with HAST are its feeling of instability and the addition of numerous points of failure… sloppy ...

VMWare convert thick to thin disk

If you have VMware vCenter – Click Migrate For those of us who do not have VMware vCenter: 1. Shutdown the VM 2. SSH to the ESXi machine and type: vmkfstools -i /vmfs/volumes/datastore1/NAME-OF-VM/NAME-OF-VM.vmdk /vmfs/volumes/datastore1/NAME-OF-VM/NAME-OF-VM-thin.vmdk -d ‘thin’ -a lsilogic Once the copy is done, go into the settings of your VM, delete the hard disk, and ...

unable to access file unspecified filename since it is locked

ESXi / ESX / VSphere / VMWare Something is locking your VM and preventing it from starting. Solution: Snapshot the VM Snapshot unlocks the VM. Now the VM will start normally.

Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings.

Fantastico is not installed at the default location /usr/local/cpanel/3rdparty/fantastico. Either move the Fantastico directory from it’s current location to /usr/local/cpanel/3rdparty/fantastico OR enable ioncube loaders in WHM -> Tweak settings. Run this command: /scripts/makecpphp

ssh: Illegal -o parameter “PermitLocalCommand no”

Your box has been hacked. Refer to my previous post: HERE You need to reinstall the SSH client: yum reinstall openssh-clients