Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!mailrus!wuarchive!texbell!bigtex!pmafire!dave
From: dave@pmafire.UUCP (Dave Remien)
Newsgroups: comp.sys.hp
Subject: Disktab, newfs SCSI drives on HP9000/370
Keywords: disktab newfs df 370 argh!!!
Message-ID: <787@pmafire.UUCP>
Date: 29 Sep 89 15:53:00 GMT
Lines: 88

OK, all you cognizant HP types out there in netland:

I'm pretty (no, make that totally) confused by the following disktab
stuff on my two 370s, both with HP7959S drives (one with two), running
HP-UX version 6.5. 

Let me explain a bit more:

On my machine with two 7959S drives, I'm trying to split 24 megs of swap
space between the two disks, 12 megs a piece. The disktab entries follow.
(Stock HP).

###############################################
# The HP7959S has 12 surfaces (6 platters)
# Total formatted capacity: 323 MBytes
hp7959S_noswap|HP7959S_noswap:\
        :No swap:ns#16:nt#12:nc#1643:\
        :s0#315456:b0#8192:f0#1024:\
        :se#256:rm#3350:
hp7959S|HP_7959S:\
        :42 MBytes swap:ns#16:nt#12:nc#1419:\
        :s0#272448:b0#8192:f0#1024:\
        :se#256:rm#3350:
hp7959S_16MB|HP7959S_16MB:\
        :16 MBytes swap:ns#16:nt#12:nc#1472:\
        :s0#298906:b0#8192:f0#1024:\
        :se#256:rm#3350:
hp7959S_32MB|HP7959S_32MB:\
        :32 MBytes swap:ns#16:nt#12:nc#1472:\
        :s0#282624:b0#8192:f0#1024:\
        :se#256:rm#3350:

See anything weird about this yet? I'm baffled by the fact that nc for
the 16MB swap and 32MB swap entries are *exactly* the same.  Looking at
the 42MB swap and no swap entries, I'm led to believe that:

a. nc goes down by 5.333 cylinders per MB of swap

and

b. s0 (roughly) goes down by 1024 sectors per MB of swap.

Except for the 16MB swap entry.

OK. I make a new entry for my two 7959S drives that I want to have 12 MB
of swap each like so:

hp7959S_12MB|HP7959S_12MB:\
        :12 MBytes swap:ns#16:nt#12:nc#1578:\
        :s0#303168:b0#8192:f0#1024:\
        :se#256:rm#3350:


Then I turn newfs loose, and it *tells* me that its making a 310MB file
system on my drive. The kicker is from df:

/extra           (/dev/dsk/1s0   ):   511436 blocks        139388 i-nodes
                                      568284 total blocks  139392 total i-nodes
                                          18 used  blocks       4 used i-nodes
                                          10 percent minfree

/                (/dev/dsk/0s0   ):    40612 blocks        129031 i-nodes
                                      568284 total blocks  139392 total i-nodes
                                      470842 used  blocks   10361 used i-nodes
                                          10 percent minfree

Or, if you're a dfspace type,

Disk space ( /extra    ): 249.72 MB of 277.48 MB available (90.00%),
Disk space ( /         ): 19.97 MB of 277.48 MB available ( 7.20%),

Total disk space: 269.70 MB of 554.96 MB available (48.60%).


Which tells me that I've got either a 290961408 byte or a 277.5MB (not
the same, but I haven't gone back thru dfspace to see what it's awking)
file system, but certainly not a 310Mb file system. 

My question is, where did it (my extra 20MB or 30MB) go? What the heck
is going on??????? Is disktab as messed up as I think it is? Am I all
wet?

Anybody?

-- 
Dave Remien - WINCO Computer Eng. Group -{uunet | bigtex}!pmafire!dave- 
"And who's birthday is today?"     "Why, nobody, Hugh" 		(Firesign
"In history, Patty, before they changed the water...."           Theater)