Date: Fri, 14 Feb 1997 15:19:39 -0600 From: Dan Riley <driley@vailsys.com> 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?) Message-ID: <3304D6EB.2C09@vailsys.com> References: <Pine.BSF.3.91.970213144806.13614A-200000@crocodile.vale.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3304D6EB.2C09>