Wednesday, May 24, 2006
linux software raid root /
For my own reference, raid is good.
Create degraded raid1 first,
(at least for CentOS 4.2, raid1 is not included in default initrd)
Create degraded raid1 first,
mdadm --create /dev/md0 --level 1 --raid-devices=2 missing /dev/sdb2mkinitrd --with=raid1 ...mke2fs -j /dev/md0mount /dev/md0 /mntchange /mnt/etc/fstab
Clone the / filesystem.
cd /mnt
tar -C / -clspf - . | tar -xlspvf -
change /boot/grub/menu.lst
root=/dev/md0
(at least for CentOS 4.2, raid1 is not included in default initrd)
Following command to see the status,
cat /proc/mdstat
after reboot, add the other mirror,
mdadm /dev/md0 -a /dev/sda2
Monday, May 22, 2006
Join Samba to Active Directory
I followed this link exactly, just one more line to add,
local master = no
Or else, the master (AD) will always be bugged with MRxSmb, Event ID 8003.
This is my first time to configure kerberos also.
local master = no
Or else, the master (AD) will always be bugged with MRxSmb, Event ID 8003.
This is my first time to configure kerberos also.
Friday, May 19, 2006
enable quota on linux
make sure package available,
rpm -qa | grep quota
/etc/fstab
/dev/sdb3 /home ext3 usrquota,defaults
mount -o remount /home
quotacheck /home
quotaon -a
setquota, better than edquota
rpm -qa | grep quota
/etc/fstab
/dev/sdb3 /home ext3 usrquota,defaults
mount -o remount /home
quotacheck /home
quotaon -a
setquota, better than edquota