[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building ccd during install

Paul de Weerd wrote:
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}

Hi Paul

Kenneth Westerback pointed me that way (#include) thank you both.

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

Hmm, normally when moving content of a partition (not often) I prepare the disklabel, boot into single-user mode and do a simple tar->cpio operation before dealing with 'fstab' and reboot ... I'm not quite sure I get your point about the /mnt/usr/sbin/chroot ?!
It's the path plus 'chroot' I'm thinking about.

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 ;)

I'm with you (almost) all the way :)

Hope that helps,

Paul 'WEiRD' de Weerd

I like the original dutch version the most

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.


Thank you for the answer.




+++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/

[demime 1.01d removed an attachment of type application/pgp-signature]