On Fri, May 13, 2005 at 01:06:19PM +0200, Per Engelbrecht wrote: | Hi all | | [OpenBSD 3.7 amd64 bsd.mp] | | Is it possible to build a ccd during install ? | I need an extreemly large /var (spanning the remains of two disks) and | would like /var/ to be installed there. | Looks to me a bit like the 'chiken and egg' thing. | | Can't find 'pseudo-device ccd' in GENERIC but 'config' tells me it's | there i.e. kernel-tweaks should not be needed. | Thank you!
Hi Per, It seems that on amd64, ccd is included in the RAMDISK and RAMDISK_CD kernel configuration files : $ grep ccd /usr/src/sys/arch/amd64/conf/* /usr/src/sys/arch/amd64/conf/RAMDISK:#pseudo-device ccd 4 # concatenated disk devices /usr/src/sys/arch/amd64/conf/RAMDISK_CD:pseudo-device ccd 4 # concatenated disk devices /usr/src/sys/arch/amd64/conf/files.amd64:major {ccd = 16} So that's a good hint that you should be able to use CCD during install. I'd suggest (as suggested earlier) first installing /var on / (as it's only ~10MB). Then, when the installer finishes, you can simply enter your newly installed system with $ /mnt/usr/sbin/chroot /mnt After that you can mv /var /var_ORIG && mkdir /var. After that, you can create a ccd, edit /etc/fstab to mount the new ccd on /var, temporarily mount it there yourself, move the data from /var_ORIG/ to /var/, remove /var_ORIG/, unmount /var/, exit the chroot, unmount other filesystems, reboot and rejoice ;) Hope that helps, Paul 'WEiRD' de Weerd PS: ccd is included in the default kernel (no matter what platform you're running). See /usr/src/sys/conf/GENERIC, this is included from most (all?) platform specific GENERIC's. -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/ [demime 1.01d removed an attachment of type application/pgp-signature]