On 04/07/2011 01:02 PM, Steven R. Gerber wrote:
On 4/7/2011 12:30 PM, Ted Unangst wrote:
On Thu, Apr 7, 2011 at 12:10 PM, Steven R. Gerber
<[email protected]>  wrote:
The partitions/mounts problem is far more disconcerting.  What if I need
to save data to a striped array to do the migration?
Recreating/resetting those parameters is dangerous.  How can I create
and use a site script to preserve them through install?  Is it possible
to do an install without walloping the existing filesystem(s)? (Deleting
files is OK.)
The installer will not overwrite an existing disklabel if you have one
and will only newfs filesystems that have mount points.  This is easy
to screw up if you aren't careful, but it's certainly possible to do a
clean install and keep some filesystems from before.


I am missing the point.  It seems like a Catch-22 to me.
The installer takes me into disklabel:
        Whole disk OR Auto OR Existing?

that's not disklabel.  that's fdisk.

you chose "edit MBR" to look at what you currently have and perhaps change it in your own way, and if I recall properly, it's "OpenBSD" to use the existing partition. Use the existing partition.

Then when you get to disklabel, you will chose a "custom" layout. Define mount points for the partitions you want cleared, and not for those you wish to retain, and then add them to /etc/fstab afterwards.

See http://www.openbsd.org/faq/faq4.html#InstDisks for more details.


I also have mount points for my arrays.  How do I preserve the softraid
parameters etc.?

Same way as any other disk. The install kernel will see, recognize and configure any existing softraid "disks", and treat them as the other disks on the system. You do the same. :)

Nick.

Reply via email to