From owner-freebsd-questions Fri Feb 14 13:20:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA01833 for questions-outgoing; Fri, 14 Feb 1997 13:20:10 -0800 (PST) Received: from vdp01.vailsystems.com (root@vdp01.vailsystems.com [207.152.98.18]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA01815 for ; Fri, 14 Feb 1997 13:20:03 -0800 (PST) Received: from crocodile.vale.com (crocodile [204.117.217.147]) by vdp01.vailsystems.com (8.8.3/8.7.3) with ESMTP id PAA06634; Fri, 14 Feb 1997 15:19:58 -0600 (CST) Received: from slave1 (slave1.vale.com [204.117.217.100]) by crocodile.vale.com (8.8.3/8.7.3) with ESMTP id PAA19823; Fri, 14 Feb 1997 15:19:58 -0600 (CST) Message-ID: <3304D6EB.2C09@vailsys.com> Date: Fri, 14 Feb 1997 15:19:39 -0600 From: Dan Riley Reply-To: driley@vailsys.com X-Sender: Dan Riley (Unverified) X-Mailer: Mozilla 4.0b1 (WinNT; I) MIME-Version: 1.0 To: ru@elis.crimea.ua, freebsd-questions@freebsd.org Subject: Re: How to add new disk to a system? (FAQ procedure not works -- sysinstall bugs?) X-Priority: Normal References: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Ruslan Ermilov wrote: >>Hi! >> >>I've got installed 2.1.6.1-RELEASE. >>I need to add second hard disk to my system. >> >>The procedure described in FAQ not works due to some unknown to me bugs >>in sysinstall (sysinstall for 2.1.0R works fine with this FAQ procedure). >> >>How can I manually add the disk to the system? >> >>Thank you in advance. >> >>-- >>Ruslan Ermilov ru@crimea.net >>Network Administrator +38(0652)272636 Ruslan, I just had to add another scsi disk to my system (2.1.5) and found that sysinstall seg faulted every time I tried to use it as specified in the handbook or any other docs. I ended up using sysinstall to setup the slices and then using disklabel manually to to configure the file system partitions. Dan Riley wrote: > > --------------------------------------------------------------- > I found the "for sure" size of the new drive in /var/log/messages: > > Feb 12 12:45:53 vdp01 /kernel: (ahc0:1:0): "Quantum XP32150W L912" > type 0 fixed SCSI 2 > Feb 12 12:45:55 vdp01 /kernel: sd1(ahc0:1:0): Direct-Access 2151MB > (4406960 512 byte sectors) > ^^^^^^^ > ---- > DISK Geometry: 274 cyls/255 heads/63 sectors ... > > The closest I could get to the detected size by multiplying all 3 > integers or using 255 and 63 from the handbook docs and dividing for > the # of cyls.. > ---- > Sysinstall - Partition > Gave me the initial slice boundaries very nicely: > > DISK Geometry: 274 cyls/255 heads/63 sectors > > Offset Size End Name PType Desc Subtype > 0 63 62 - 6 unused 0 > 63 2200842 2200904 sd1s1 3 freebsd 165 > 2200905 2200905 4401809 sd1s2 3 freebsd 165 > 4401810 5150 4406959 - 6 unused 0 > > and was also able to update the drive partition table seemingly > flawlessly. Disklabel (sd1s1 or sd1s2) can be checked immediately for > the updates. > ---- > We wanted to use each new slice entirely as a file a system. Run > disklabel -e to edit the partition information: > > disklabel -e sd1s1 and sd1s2 > ... > # size offset fstype [fsize bsize bps/cpg] > c: 2200842 0 unused 0 0 # (Cyl. 0-136*) > e: 2200842 0 4.2BSD 0 0 0 # (Cyl. 0-136*) > ... > # size offset fstype [fsize bsize bps/cpg] > c: 2200905 0 unused 0 0 # (Cyl. 0-136) > e: 2200905 0 4.2BSD 0 0 0 # (Cyl. 0-136) > ---- > Create the new file systems using defaults from sysinstall: > > newfs -b 8192 -f 1024 /dev/rsd1s1e > newfs -b 8192 -f 1024 /dev/rsd1s2e > > also needed to create the device for sd1s2: > > SH makedev sd1s2 > ---- > Create mount points and edit /etc/fstab for new mounts > or mount them up manually.