alpha.phas.ubc.ca   -  file server
142.103.236.32 (public)- 192.168.1.32 (server)
2003 -  BIOS SETUP   02-04  02-15  02-10       
UPS STATUS      Auto-restart OK
BIOS SETUP    05/06 05/07   09-20  10-02  
DISASTER RECOVERY
  1. Install a new server.
  2. Load RHEL - currently using RHEL AS 3.
  3. Install updates using up2date.
  4. Check NFS exports.
  5. Check SAMBA configuration and status.
  6. Make sure you select DNS and DHCP servers on the software installation screens.
  7. Copy over backup files from alpha:/home/backups/dns (these files are rsync'd daily).
  8. Make sure named, dhcpd, and nscd are started.
  9. (install firestarter).
  10. Install netvault.
Additional, non-critical items to take care of:
  1. Install APCUPSD (it is in /usr/local/src which is backed up to alpha).

RSYNC Entries:
[root@alpha/]# cat /etc/cron.daily/alpha_rsync_backup
[root@alpha root]# cat /etc/cron.daily/alpha_rsync_backup
#!/bin/sh

rsync -a /etc/cron* /home/backups/alpha/etc/
rsync -a /etc/samba /home/backups/alpha/etc/
rsync -a /opt/sysadmin /home/backups/alpha/opt/
rsync -a /usr/local/bin /home/backups/alpha/usr/local
rsync /etc/exports /home/backups/alpha/etc/
rsync /etc/fstab   /home/backups/alpha/etc/
rsync /etc/passwd   /home/backups/alpha/etc/
rsync /etc/shadow   /home/backups/alpha/etc/
rsync /etc/hosts   /home/backups/alpha/etc/
rsync /etc/rsyncd.conf /home/backups/alpha/etc/
rsync -a /etc/sysconfig /home/backups/alpha/etc/
#_#
#rsync -av /etc/cron.hourly/ /home/backups/alpha/etc/cron.hourly

exit 0
[root@alpha/]# crontab -l
# make the passwd, shadow and group files from physics files every 15 minutes, 6am to 6pm
0,15,30,45 6-18 * * * /usr/local/bin/mkpasswd
#15 18 * * sun /usr/local/bin/sysreport.phas
#30 4 * * * /opt/sysadmin/tools/rsync/syncHomeDirs
[root@alpha/]# cat /etc/rsyncd.conf
uid = root
#gid = nobody
#use chroot = no
max connections = 10
syslog facility = local5
pid file = /var/run/rsyncd.pid

[bacula]
  path = /etc/bacula/
  read only = yes
[dirdump]
  path = /www/deptonly
  comment = /www/deptonly on www
  include = /dirdump.log
  hosts allow = 192.168.0.13, 192.168.1.13, 192.168.0.11, 172.16.0.11
  hosts deny = 0.0.0.0/0

[w3]
  path = /var
  read only = yes
  hosts allow = 192.168.1.90
  hosts deny = 0.0.0.0/0
[root@alpha]# chkconfig --list | grep -i on
microcode_ctl  	0:off	1:off	2:on	3:on	4:on	5:on	6:off
gpm            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
kudzu          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
syslog         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
random         	0:off	1:off	2:on	3:on	4:on	5:on	6:off
rawdevices     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
mdmonitor      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
atd            	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nscd           	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iptables       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ip6tables      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
irqbalance     	0:off	1:off	2:off	3:on	4:on	5:on	6:off
sendmail       	0:off	1:off	2:on	3:on	4:on	5:on	6:off
autofs         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
sshd           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
portmap        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
nfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
nfslock        	0:off	1:off	2:off	3:on	4:on	5:on	6:off
rhnsd          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
crond          	0:off	1:off	2:on	3:on	4:on	5:on	6:off
xinetd         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
hpoj           	0:off	1:off	2:on	3:on	4:on	5:on	6:off
xfs            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
ntpd           	0:off	1:off	2:off	3:on	4:off	5:on	6:off
arptables_jf   	0:off	1:off	2:on	3:on	4:on	5:on	6:off
smb            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
sysstat        	0:off	1:on	2:on	3:on	4:on	5:on	6:off
apcupsd        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
bacula-fd      	0:off	1:off	2:on	3:on	4:on	5:on	6:off
	rsync:	on
	sgi_fam:	on
	tftp:	on

SAMBA NOTES 09-11-18

Starting with Samba 3.4, the default passdb password backend has been changed to 'tdbsam.' If you're still using the old password setup with the 'smbpasswd' backend this will break it. If you've been using a standalone Samba server, chances are good that's what you've been using for security. If you want to stick with it, simply enter the line: passdb backend = smbpasswd in your smb.conf. You're better off in the long run though if you convert your smbpasswd entries into tbdsam by running
pdbedit -i smbpasswd -e tdbsam
from a Linux shell. The tdbsam offers you more options for users setting, and there are some advanced server commands which won't work with the 'smbpasswd' backend.

If you've set up your Samba boxes properly--e.g. you can reach your shared drives just fine from an XP box or a Mac - but you still can't see them from Windows 7, you'll need to do fixing. Go to your Windows 7 box and try going to: Control Panel - Administrative Tools - Local Security Policy Local Policies - Security Options. Once there, set "Network security: LAN Manager authentication level" to "Send LM & NTLM responses" and the "Minimum session security for NTLM SSP" to "Disable Require 128-bit encryption."

On Vista, it's a little more complicated. Here, you'll need to click "Start -> Run." Once you're at Vista's idea of a command line, type in the Run field: "secpol.msc." That will bring you to Vista’s security policy system. Once there, use "Go to: Local Policies > Security Options" and then find "Network Security: LAN Manager" authentication level. Now change the Setting from "Send NTLMv2 response only" to "Send LM & NTLM - use NTLMv2 session security if negotiated."

10-05-10    bacula v5.0.2
rpmbuild --rebuild --define "build_rhel3 1" --define "build_client_only 1" bacula-5.0.2-1.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/bacula-client-5.0.2-1.i386.rpm /usr/src/redhat/RPMS/i386/bacula-libs-5.0.2-1.i386.rpm

09-07-09    bacula v3.0.1
Previous install failed when trying to do a full backup with error about no acl support, so tried:
rpmbuild --rebuild --define "build_client_only 1" --define "nobuild_gconsole 1" bacula-3.0.1-1.src.rpm
Failed with errors about "error: Installed (but unpackaged) file(s) found".

I copied the bacula.spec file from /usr/src/redhat/SPECS/bacula.spec to /usr/local/src/bacula and editted it to add the following lines:

>*** 1899,1904 ****
--- 1899,1908 ----
  rm -f $RPM_BUILD_ROOT%{script_dir}/startmysql
  rm -f $RPM_BUILD_ROOT%{script_dir}/stopmysql
  rm -rf $RPM_BUILD_ROOT%{script_dir}/updatedb
+ rm -f $RPM_BUILD_ROOT%{script_dir}/bconsole 
+ rm -f $RPM_BUILD_ROOT%{script_dir}/bpipe-fd.so
+ rm -f $RPM_BUILD_ROOT%{script_dir}/mtx-changer.conf
+ rm -f $RPM_BUILD_ROOT%{_sbindir}/bacula
  %endif
Then did:
rpmbuild -bb bacula.spec --define "build_rhel3 1" --define "build_client_only 1" --define "nobuild_gconsole 1"
rpm -Uvh /usr/src/redhat/RPMS/i386/bacula-client-3.0.1-1.i386.rpm

09-06-09    bacula v3.0.1
  cd /usr/local/src/bacula
  wget http://superb-west.dl.sourceforge.net/sourceforge/bacula/bacula-3.0.1.tar.gz
  tar zxf bacula-3.0.1.tar.gz 
  chown -R bacula:bacula bacula-3.0.1
  cd bacula-3.0.1
  ./configure --enable-bwx-console --enable-tray-monitor --with-python --with-tcp-wrappers --with-openssl --with-x --prefix=/opt/bacula --exec-prefix=/opt/bacula --sysconfdir=/opt/bacula/etc --with-scriptdir=/opt/bacula/scripts --with-dump-email=root@localhost --with-job-email=root@localhost --with-smtp-host=localhost --enable-client-only
  /etc/init.d/bacula-fd stop
  mv /opt/bacula /opt/bacula-2.4.2
  make
  make install
  cd /opt/bacula/etc/
  cp bacula-fd.conf bacula-fd.conf.orig
  vi bacula-fd.conf
  /etc/init.d/bacula-fd start

09-03-28    Disk Re-configuration
This is a continuation of the work started on 08-08-29 (see below).
    lvremove /dev/VG00/LV03
    lvremove /dev/VG00/LV02
    lvremove /dev/VG00/LV01
    lvremove /dev/VG00/LV00
    vgdisplay
    fdisk -l
    vgchange -a n /dev/VG00
    vgremove /dev/VG00
    fdisk -l
    pvdisplay /dev/sdc1
    vgextend VG01 /dev/sdc1
    lvdisplay /dev/VG01/LV01
    service smb stop
    service nfs stop
    lvextend -L+7G /dev/VG01/LV03
    umount /ahome
    resize2fs /dev/VG01/LV03
    e2fsck -f /dev/VG01/LV03
    resize2fs /dev/VG01/LV03
    mount /ahome
    lvextend -L+154G /dev/VG01/LV01
    resize2fs /dev/VG01/LV01
    umount /home2
    resize2fs /dev/VG01/LV01
    e2fsck -f /dev/VG01/LV01
    resize2fs /dev/VG01/LV01
    mount /home2
    df -h
    lvextend -L+712G /dev/VG01/LV00
    umount /home
    resize2fs /dev/VG01/LV00
    e2fsck -f /dev/VG01/LV00
    resize2fs /dev/VG01/LV00
    mount /home
    df -h
    service smb start
    service nfs start

   [root@alpha root]# df -h
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/sda2              15G  3.6G   11G  25% /
   /dev/sda1              99M   48M   47M  51% /boot
   none                  501M     0  501M   0% /dev/shm
   /dev/VG01/LV02         20G  7.7G   12G  40% /newton
   /dev/VG01/LV03         27G   13G   15G  47% /ahome
   /dev/VG01/LV01        447G  288G  156G  65% /home2
   /dev/VG01/LV00        1.5T  724G  751G  50% /home

08-08-29    bacula v2.4.2
 [root@alpha bacula-2.4.2]# ./configure --enable-bwx-console --enable-tray-monitor --with-python --with-tcp-wrappers --with-openssl --with-x --prefix=/opt/bacula --exec-prefix=/opt/bacula --sysconfdir=/opt/bacula/etc --with-scriptdir=/opt/bacula/scripts --with-dump-email=root@localhost --with-job-email=root@localhost --with-smtp-host=localhost --enable-client-only
[root@alpha bacula-2.4.2]# make
[root@alpha bacula-2.4.2]# make install

08-05-12
The disks /dev/sdd and /dev/sde didn't have valid partition tables for some unknown reason. Since /dev/sde didn't have any parts of it in use (pvdisplay /dev/sde), I was able to run the command "vgreduce VG00 /dev/sde" to remove sde from the volgrp. I then used fdisk to partition the drive into one partition of type "8e" (lvm) and then ran the following commands to recreate the volgrp, logical volumes, and partitions.

The plan is to use rsync to sync the current partitions with the new ones and then eventually mount the new ones as the live ones. Then I will be able to fix the partition table on /dev/sdd and use it for a new volgrp or add it to VG01.
# vgreduce VG00 /dev/sde
vgreduce -- doing automatic backup of volume group "VG00"
vgreduce -- volume group "VG00" successfully reduced by physical volume:
vgreduce -- /dev/sde

# pvdisplay /dev/sde
pvdisplay -- "/dev/sde" is a new physical volume of 1.14 TB

# fdisk -l /dev/sde

Disk /dev/sde: 1250.2 GB, 1250254913536 bytes
64 heads, 32 sectors/track, 1192336 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sde1             1   1192336 1220952048   8e  Linux LVM

# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sdb1" of VG "VolGrp00" [136.69 GB / 87.86 GB free]
pvscan -- inactive PV "/dev/sdc1" is in no VG  [136.69 GB]
pvscan -- ACTIVE   PV "/dev/sdd"  of VG "VG00"     [1.14 TB / 24.34 GB free]
pvscan -- inactive PV "/dev/sde1" is in no VG  [1.14 TB]
pvscan -- total: 4 [2.54 TB] / in use: 2 [1.27 TB] / in no VG: 2 [1.27 TB]

# vgcreate VG01 /dev/sde1
vgcreate -- INFO: using default physical extent size 32 MB
vgcreate -- INFO: maximum logical volume size is 2 Terabyte
vgcreate -- doing automatic backup of volume group "VG01"
vgcreate -- volume group "VG01" successfully created and activated

# vgdisplay VG01
--- Volume group ---
VG Name               VG01
VG Access             read/write
VG Status             available/resizable
VG #                  2
MAX LV                256
Cur LV                0
Open LV               0
MAX LV Size           2 TB
Max PV                256
Cur PV                1
Act PV                1
VG Size               1.14 TB
PE Size               32 MB
Total PE              37259
Alloc PE / Size       0 / 0
Free  PE / Size       37259 / 1.14 TB
VG UUID               G2k84Y-9115-0Cvh-aL3S-BwGW-ZJYW-wJ5wL7

# lvcreate -L800G -nLV00 VG01
lvcreate -- doing automatic backup of "VG01"
lvcreate -- logical volume "/dev/VG01/LV00" successfully created

# lvscan
lvscan -- ACTIVE            "/dev/VG00/LV00" [800 GB]
lvscan -- ACTIVE            "/dev/VG00/LV01" [300 GB]
lvscan -- ACTIVE            "/dev/VG00/LV02" [20 GB]
lvscan -- ACTIVE            "/dev/VG00/LV03" [20 GB]
lvscan -- ACTIVE            "/dev/VG01/LV00" [800 GB]
lvscan -- ACTIVE            "/dev/VG01/LV01" [300 GB]
lvscan -- ACTIVE            "/dev/VG01/LV02" [20 GB]
lvscan -- ACTIVE            "/dev/VG01/LV03" [20 GB]
lvscan -- ACTIVE            "/dev/VolGrp00/LogVol01" [48.83 GB]
lvscan -- 9 logical volumes with 280.83 GB total in 3 volume groups
lvscan -- 9 active logical volumes

# mke2fs -j -m 1 /dev/VG01/LV00
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
104857600 inodes, 209715200 blocks
2097152 blocks (1.00%) reserved for the super user
First data block=0
6400 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
	102400000

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

# mke2fs -j -m 1 /dev/VG01/LV01
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
39321600 inodes, 78643200 blocks
786432 blocks (1.00%) reserved for the super user
First data block=0
2400 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000, 7962624, 11239424, 20480000, 23887872, 71663616

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

# mke2fs -j -m 1 /dev/VG01/LV02
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
52428 blocks (1.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

# mke2fs -j -m 1 /dev/VG01/LV03
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
52428 blocks (1.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

07-12-24
Replaced UPS batteries.

07-09-04
Deleted file System.map-2.4.21-37.ELsmp which was symlinked to by System.map:
System.map -> System.map-2.4.21-37.ELsmp
I moved System.map to System.map.old and created new link as follows:
System.map.old -> System.map-2.4.21-37.ELsmp
System.map -> System.map-2.4.21-51.ELsmp

07-04-25
Edited /etc/sysconfig/syslog to add the -r (allow remote syslog connections) and -x (disable reverse dns lookups) options.

07-01-25
Added/changed the following lines /etc/samba/samba.conf.master and rebuilt smb.conf netbios name = alpha netbios aliases = filesvr smb ports = 445 139
07-01-??
Added line smb ports = 139 to /etc/samba/samba.conf.master and rebuilt smb.conf
05-12-21
[root@alpha.priv]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb2              15G  2.4G   12G  17% /
/dev/sdb1              99M   90M  3.9M  96% /boot
/dev/sda1             688G  271G  383G  42% /home
/dev/sda2             184G  127G   48G  73% /home2
/dev/sda3              26G  6.3G   19G  26% /newton
/dev/VolGrp00/LogVol01
                       49G   13G   33G  29% /mailhome2
none                  501M     0  501M   0% /dev/shm
[root@alpha.priv decoherence]# fdisk -l

Disk /dev/sda: 977.9 GB, 977999757312 bytes
255 heads, 63 sectors/track, 118901 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     91183 732427416   83  Linux
/dev/sda2         91184    115499 195318270   83  Linux
/dev/sda3        115500    118901  27326565   83  Linux

Disk /dev/sdb: 18.3 GB, 18309473280 bytes
255 heads, 63 sectors/track, 2226 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1        13    104391   83  Linux
/dev/sdb2            14      1972  15735667+  83  Linux
/dev/sdb3          1973      2226   2040255   82  Linux swap

Disk /dev/sdc: 146.7 GB, 146771896320 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdc1   *         1     17844 143331898+  8e  Linux LVM

Disk /dev/sdd: 146.7 GB, 146771896320 bytes
255 heads, 63 sectors/track, 17844 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdd1   *         1     17844 143331898+  8e  Linux LVM

Disk /dev/sde: 1250.2 GB, 1250254913536 bytes
64 heads, 32 sectors/track, 1192336 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sde1             1   1192336 1220952048   83  Linux

Disk /dev/sdf: 1250.2 GB, 1250254913536 bytes
64 heads, 32 sectors/track, 1192336 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdf1             1   1192336 1220952048   83  Linux

[root@alpha.priv decoherence]# pvcreate /dev/sde
pvcreate -- device "/dev/sde" has a partition table
[root@alpha.priv decoherence]# dd if=/dev/zero of=/dev/sde bs=1K count=1
1+0 records in
1+0 records out
[root@alpha.priv decoherence]# blockdev --rereadpt /dev/sde
[root@alpha.priv decoherence]# pvcreate /dev/sde
pvcreate -- physical volume "/dev/sde" successfully created

[root@alpha.priv decoherence]# dd if=/dev/zero of=/dev/sdf bs=1K count=1
1+0 records in
1+0 records out
[root@alpha.priv decoherence]# blockdev --rereadpt /dev/sdf
[root@alpha.priv decoherence]# pvcreate /dev/sdf
pvcreate -- physical volume "/dev/sdf" successfully created

[root@alpha.priv decoherence]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sdc1" of VG "VolGrp00" [136.69 GB / 136.68 GB free]
pvscan -- ACTIVE   PV "/dev/sdd1" of VG "VolGrp00" [136.69 GB / 87.86 GB free]
pvscan -- inactive PV "/dev/sde"  is in no VG  [1.14 TB]
pvscan -- inactive PV "/dev/sdf"  is in no VG  [1.14 TB]
pvscan -- total: 4 [2.54 TB] / in use: 2 [273.38 GB] / in no VG: 2 [2.27 TB]

[root@alpha.priv decoherence]# vgcreate VG00 /dev/sde
vgcreate -- INFO: using default physical extent size 32 MB
vgcreate -- INFO: maximum logical volume size is 2 Terabyte
vgcreate -- doing automatic backup of volume group "VG00"
vgcreate -- volume group "VG00" successfully created and activated

[root@alpha.priv decoherence]# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sdc1" of VG "VolGrp00" [136.69 GB / 136.68 GB free]
pvscan -- ACTIVE   PV "/dev/sdd1" of VG "VolGrp00" [136.69 GB / 87.86 GB free]
pvscan -- ACTIVE   PV "/dev/sde"  of VG "VG00"     [1.14 TB / 1.14 TB free]
pvscan -- inactive PV "/dev/sdf"  is in no VG  [1.14 TB]
pvscan -- total: 4 [2.54 TB] / in use: 3 [1.40 TB] / in no VG: 1 [1.14 TB]

[root@alpha.priv decoherence]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "VolGrp00"
vgscan -- found active volume group "VG00"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume groups

[root@alpha.priv decoherence]# lvscan
lvscan -- ACTIVE            "/dev/VolGrp00/LogVol01" [48.83 GB]
lvscan -- 1 logical volumes with 48.83 GB total in 2 volume groups
lvscan -- 1 active logical volumes

[root@alpha.priv decoherence]# pvdisplay /dev/sde
--- Physical volume ---
PV Name               /dev/sde
VG Name               VG00
PV Size               1.14 TB [2441904128 secs] / NOT usable 32.31 MB [LVM: 273 KB]
PV#                   1
PV Status             NOT available
Allocatable           yes
Cur LV                0
PE Size (KByte)       32768
Total PE              37259
Free PE               37259
Allocated PE          0
PV UUID               2Hrnpx-PtF7-2zvB-eKPt-7ynu-5ia0-ekddtF


[root@alpha.priv decoherence]# vgdisplay /dev/VG00
--- Volume group ---
VG Name               VG00
VG Access             read/write
VG Status             available/resizable
VG #                  1
MAX LV                256
Cur LV                0
Open LV               0
MAX LV Size           2 TB
Max PV                256
Cur PV                1
Act PV                1
VG Size               1.14 TB
PE Size               32 MB
Total PE              37259
Alloc PE / Size       0 / 0
Free  PE / Size       37259 / 1.14 TB
VG UUID               1gj29H-xOCS-7SBS-feA7-K0ZC-jKni-3gsLXd

[root@alpha.priv tmp]# vgextend VG00 /dev/sdf
vgextend -- INFO: maximum logical volume size is 2 Terabyte
vgextend -- doing automatic backup of volume group "VG00"
vgextend -- volume group "VG00" successfully extended

[root@alpha.priv tmp]# vgdisplay VG00
--- Volume group ---
VG Name               VG00
VG Access             read/write
VG Status             available/resizable
VG #                  1
MAX LV                256
Cur LV                0
Open LV               0
MAX LV Size           2 TB
Max PV                256
Cur PV                2
Act PV                2
VG Size               2.27 TB
PE Size               32 MB
Total PE              74518
Alloc PE / Size       0 / 0
Free  PE / Size       74518 / 2.27 TB
VG UUID               1gj29H-xOCS-7SBS-feA7-K0ZC-jKni-3gsLXd

[root@alpha.priv tmp]# lvcreate -L800G -nLV00 VG00
lvcreate -- doing automatic backup of "VG00"
lvcreate -- logical volume "/dev/VG00/LV00" successfully created

[root@alpha.priv tmp]# mke2fs -j -m 1 /dev/VG00/LV00
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
104857600 inodes, 209715200 blocks
2097152 blocks (1.00%) reserved for the super user
First data block=0
6400 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@alpha.priv home]# lvcreate -L300G -nLV01 VG00
lvcreate -- doing automatic backup of "VG00"
lvcreate -- logical volume "/dev/VG00/LV01" successfully created

[root@alpha.priv home]# mke2fs -j -m 1 /dev/VG00/LV01
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
39321600 inodes, 78643200 blocks
786432 blocks (1.00%) reserved for the super user
First data block=0
2400 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@alpha.priv home]# mount /dev/VG00/LV01 /mnt/home2

[root@alpha.priv home]# mke2fs -j -m 2 /dev/VG00/LV02
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
104857 blocks (2.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 21 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

[root@alpha.priv home]# lvcreate -L20G -nLV03 VG00
lvcreate -- doing automatic backup of "VG00"
lvcreate -- logical volume "/dev/VG00/LV03" successfully created

[root@alpha.priv home]# mke2fs -j -m 2 /dev/VG00/LV03
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2621440 inodes, 5242880 blocks
104857 blocks (2.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@alpha.priv home]# mount /dev/VG00/LV03 /mnt/astrohome
[root@alpha.priv home]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb2              15G  2.4G   12G  17% /
/dev/sdb1              99M   90M  3.9M  96% /boot
/dev/sda1             688G  271G  383G  42% /home
/dev/sda2             184G  127G   48G  73% /home2
/dev/sda3              26G  6.3G   19G  26% /newton
/dev/VolGrp00/LogVol01
                       49G   13G   33G  29% /mailhome2
none                  501M     0  501M   0% /dev/shm
/dev/VG00/LV00        788G   33M  780G   1% /mnt/home
/dev/VG00/LV01        296G   33M  293G   1% /mnt/home2
/dev/VG00/LV02         20G   33M   20G   1% /mnt/newton
/dev/VG00/LV03         20G   33M   20G   1% /mnt/astrohome

05-12-13
After installing the new Apple Fiber channel cards (HBAs) in both alpha and mail and rebooting, the HBAs were "dead" even though they were recognized as new hardware on the re-boot and the drivers were installed. Turns out I needed to:
  1. Modify /etc/modules.conf to add two lines at the end:
    alias eth0 e1000
    alias eth1 e1000
    alias scsi_hostadapter aic7xxx
    alias scsi_hostadapter1 gdth
    alias usb-controller usb-uhci
    alias block-major-43 off
    alias scsi_hostadapter2 mptbase
    alias scsi_hostadapter3 mptscsih
  2. Make copies of /boot/initrd-2.4.21-37.EL.img and /boot/initrd-2.4.21-37.ELsmp.img
  3. Run the following commands to make new initrd (initial RAM disk images) with the drivers installed:
    [root@mail boot]# mkinitrd -v -f /boot/initrd-2.4.21-37.EL.img 2.4.21-37.EL
    [root@mail boot]# mkinitrd -v -f /boot/initrd-2.4.21-37.ELsmp.img 2.4.21-37.ELsmp
  4. I then rebooted and the HBAs were recognized.
05-11-22
Getting messages like these in the logs:
[root@alpha.priv samba]# grep 30796 /var/log/messages
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:get_peer_addr(1000)
Nov 22 14:50:50 alpha smbd[30796]:   getpeername failed. Error was Transport endpoint is not connected
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:get_peer_addr(1000)
Nov 22 14:50:50 alpha smbd[30796]:   getpeername failed. Error was Transport endpoint is not connected
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/access.c:check_access(328)
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:get_peer_addr(1000)
Nov 22 14:50:50 alpha smbd[30796]:   getpeername failed. Error was Transport endpoint is not connected
Nov 22 14:50:50 alpha smbd[30796]:   Denied connection from  (0.0.0.0)
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:get_peer_addr(1000)
Nov 22 14:50:50 alpha smbd[30796]:   getpeername failed. Error was Transport endpoint is not connected
Nov 22 14:50:50 alpha smbd[30796]:   Connection denied from 0.0.0.0
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:write_socket_data(430)
Nov 22 14:50:50 alpha smbd[30796]:   write_socket_data: write failure. Error = Connection reset by peer
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:write_socket(455)
Nov 22 14:50:50 alpha smbd[30796]:   write_socket: Error writing 5 bytes to socket 22: ERRNO = Connection reset by peer
Nov 22 14:50:50 alpha smbd[30796]: [2005/11/22 14:50:50, 0] lib/util_sock.c:send_smb(647)
Nov 22 14:50:50 alpha smbd[30796]:   Error writing 5 bytes to client. -1. (Connection reset by peer)
According to a search on the web:
Samba 3 uses both port 139 and 445. So using Windows 2000 or better the computer tries to connect to both ports and just drops one using "RST". Hence samba still things the client is there and needs a little bit of time to sort this out. As we do not use Port 445 (new one) we just disabled this and got rid of all the messages. Nevertheless it is nothing to worry about - if you do not mind you log being filled up with things you can ignore this.
05-11-02
Due to a space shortage on the mailserver, I moved some data to alpha and put it on one of the logical volumes I had previously created. The VolGrp that the LogVol was on consisted of two disks (/dev/sdc1 and /dev/sdd1). It appears one of the disks is corrupt and I started getting I/O use of 100% on both alpha and the mail server (which had the LogVol mounted). managed to restore /mail/home2 from tape to /home/mailhome2 on alpha and then NFS mount that onto the mailserver (/mail/home2) and physics (/mail/home2). I still need to physically remove the bad drive. It just is very slow.

Turned on nscd (name service caching daemon (chkconfig --level 345 nscd on, service nscd start). This service runs in the background and keeps a copy of /etc/passwd, /etc/group, and /etc/hosts files in memory. This can aid performance by reducing disk read overhead on a heavily loaded system dealing with many logins or name resolution requests.

04-09-03
Major failure of RAID array on the 1st. Disk started rebuilding array to spare drive but it eventually failed and array went offline.

Turning on quotas:
1. Edit /etc/fstab for the partition you want to turn quotas on for, add usrquota after the word defaults, like this
/dev/hda1 /backup ext3 defaults,usrquota 1 2

2. Reboot your computer

3. run this

/sbin/quotacheck -guvamf -F vfsv0
4. run this (just in case)
/sbin/quotacheck -guvamf -F vfsold

5. Turn on the quotas

/sbin/quotaon -a

and that is it...
04-09-01
Error noted by logwatch:

--------------------- Kernel Begin ------------------------

WARNING: Kernel Errors Present
VFS: Error -5 occured while...: 1Time(s)

---------------------- Kernel End -------------------------

04-07-28
Adjusted /etc/sysconfig/nfs:
MOUNTD_PORT=745
TUNE_QUEUE=yes
RPCNFSDCOUNT=16

TUNE_QUEUE changes default client read and write buffers from 1KB to 8KB and default input queue size for server from 64KB to 256KB.

04-03-26
Fixed sendmail error:  Needed to put sendmail: localhost. in the /etc/hosts.allow file in order for sendmail to be able to send mail out.

03-09-15
Unexpected hang:  This morning people were reporting network problems but I quickly determined it was that the home dirs were not available.  Could ping alpha but could not login or mount nfs/smb shares.  Went to machine room and it was hung, no messages about why.  I rebooted and fsck'd all filesystems then rebooted OK.  /home took almost exactly 1/2 hour to fsck.  I turned hyperthreading off in BIOS.  No indication in logs as to why it hung.  Refernece info:

[root@alpha root]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb2              13G  2.6G  9.7G  22% /
/dev/sdb1              99M   15M   79M  16% /boot
/dev/sda1             755G   68G  649G  10% /home
/dev/sda4              71G   17G   51G  25% /home2
/dev/sda2              49G  3.2G   43G   7% /home3
/dev/sda3              25G  4.1G   19G  18% /newton
none                  504M     0  504M   0% /dev/shm
/dev/sdb3             2.0G  526M  1.4G  29% /var
[root@alpha root]# fdisk -l

Disk /dev/sda: 977.9 GB, 977999757312 bytes
255 heads, 63 sectors/track, 118901 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1    100000 803249968+  83  Linux
/dev/sda2        100001    106375  51207187+  83  Linux
/dev/sda3        106376    109563  25607610   83  Linux
/dev/sda4        109564    118901  75007485   83  Linux

Disk /dev/sdb: 18.3 GB, 18309473280 bytes
255 heads, 63 sectors/track, 2226 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdb1   *         1        13    104391   83  Linux
/dev/sdb2            14      1717  13687380   83  Linux
/dev/sdb3          1718      1972   2048287+  83  Linux
/dev/sdb4          1973      2226   2040255    f  Win95 Ext'd (LBA)
/dev/sdb5          1973      2226   2040223+  82  Linux swap


03-07-04
NFS ERRORS:  I am seeing NFS errors from some of the clients (www).  Need to check this out...
Fixed apcupsd error:  From /var/log/messages:
Jun 29 04:17:45 www kernel: (see the NOTES section of 'man 2 wait'). Workaround activated.
Jun 29 04:18:51 www kernel: application bug: apcupsd(648) has SIGCHLD set to SIG_IGN but calls wait().
I downloaded the latest release (not stable) of apcupsd and installed it (apcupsd 3.10.6 (30 May 2003)).  Seemed to fix the problem.  Did the same fix on alpha.  

03-02-25
- Received new carrier for RM8000.  Installed it, and Power light and Disk lights came on.  After 34 seconds, Disk light went out indicating there was no drive installed or the drive has failed.  Bob at promise wanted me to move one of my good disks there but I refused since it would mean my array would go critical and it would take many hours to rebuild it.  Just after lunch there was a power surge and two UPS units got fried including the one for alpha.  After repowering the RM8000, slot 7 came alive!
03-02-20
- Received RMA replacement disk.  Maxtor 4G160JB, s/n V2004685.  Date of manufacture: 2001/12/22.

03-02-15
- Copied all data from /www, /newton, /home2, /home to mailx r raid array.  Deleted, then re configured array to be RAID 5 with a hot spare drive.  After ~40% initialization, drive 7 failed and rebuild started to include hot spare (disk 6).  Eventually that finished, then re-initializing of the initial array restarted.  It took many hours.   Used fdisk to create partitions.  Created filesystems using command
mkfs.ext3 -v -L /home /dev/sda1
, etc.  

03-02-05
- Replaced failed disk with Maxtor DiamondMAX 16, S/N A605QE7E.  Started rebuild (automatic) and 3:05pm.  At 4pm it wasa approx 5% finished.  However, a backup is taking place at the same time. Rebuild finished sometime during the night so must have been slowed a lot by the backup.
03-02-04
- Maxtor disk SN G804EZQE in slot 7 failed.

2002 - 09-12   
02-09-12
- Promise UltraTrak RM8000 SCSI/ATA RAID array.  
Used fdisk to partition the disk as follows:
Disk /dev/sda: 255 heads, 63 sectors, 138718 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1     28999 232934436   83  Linux
/dev/sda2         29000    138718 881317867+  83  Linux


Created filesystems on the partitions using the command:
[root@alpha root]# mkfs -V -t ext3 /dev/sda1
mkfs version 2.11n (Apr  1 2002)
mkfs.ext3 /dev/sda1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
29130752 inodes, 58233609 blocks
2911680 blocks (5.00%) reserved for the super user
First data block=0
1778 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

[root@alpha root]# mkfs -V -t ext3 /dev/sda2
mkfs version 2.11n (Apr  1 2002)
mkfs.ext3 /dev/sda2
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
110166016 inodes, 220329466 blocks
11016473 blocks (5.00%) reserved for the super user
First data block=0
6724 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
        102400000, 214990848

Writing inode tables: done                           
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.


Thus we ended up with:

[root@alpha /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5              31G  1.4G   27G   5% /
/dev/hda1              45M   14M   29M  32% /boot
none                  251M     0  250M   0% /dev/shm
/dev/hda2             4.8G   65M  4.4G   2% /var
/dev/sda1             219G   33M  207G   1% /home
/dev/sda2             827G   33M  785G   1% /home2




need to update this...

BIOS SETUP
MAIN
    Hard disk predelay: disabled
        Primary Master: CD-ROM
            Type: Auto
            Multi-Sector transfers: Dis
            LBA Mode Control: Dis
            32 bit I/O: Dis
            Transfer Mode: FPIO 4 / DMA 2
            Ultra DMA mode: Dis
        Primary Slave: none
        Processor
            Processor speed: 933 MHz
            Processor 1 type: 686
            Cache RAM: 256 KB
            Processor 2 type: 686
            Cache RAM: 256 KB
            Processor #1 status: normal
            Processor #2 status: normal
            Clear processor errors: [Enter]
            Processor error pause: Ena
            Processor Serial number: Dis
ADVANCED
    Memory reconfiguration
        System memory: 640 KB
        Extended memory: 1047552 KB
        DIMM group #1 Status: normal
        DIMM group #2 Status: normal
        DIMM group #3 Status: normal
        DIMM group #4 Status: normal
        Clears DIMM errors: [Enter]
        DIMM error pause: Ena
    Peripheral Configuration
        Serial Port 1: 3F8, IRQ4
        Serial Port 2: 2F8, IRQ3
        Parallel Port: 378, IRQ7
            Parallel Port Mode: ECP,DMA3
        Diskette controller: Ena
        Mouse: Auto  detect
        SCSI Controller: Dis
        LAN Controller: Ena
        VGA Controller: Ena
        USB Controller: Dis
    PCI Device
        PCI IRQ 1: Auto Select
        ...PCI IRQ 14: Auto Select
    Option ROM
        On board SCSI: Ena
        On board LAN: Ena
        PCI Slot1: Ena ...
        PCI Slot6: Ena
    Numlock
        Numlock: Auto
        Key Click: Dis
        Keyboard auto-repeat rate: 10/sec
        Keyboard auto-repeat delay: 1 sec
    Reset Configuration data: No
    Installed O/S: Other
SECURITY
    Supervisor password is: Clear
    User password is: Clear
    Set supervisor password: [Enter]
    Set user password: [Enter]
    Password on boot: Dis
    Fixed disk boot sector: Normal
    Diskette access: User
    Secure mode: [blank]
    Power switch mask: Unmasked
    Option ROM Menu mask: Unmasked
SYSTEM
    Wake on events
        Wake on LAN: Dis
        Wake on Ring: Disk
    AC-Link: Power on
    Error log initialization: [Enter]
    Console redirection
        Serial port address: Dis
        Baud rate: 19.2K
        Flow control: No flow control
        Console Connection: Direct
    Assert NMI on PERR: Dis
BOOT
    Boot-time Diagnostic screen: Ena
    Boot device priority
        1. ATAPI CD-ROM Drive
        2. Removable devices
        3. Hard Drive
        4. Intel Boot Agent Version 4.0
    Hard Drive
        1. Bootable Add-in Cards
        2. Intel Integrated RAID
        3. Intel Integrated RAID
    Removable Devices
        1. Legacy Floppy Drives



For more assistance contact Ron Parachoniak, rap@phas.ubc.ca ( Sysadmin)
 
webmaster@phas.ubc.ca [Dept. Home Page] last updated: 07-04-25