Archive for the ‘Uncategorized’ Category

OpenFiler 2.3, configuring a single SAN after the install

Monday, April 26th, 2010

The default login is username: openfiler, password: password

Services tab

Enable LDAP
Enable SMB/CIFS if you want sharing with Windows machines.

If you are looking for other services you should already be familiar with them (NFS or iSCSI).
One the right, Services section, click “SMB/CIFS Setup”
All of the default settings should be sufficient. Click Apply.

Accounts tab

(default) On the right, Accounts section, click “Authentication”

check “Use LDAP”
Local LDAP server: check “Use Local LDAP Server”
LDAP Security: (default) uncheck “Use TLS” (I would rather use TLS, but it is local and I got an error with it enabled)
Server: 127.0.0.1 (default)
Base DN: dc=san,dc=revantine,dc=net
Root bind DN: cn=Manager,dc=san,dc=revantine,dc=net
Root Password: (write it down somewhere)
SMB LDAP Configuration: check “Login SMB server to root DN”
User password policy: check “Allow users to set password:
Click submit.

IMPORTANT: When you submit here, it initializes the local LDAP. If you do it again later it could potentially erase changes you have made.

Click the sub-tab “Expert View”, scroll to “UID/GID Synchronization” and check “Synchronize UID/GID information to LDAP”.

You need to restart ldap. Go to the Services tab and out beside LDAP server click “Disable” wait for the refresh and click “Enable”.

On the right, Accounts section, click “Admin Password”

The default password is “password”
Type a new one (and again to confirm it) and click Submit.

On the right, Accounts section, click “Administration”

Since the cached password just changed, you need to login again.

Group Administration sub-tab, Add new group,
Group Name: Users
Override automatic GID, uncheck (default)
Click “Add Group”

User Administration sub-tab, Add new user,
Username: charles
Password: asdfgh
Retype the password
Primary Group: “500: Users”
Override automatic UID, uncheck (default)
Click “Add User”

System tab

On the right, System section, click “Network Setup”

Scroll down to “Network Access Configuration”
We are going to add networks to permit access to

Delete Name Network/Host Netmask Type
LAN 192.168.0.0 255.255.255.0 Share

Click “Update”
Scroll down to “Network Access Configuration”

Delete Name Network/Host Netmask Type
LAN 192.168.0.0 255.255.255.0 Share
VPN 192.168.1.0 255.255.255.0 Share

Click “Update”

Volumes tab

This walk through is tailored to systems using software raid. The software raid is preferable to fakeraid (if it is on a motherboard or you paid less than $150 it is probably fakeraid) and hardware raid is expensive.

On the right, Volumes section, click “Block Devices”

/dev/sda may be your system drive, if so choose /dev/sdb and continue. You can tell this by looking at the “Partitions” column and your data drives should have 0 partitions.
Edit Disk column, Click /dev/sda,
scroll to the bottom,
Mode: Primary (default)
Partition Type: RAID array member
Leave these default, Starting cylinder, Ending cylinder, Size
Click Create

You are taken to an “Edit partitions” page, click the link “Back to the list of physical storage devices”.
Edit Disk column, Click /dev/sdb
…And repeat for each storage drive…

On the right, Volumes section, click “Software RAID”

Select RAID array type, “RAID-5 (parity)”
Check mark all the devices that you just made “RAID array member” partitions on, /dev/sda1, sdb1, sdc1…
Click “Add array”

It will report back that the State is “Clean & degraded” and Synchronization is “Not started”.

There is a bug in 2.3 that prevents the Physical Volume creation from detecting software raid volumes (/dev/md0).
You can work around the issue by using ssh, login as root and run the commands below.

[root@lumpy ~]# pvcreate /dev/md0
  Physical volume "/dev/md0" successfully created
[root@lumpy ~]# pvscan
  PV /dev/md0                      lvm2 [2.73 TB]
  Total: 1 [2.73 TB] / in use: 0 [0   ] / in no VG: 1 [2.73 TB]
[root@lumpy ~]# vgcreate store /dev/md0

Volumes tab

On the right, Volumes section, click “Add Volume”

Scroll down,
Volume Name: a
Volume Description:
Required Space (MB): 514702
Filesystem / Volume type: Ext3

Shares tab

Network Shares, click the “a” (/mnt/store/a)
Folder Name: photographs
Click “Create Sub-folder”

Click the “photographs” (/mnt/store/a/photographs/)
Click “Make Share”

Edit share /mnt/store/a/photographs/
Share Access Control Mode:
select “Controlled access”
Scroll to “Group access configuration”

GID Group Name Type PG NO RO RW
500 Users LDAP * *

