From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Trevor Osatchuk Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Disklabel for Mirrorset on HSG80 Date: Fri, 09 Mar 2007 11:03:38 -0700 Message-ID: <2a0cac560703091003p1ae4e5abg75eb46ec9ee50691@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1173463469 17327 80.91.229.12 (9 Mar 2007 18:04:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 9 Mar 2007 18:04:29 +0000 (UTC) To: tru64-unix-managers@ornl.gov Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Mar 09 19:04:24 2007 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1HPjRt-00066B-PQ for gotm-tru64-unix-managers@gmane.org; Fri, 09 Mar 2007 19:04:14 +0100 Original-Received: (qmail 22830 invoked by uid 49509); 9 Mar 2007 18:04:00 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22821 invoked from network); 9 Mar 2007 18:04:00 -0000 Original-Received: from emroute4.ornl.gov (160.91.86.27) by sws1.ornl.gov with SMTP; 9 Mar 2007 18:04:00 -0000 Original-Received: from emroute4.ornl.gov ([127.0.0.1]) by emroute4.ornl.gov (PMDF V6.3-x3 #31246) with ESMTP id <0JEN00MK5E6NHC@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Mar 2007 13:04:00 -0500 (EST) Original-Received: from CONVERSION-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.3-x3 #31246) id <0JEN00201E6N6X@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Mar 2007 13:03:59 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute4.ornl.gov by emroute4.ornl.gov (PMDF V6.3-x3 #31246) id <0JEN00202E6927@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Mar 2007 13:03:59 -0500 (EST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by emroute4.ornl.gov (PMDF V6.3-x3 #31246) with ESMTP id <0JEN0012NE67WF@emroute4.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 09 Mar 2007 13:03:45 -0500 (EST) Original-Received: by ug-out-1314.google.com with SMTP id h2so1399124ugf for ; Fri, 09 Mar 2007 10:03:39 -0800 (PST) Original-Received: by 10.114.60.19 with SMTP id i19mr654836waa.1173463418210; Fri, 09 Mar 2007 10:03:38 -0800 (PST) Original-Received: by 10.115.18.16 with HTTP; Fri, 09 Mar 2007 10:03:38 -0800 (PST) X-Envelope-from: fybar27@gmail.com Content-disposition: inline DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=JP2qU11G/zzS4p1cGEOH5FjlzNZsraOfwBfmpVSQIfz2qnAnI0GkNVEu1CZy+tDqCd/yEeW9eCz3vHT+sdVnzGtYvoC2A4pUm3ar2lu+BJbi6AYE/aOgCopuQqj0PcOnQAtajGfS1JlNf7+lZxqu30W2d1Psa7nCRlT34pYRl+Y= X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on email.ornl.gov X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DK_SIGNED,SPF_PASS autolearn=ham version=3.1.8 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=HwW8G/fk6oy0aMxA8wqmVZaspnxZdpcGoICOBSf0ZQQKZoh5gsmGSlCkSapfp1fCoTVxho9bFWx16FgqOu0OdIhHLhvOsmjCNyfKpfbBPNbzcyvJMyjn0sYhhge88Hbm/GtNbTNkB0xSU4eYfNAlpbGw1StQa++db8N19I2Uwv8= Xref: news.gmane.org gmane.os.tru64.managers:9162 Archived-At: Thanks to Steve VanDevender and Dirk Kleinhesselink. As I had thought the reported disk size by HP is probably using 1000 instead of 1024 for k. The more important issue of reported partition size and usable space was simply explained that newfs reserves 10% of disk space for root writes so that no matter how much space is used by non-priveleged users root will always have space available. The reasons for this are described by Steve: Partly this is because the file allocation algorithms for UFS-like filesystems can better avoid fragmentation if they can depend on having some free space available, and partly so that root will continue to be able to write files even if the space available to non-privileged users is full. The man page for tunefs says that setting this value to zero via newfs and the -m option can have the impact of lowering the throughput by a factor of 3. Steve also suggested that for large disks a smaller percentage of 5 or even 2 might be sufficient. Since this would primarily be used for defrag I can see the logic that something like a 1GB would easily be enough to defrag the largest drive. I will play with this value and run some tests to see if lowering it too much will cause any lag. Thanks again boys! Original post follows: I have a mirrorset on two HSG80's. I have it configured as folllows: HSG BOTTOM>sho dev Name Type Port Targ Lun Used by ------------------------------------------------------------------------------ DISK10000 disk 1 0 0 MIRR1 DISK10100 disk 1 1 0 DISK10200 disk 1 2 0 DISK20000 disk 2 0 0 MIRR1 DISK20100 disk 2 1 0 DISK20200 disk 2 2 0 HSG BOTTOM>sho mirr Name Storageset Uses Used by ------------------------------------------------------------------------------ MIRR1 mirrorset DISK10000 D0 DISK20000 The disks in question are Model: BF0728A4BA disks from HP. They have 72.8GB of space on them. I did the following on my Tru64 4.0F server to mount this raid: $> disklabel -wr /dev/rrz16a $> disklabel /dev/rrz16a # /dev/rrz16a: type: SCSI disk: HSG80 label: flags: bytes/sector: 512 sectors/track: 255 tracks/cylinder: 4 sectors/cylinder: 1020 cylinders: 8369 sectors/unit: 142229253 rpm: 3600 interleave: 1 trackskew: 7 cylinderskew: 26 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize cpg] # NOTE: values n ot exact a: 131072 0 unused 0 0 # (Cyl. 0 - 1 28*) b: 262144 131072 unused 0 0 # (Cyl. 128*- 3 85*) c: 142229253 0 unused 0 0 # (Cyl. 0 - 1 39440*) d: 0 0 unused 0 0 # (Cyl. 0 - - 1) e: 0 0 unused 0 0 # (Cyl. 0 - - 1) f: 0 0 unused 0 0 # (Cyl. 0 - - 1) g: 70918018 393216 unused 0 0 # (Cyl. 385*- 6 9912*) h: 70918019 71311234 unused 0 0 # (Cyl. 69912*- 139440*) I then did a newfs on partition 'c' to use the whole disk and mounted it: $>df -k Filesystem Size Used Avail Use% Mounted on /dev/rz16c 68883207 1 61994885 1% /mnt That shows roughly 66G gigs for size and only 59G available. A far cry from 72.8GB as labeled. So, is it my disklabel that is screwed or maybe a config on the HSG? Or, is it that HP reports 72.8GB using 1000 1024K blocks as opposed to 1024 1024K blocks? Also, why is the partition size shown as 66G but only had 59G available. Thanks, fybar