|
142.103.236.32 (public)- 192.168.1.32 (server) |
| UPS STATUS | Auto-restart OK |
DISASTER RECOVERY
|
[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
pdbedit -i smbpasswd -e tdbsamfrom 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.
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
rpmbuild --rebuild --define "build_client_only 1" --define "nobuild_gconsole 1" bacula-3.0.1-1.src.rpmFailed 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
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
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
[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
# 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.
System.map -> System.map-2.4.21-37.ELsmpI 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
[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[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
[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:
Turning on quotas:04-09-01
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...
Error noted by logwatch:
--------------------- Kernel Begin ------------------------
WARNING: Kernel Errors Present
VFS: Error -5 occured while...: 1Time(s)
---------------------- Kernel End -------------------------
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 |