DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th January 2010
gpatrick gpatrick is offline
Shell Scout
 
Join Date: Nov 2009
Posts: 120
Thanked 0 Times in 0 Posts
Default Sparc64 duplicate two drives for booting

Have OpenBSD 4.6 installed on a Sun Sparc Ultra-10 with two 9 GB drives. Installed on wd0. I want to use the second drive, wd1, as a spare drive in case wd0 fails. I don't want to recompile the kernel to add RAID support, so I used dd to copy wd0 to wd1.

After dd completed the boot-device was set to disk1 and I rebooted. However, when OpenBSD came up on wd1 it mounted everything as read-only. I've used dd before on Solaris to duplicate boot drives, but 'm unsure why it didn't work this time with OpenBSD.

Last edited by gpatrick; 11th January 2010 at 11:22 PM. Reason: typo
Reply With Quote
  #2   (View Single Post)  
Old 11th January 2010
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,154
Thanked 182 Times in 149 Posts
Default

Execute the following command and unless I err, you will see why
Code:
# cat /etc/fstab
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 12th January 2010
gpatrick gpatrick is offline
Shell Scout
 
Join Date: Nov 2009
Posts: 120
Thanked 0 Times in 0 Posts
Default

I'll look later when I have a chance, but with "cat /etc/fstab" I'm sure what it is!
Reply With Quote
  #4   (View Single Post)  
Old 12th January 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by gpatrick View Post
After dd completed the boot-device was set to disk1 and I rebooted. However, when OpenBSD came up on wd1 it mounted everything as read-only.
While I haven't added a second disk to my U10, the behaviour described is as I would expect. In this regard, sparc64 acts the same as i386. J65nko is correct. OpenBSD was installed on wd0, & dd(1)'ed onto wd1. Even though the boot order was changed in OpenBOOT, OpenBSD's boot sequence determined that it was coming up on wd1 while wd0 is found in /etc/fstab.
Quote:
I've used dd before on Solaris to duplicate boot drives, but 'm unsure why it didn't work this time with OpenBSD.
Perhaps Solaris stores the mapping of physical drives or you have forgotten a step. Although I haven't played with (Open)Solaris in quite some time, I don't see what would be gained by storing such a mapping, but then, I freely admit that I don't know Solaris either.
Reply With Quote
  #5   (View Single Post)  
Old 12th January 2010
gpatrick gpatrick is offline
Shell Scout
 
Join Date: Nov 2009
Posts: 120
Thanked 0 Times in 0 Posts
Default

It's been some time since I've used dd for cloning a boot disk on Solaris (8), so I did indeed forget a step. It's easy to do (for me at least) when you've been using and become reliant on Solaris DiskSuite, Veritas, ZFS, and AIX LVM to handle mirroring.

Thanks again!
Reply With Quote
  #6   (View Single Post)  
Old 12th January 2010
J65nko J65nko is online now
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,154
Thanked 182 Times in 149 Posts
Default

Welcome to the "forgot to edit /etc/fstab' club

This happened once to me when I moved an OpenBSD disk from IDE master to IDE slave.
I also forgot the edit /etc/fstab and do a "s/wd0/wd1/g". So don't feel lonely
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #7   (View Single Post)  
Old 12th January 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 2,888
Thanked 190 Times in 160 Posts
Default

Quote:
Originally Posted by J65nko View Post
Welcome to the "forgot to edit /etc/fstab' club
Yup, been there. I pulled the CF card out of an ALIX installation a few weeks ago, & installed via a new CF-USB connector. I, too, forgot to edit fstab(5) & didn't get the system up until I did.

Reply With Quote
  #8   (View Single Post)  
Old 12th January 2010
There0 There0 is offline
./dev/null
 
Join Date: Jul 2008
Posts: 169
Thanked 10 Times in 10 Posts
Default

Hehe, guilty as well over here, probably at least 3 times that i can remember, took about 5 minutes to grasp it and correct but at least it wasn't in production machines
__________________
The more you learn, the more you realize how little you know ....
Reply With Quote
  #9   (View Single Post)  
Old 12th January 2010
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,711
Thanked 214 Times in 189 Posts
Default

I too have done this when moving systems around. Its a very common "oops" but once you've done it to yourself the first time, you quickly recognize it when you do it to yourself again. And you will.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep or visual signal after booting OpenBSD/sparc64 hansivers OpenBSD General 10 20th September 2009 04:08 PM
How to duplicate an installed Operating Environment dk_netsvil General software and network 0 22nd July 2008 03:01 PM
sablevm on sparc64 foxi Programming 0 15th June 2008 09:42 AM
Automounting drives jwhal OpenBSD General 4 12th June 2008 05:00 PM
jdk for sparc64 nippysaurus FreeBSD Ports and Packages 6 1st June 2008 04:32 PM


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick