After a fresh SMI labeled c0t0d0s0 / swap /export/home jumpstart
in /etc check
   hostname.e1000g0 defaultrouter netmasks resolv.conf nsswitch.conf
   services hosts
   coreadm.conf acctadm.conf dumpadm.conf named.conf rsync.conf
svcadm disable fc-cache cde-login cde-calendar-manager cde-printinfo
svcadm disable sendmail rfc1179 gss ktkt_warn autofs hal ndp
svcadm disable rmvolmgr smserver power wbem webconsole
svcadm enable rstat
svccfg -s bind setprop config/local_only = false
crontab -e sys
pkgadd -d http://www.blastwave.org/pkg_get.pkg

# make zfs pools of remaining disks
umount /export/home
format ; echo copy the c0t0d0 SMI partition label to c0t1d0
zpool create -f z mirror c0t0d0s7 c0t1d0s7 mirror c0t2d0 c0t3d0 mirror c0t4d0 
c0t5d0
zfs set compression=lzjb z
zpool create -f root c0t1d0s0
mkdir -p /root/boot/grub
cp /boot/grub/menu.lst /root/boot/grub/menu.lst
vi /root/boot/grub/menu.lst  ; echo replace bottom with (remove ,console=ttya)

title Solaris ZFS disk0
root (hd0,0,a)
kernel$ /platform/i86pc/kernel/$ISADIR/unix -v -B $ZFS-BOOTFS,console=ttya
module$ /platform/i86pc/$ISADIR/boot_archive

title Solaris ZFS disk1
root (hd1,0,a)
kernel$ /platform/i86pc/kernel/$ISADIR/unix -v -B $ZFS-BOOTFS,console=ttya
module$ /platform/i86pc/$ISADIR/boot_archive

title Solaris ZFS failsafe
kernel /boot/platform/i86pc/kernel/unix -v -B console=ttya
module /boot/x86.miniroot-safe

# (hdx,x,x) where the first entry in the tuple is the disk identifier,
# second entry is the partition number (0-3), and the third entry is the
# slice number (a-h), where a is slice 0 and h is slice 7.

zfs create root/snv_77 ; cd /root/snv_77
ufsdump 0fs - 999999 / | ufsrestore -rf -
echo etc/zfs/zpool.cache >> boot/solaris/filelist.ramdisk
echo "/dev/dsk/c0t1d0s1 -  -  swap -   no  -" >> etc/vfstab
echo "root/snv_77       -  /  zfs  -   no  -" >> etc/vfstab
vi etc/vfstab  ; echo remove / and /export/home entrys
/usr/sbin/bootadm update-archive -R /root/snv_77
installgrub boot/grub/stage1 boot/grub/stage2 /dev/rdsk/c0t1d0s0
cd / ; zfs set mountpoint=legacy root/snv_77
zpool set bootfs=root/snv_77 root
reboot

# change BIOS boot order from c0t0d0s0 to c0t1d0s0 first
# go back to ufs boot by returning BIOS boot order
# note: if c0t1d0s0 is BIOS first to boot, grub will call it (hd0,0,a)

# make proto for bfu and boot it
zpool attach -f root c0t1d0s0 c0t0d0s0
zfs snapshot root/[EMAIL PROTECTED]
zfs clone    root/[EMAIL PROTECTED] root/opensol-20071126-nd
vi /root/opensol-20071126-nd/etc/vfstab ; echo change root/snv_77 to 
root/opensol-20071126-nd
zfs set mountpoint=legacy root/opensol-20071126-nd
zpool set bootfs=root/opensol-20071126-nd root
reboot

# upgrade to current bits
mkdir -p /z/tmp/bfu ; cd /z/tmp/bfu
wget http://dlc.sun.com/osol/on/downloads/20071126/SUNWonbld.i386.tar.bz2
wget 
http://dlc.sun.com/osol/on/downloads/20071126/on-bfu-nightly-osol-nd.i386.tar.bz2
bzip2 -d -c SUNWonbld.i386.tar.bz2 | tar -xvf -
cd onbld ; pkgadd -d .
bzip2 -d -c on-bfu-nightly-osol-nd.i386.tar.bz2 | tar -xvf -
/opt/onbld/bin/bfu /z/tmp/bfu/archives-nightly-osol-nd/i386
/opt/onbld/bin/acr
reboot

# spread the load across all spindles in compressed form
rm -rf /.make.machines /z/tmp/bfu /bfu*
zfs create z/opensol-20071126-nd
zfs create z/opensol-20071126-nd/usr
zfs create z/opensol-20071126-nd/opt
zfs create z/opensol-20071126-nd/var
zfs snapshot root/[EMAIL PROTECTED]
cd /.zfs/snapshot/dump
rsync -a . /z/opensol-20071126-nd
zfs set mountpoint=legacy z/opensol-20071126-nd/usr
zfs set mountpoint=legacy z/opensol-20071126-nd/opt
zfs set mountpoint=legacy z/opensol-20071126-nd/var
echo "z/opensol-20071126-nd/usr - /usr    zfs  -    yes  -" >> /etc/vfstab
echo "z/opensol-20071126-nd/var - /var    zfs  -    yes  -" >> /etc/vfstab
echo "z/opensol-20071126-nd/opt - /opt    zfs  -    yes  -" >> /etc/vfstab
reboot

# play with l2arc
zfs promote root/opensol-20071126-nd
zfs destroy -r root/snv_77
zpool upgrade -a
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s0
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t0d0s0

# other notes
vi /etc/ssh/sshd_config
svcadm disable ssh ; svcadm enable ssh
mkdir .ssh ; cd .ssh ; chmod 700 .
ssh-keygen -t dsa -f id_dsa -P ''
scp id_dsa.pub [EMAIL PROTECTED] ~/.ssh/authorized_keys2 ; chmod  600 
authorized_keys2
zfs snapshot -r [EMAIL PROTECTED]
zfs send -R z/[EMAIL PROTECTED]             | ssh 10.1.1.7 zfs recv -v -d z
zfs send -i z/[EMAIL PROTECTED] z/[EMAIL PROTECTED] | ssh 10.1.1.7 zfs recv -v 
-F -d z

http://www.solarisinternals.com/wiki/index.php/ZFS_Evil_Tuning_Guide
eeprom kernelbase=0x80000000 ; echo  for 32bit cpu
echo "set kmem_flags = 0x0" >> /etc/system ; echo less mem asserts
echo "set zfs:zfs_prefetch_disable = 1" >> /etc/system ; echo don't make all 
read requests 64kB
echo "set zfs:zil_disable = 1" >> /etc/system  ; echo to make NFS sync async
echo "set zfs:zfs_nocacheflush = 1" >> /etc/system ; echo don't bother flushing 
the disk cache
echo "set sata:sata_func_enable = 0x5" >> /etc/system ; echo to turn off NCQ
echo "set sata:sata_func_enable = 0x4" >> /etc/system ; echo to turn off 
queueing
svccfg -s x11-server setprop options/server=/usr/X11/bin/i386/Xorg
svccfg -s x11-server setprop options/default_depth=8
# /usr/dt/bin/dtconfig -d  /etc/X11/xorg.conf /var/log/Xorg.0.log

cfgadm -c configure sata0/3
cfgadm -va
devfsadm -Cv ; echo nuke old devices
/usr/sbin/prtdiag
fmadm faulty -a
fmdump -v
svcs -xv

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to