Mismatch between physical geometry and disk label contents

From: Johan Hartzenberg (jhartzen@csc.com)
Date: Thu Apr 17 2003 - 09:23:04 EDT


Hi gurus,

I was happily scripting a couple of weeks ago and came across something
that produced a message similar to this (off the top of my head)

Warning: The label contents does not match the geometry reported by the
physical device.

Now I can not remember the command I ran, but I want to use it in another
script. I was busy writing a script to report on raw disk sizes as seen by
Solaris (not Veritas), and I was playing with commands like

format, prtvtoc, fmthard

I've been searching the web and sunsolve, but I can't find out what it is I
did. Makes me want to "script" to record everything I do... !

The situation I have is that sometimes when the storage administrators
allocate a whole bunch of LUNs I do not check each individually, and
sometimes I don't realise I am not seeing the full LUN (eg if the first
sector of an expanded LUN was previously the first sector of a smaller
LUN). I am trying to write a script which will tell me where I may be
using LUNs without getting access to the whole full size of the LUN.

moreover, I have tried to write something to compare the output of fdisk -g
with that of fdisk -G, but I always get the following message:

# fdisk -g /dev/rdsk/c3t11d4s2
* Label geometry for device /dev/rdsk/c3t11d4s2
* PCYL NCYL ACYL BCYL NHEAD NSECT SECSIZ
  39516 39516 2 0 15 96 512
# fdisk -G /dev/rdsk/c3t11d4s2
/dev/rdsk/c3t11d4s2: Cannot get physical disk geometry.

devinfo appears totally useless, and on Solaris 2.6 I get for -g and -G
both:

      Disk does not support fixed disk partition table

Any ideas/suggestions ?

Thanx,
 _Johan
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:12 EDT