Click “Update”
Scroll to “Host access configuration (/mnt/store/a/photographs/)”
I have two networks that I configured earlier, LAN and VPN. I want both to be able to read and write.
In the SMB/CIFS column, check “Restart services”
LAN 192.168.0.0 put the dot under RW
VPN 192.168.1.0 put the dot under RW
Click “Update”

embedded Debian – adding busybox

Monday, February 2nd, 2009

I decided to migrate to busybox on my embedded Debian to save a some space. You can either do this on the running system or you can do it while building it in the chroot environment.

apt-get install busybox
cd ~/
vi setuplinks.sh

#!/bin/bash
which busybox &>/dev/null
if [ $? != 0 ]
then

echo "Busybox is not present in the working path."
exit 1
fi
oIFS=$IFS
IFS=" ,
"
export BB=`which busybox`
for i in `cat busycmds`
do
if [ $i == "busybox" ]
then
continue
fi
which $i &>/dev/null
if [ $? == 0 ]
then
ln -f $BB `which $i`
ls -i `which $i`
else
ln $BB /usr/bin/$i
echo make $i
fi
done
IFS=$oIFS

vi busycmds

[, [[, adjtimex, ar, arping, ash, awk, basename, bunzip2,
bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp,
cp, cpio, cut, date, dc, dd, deallocvt, df, dirname, dmesg, dos2unix,
du, dumpkmap, dumpleases, echo, egrep, env, expr, false, fgrep,
find, fold, free, ftpget, ftpput, getopt, grep, gunzip, gzip,
head, hexdump, hostid, hostname, httpd, id, ifconfig, ip, ipaddr,
ipcalc, iplink, iproute, iptunnel, kill, killall, klogd, last,
length, ln, loadfont, loadkmap, logger, login, logname, logread,
losetup, ls, md5sum, mkdir, mkfifo, mknod, mktemp, more, mount,
mt, mv, nameif, nc, netstat, nslookup, od, openvt, patch, pidof,
ping, ping6, printf, ps, pwd, rdate, readlink, realpath, renice,
reset, rm, rmdir, route, rpm, rpm2cpio, run-parts, sed, setkeycodes,
sh, sha1sum, sleep, sort, start-stop-daemon, strings, stty, swapoff,
swapon, sync, syslogd, tail, tar, tee, telnet, telnetd, test,
tftp, time, top, touch, tr, traceroute, true, tty, udhcpc, udhcpd,
umount, uname, uncompress, uniq, unix2dos, unzip, uptime, usleep,
uudecode, uuencode, vi, watch, watchdog, wc, wget, which, who,
whoami, xargs, yes, zcat

Then:
sh ~/setuplinks.sh

Portrait Workshop

Wednesday, August 6th, 2008

The portrait workshop was a great success. We had 20 people with a mix of photographers and models and got some great photos. You can see pictures at http://www.mckinnisphotography.com/p101656003

If you missed this free opportunity to play with studio lighting and portrait, I encourage you to sign up for the mailing list so you can find out when we have another photo opportunity! http://www.zoegames.com/lists/?p=subscribe&id=2

Lights out

Saturday, June 7th, 2008

We lost power while we were out on Thursday and did not get power again until about noon on Saturday. The spare box I built the router in was not setup in bios to power on after a power outage and the xen box (owl) did not come back up.

The biggest problem on owl was a combination of selinux and a xen bug, so I upgraded the kernel and moved the virtual machines to /var/lib/xen/images where selinux thinks they should exist. I did create a soft link to /xen so the configs would work. On an up note, the VMs now start on boot correctly which had been a problem.

My brother was caring for our dog while we traveled last week. Oreo was on a chain with a clasp and someone stole her while my parents were out and my brother was sleeping. Now I have two crying girls – my wife and daughter – and my 2 year old son doesn’t understand that she is gone and not coming back.

If you care to read the extended version of my upgrade and relinking it is in the “More…”

 (more...)

Get your Amateur Radio License with this free audio podcast

Sunday, January 27th, 2008

There are great audio podcasts that instruct the Technician and General material, and coming this summer, Extra! I already have tech level and the general is about 6 hours of audio. Don’t have a license? Start with tech class. They have CDs available in addition to the free MP3s

http://www.hamradioclass.org/

26 Aug 2007

Sunday, August 26th, 2007

I need to move ldap and the bnc. I think I may not move some of the old irc stuff (trafficOP and slIRC). There is not that much traffic to count anymore, and I think I have a better IRC web client now. I certainly need to archive them and find a place to keep them (where I will forget them no doubt).

I am considering playing with making a box with shell accounts on it. I will outline what I need to make them work, but I will do that on its own tiddler.