Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 20:10:14 -0500
From:      "J.D. Bronson" <lists@xpec.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   4.5-REL adding a new SCSI drive woes
Message-ID:  <5.1.1.2.2.20020515195826.00b17978@molson.wixb.com>

next in thread | raw e-mail | index | archive | help
All I want to do is add another EXACT same SCSI drive to my FBSD box.
It is 100% same as the main drive.

I basically want to match the slices on the main drive 100%
(the main drive is da0s1)
# df
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/da0s1a    588590    30080   511424     6%    /
/dev/da0s1e   9072366   745870  7600708     9%    /usr
/dev/da0s1f   2519902      388  2317922     0%    /var
/dev/da0s1g   1032142     8674   940898     1%    /test
/dev/da0s1h   2620862    24598  2386596     1%    /home
/dev/da0s1d   1032618     3218   946792     0%    /scratch

-------------
So I did this:

#fdisk -BI da1

#disklabel -w -B da1s1 auto

#disklabel -e da1s1

No errors and I edited the disklabel and basically 'copied' how the
other drive was setup (since they are exactly the same and all)....

So far so good.

Until I tried to 'newfs' the new slice(s):

# newfs /dev/rda1s1a
Warning: Block size and bytes per inode restrict cylinders per group to 92.
/dev/rda1s1a:   1196032 sectors in 292 cylinders of 1 tracks, 4096 sectors
         584.0MB in 4 cyl groups (92 c/g, 184.00MB/g, 18560 i/g)
super-block backups (for fsck -b #) at:
  32, 376864, 753696, 1130528

 From looking at this, at least I know my disklabel is correct.

Here is my disklabel (relavent part)

8 partitions:
#     size  offset  fstype   [fsize bsize bps/cpg]
   a:  1196032  0    4.2BSD     2048 16384    92   # (Cyl.    0 - 74*)

Now, this value came from the 'main drive' and was setup this way from install.

I come from a solaris/OpenBSD scene and have never had to deal with 
anything other than "warning unalloctacted sectors....." stuff.

Can anyone shed some light here for me?

I have looked at the FAQ and search google, but most of the questions asked 
are about floppies.

btw, I can 'dd' the drive just fine (they both have the exact same cyl's)

# dd if=/dev/rda0s1c of=/dev/rda1s1c bs=1048576

that results in no errors, and presumably a cloned drive...but I really 
want to know how to FIX this?

TIA...

Jeff
Milwaukee


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.1.2.2.20020515195826.00b17978>