From owner-freebsd-questions@FreeBSD.ORG Thu Oct 23 15:12:54 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D7E6106567B for ; Thu, 23 Oct 2008 15:12:54 +0000 (UTC) (envelope-from eagletree@hughes.net) Received: from smtprelay.b.hostedemail.com (smtprelay0236.b.hostedemail.com [64.98.42.236]) by mx1.freebsd.org (Postfix) with ESMTP id C058F8FC1B for ; Thu, 23 Oct 2008 15:12:53 +0000 (UTC) (envelope-from eagletree@hughes.net) Received: from filter.hostedemail.com (b-bigip1 [10.5.19.254]) by smtprelay03.b.hostedemail.com (Postfix) with SMTP id 572411AE2C02 for ; Thu, 23 Oct 2008 15:12:52 +0000 (UTC) X-SpamScore: 1 X-Spam-Summary: 2, 0, 0, 21a407b1c488cfc3, 9510f55e4507d164, eagletree@hughes.net, freebsd-questions@freebsd.org, RULES_HIT:355:379:541:564:945:947:966:973:988:989:1260:1261:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1766:1792:2196:2199:2393:2559:2562:2737:2893:2899:2901:3280:3353:3636:3865:3866:3867:3868:3869:3870:3871:3872:3874:3876:3877:4250:4385:4470:5007:6114:7558:7652:8501, 0, RBL:none, CacheIP:none, Bayesian:0.5, 0.5, 0.5, Netcheck:none, DomainCache:0, MSF:not bulk, SPF:, MSBL:none, DNSBL:none Received: from [192.168.0.3] (dpc6744118153.direcpc.com [67.44.118.153]) (Authenticated sender: eagletree@hughes.net) by omf06.b.hostedemail.com (Postfix) with ESMTP for ; Thu, 23 Oct 2008 15:12:46 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v753) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD-Questions Questions From: Chris Pratt Date: Thu, 23 Oct 2008 08:12:38 -0700 X-Mailer: Apple Mail (2.753) X-session-marker: 6561676C6574726565406875676865732E6E6574 Subject: Boot device question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2008 15:12:54 -0000 I have a server with 6 hot-swap SATA slots. It was delivered with the first slot empty and 5 drives set up as /dev/ad4 through /dev/ad12. I'd never paid attention to this until I wanted to add a 6th, now 4 years later. When I popped it in, I realized the empty bay was not 6 but rather bay 1, and of course it wouldn't boot. Presumably /dev/ad2 had now come alive for the first time. I popped out the disk, rebooted and after it was up, I plugged it back in (hot) and ran sysinstall. It didn't see the disk so I couldn't fdisk it. No device files existed for it. I was thinking a right approach would be to change fstab to reference ad2 for all the system disk file systems, shutdown, move that drive to the first bay and plug the new drive into the 2nd bay. This seemed like more of a permanent solution. If those /dev/ad* files are created at boot dynamically, this should work. I've found docs that imply that they are dynamically discovered and created from FreeBSD 5 forward (auto-discovery?). Are they or do I need to create them prior to start up. The thing is, there is no easy recovery from failure here since I have no console monitor to let me see what's going on or to fix fstab if it fails (counter-intuitively, the only place I can access the console is from remote locations ;-)), so I just want to know if I'm thinking straight? The plan is: 1. Change /etc/fstab entries for ad4 filesystems to ad2 2. Shutdown 3. Put the system disk in Bay 1 4. Power up Should it boot?