zfs-discuss@opensolaris.org
[Top] [All Lists]

Re: [zfs-discuss] update on zfs boot support

Subject: Re: [zfs-discuss] update on zfs boot support
From: Rob Logan
Date: Sat, 17 Mar 2007 12:38:32 -0400

I'm sure its not blessed, but another process to maximize the zfs space
on a system with few disks is

1) boot from SXCR http://www.opensolaris.org/os/downloads/on/
2) select "min install" with

512M /
512M swap
rest /export/home

use format to copy the partition table from disk0 to disk1
umount /export/home
zpool create -f zfs c1t0d0s7 c1t1d0s7
zfs create zfs/usr
zfs create zfs/var
zfs create zfs/opt
cd /zfs
ufsdump 0fs - 999999 /usr /var | ufsrestore -rf -
mkdir var/run
zfs set mountpoint=legacy zfs/usr
zfs set mountpoint=legacy zfs/var
zfs set mountpoint=legacy zfs/opt
vi /etc/fstab ; echo adding these lines:
  /dev/dsk/c1t0d0s0 /dev/rdsk/c1t0d0s0    /       ufs     1       no      -
  /dev/dsk/c1t0d0s1       -               -       swap    -       no      -
  /dev/dsk/c1t1d0s1       -               -       swap    -       no      -
  zfs/usr                 -               /usr    zfs     -       yes     -
  zfs/var                 -               /var    zfs     -       yes     -
  zfs/opt                 -               /opt    zfs     -       yes     -
cd /
bootadm update-archive
mkdir nukeme
mv var/* nukeme
mv usr/* nukeme
power cycle as there is no reboot :-)
rm -rf /nukeme

note there isn't enough space for a crashdump but there
is space for a backup of root on c1t1d0s0

if you want bfu from here to get the slower debug bits
but an easy way to get /usr/ucb

pkgadd SUNWadmc SUNWtoo SUNWpool SUNWzoner SUNWzoneu
pkgadd SUNWbind SUNWbindr SUNWluu SUNWadmfw SUNWlur SUNWluzone
echo "set kmem_flags = 0x0" >> /etc/system
touch /usr/lib/dbus-daemon
chmod 755 /usr/lib/dbus-daemon
grab build-tools and on-bfu from
  http://dlc.sun.com/osol/on/downloads/current/
vi /opt/onbld/bin/bfu
  to remove the fastfs depend and path it out as /opt/onbld/bin/`uname 
-p`/fastfs
  and change the remote acr to /opt/onbld/bin/acr
vi /opt/onbld/bin/acr
  path out /usr/bin/gzip

I've been fighting an issue that after an hr I can ping the default
router but packets never get forward to the default route.. fails
with either e1000g0 or bge0 and an ifconfig down ; ifconfig up
fixes it for another hr or so.
http://bugs.opensolaris.org/view_bug.do?bug_id=6523767
in opensol-20070312 didn't fix it either. sigh..

                        Rob

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

<Prev in Thread] Current Thread [Next in Thread>