Mismatch between physical geometry and disk label contents

From: Johan Hartzenberg (jhartzen@csc.com)
Date: 04/17/03

  • Next message: Harbi, Fatima: "RE: tar: blocksize = 0"
    To: sunmanagers@sunmanagers.org
    From: "Johan Hartzenberg" <jhartzen@csc.com>
    Date: Thu, 17 Apr 2003 15:23:04 +0200
    

    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


  • Next message: Harbi, Fatima: "RE: tar: blocksize = 0"

    Relevant Pages

    • Re: Add lines to a file
      ... I need to write a script which adds lines to a file sd.conf as below. ... The only problem is target and lun no are different each time. ... want to add target 5 lun 3 etc...want to do this for multiple pairs at ...
      (comp.unix.shell)
    • Re: /dev/nst0: Cannot open: No such device
      ... Y, Z, and W with the host, bus, ID, and LUN of the tape drive. ... There is a script called rescan-scsi-bus.sh avaiable at ... The script makes it possible to rescan scsi devices ...
      (comp.os.linux.hardware)
    • Add lines to a file
      ... I need to write a script which adds lines to a file sd.conf as below. ... The only problem is target and lun no are different each time. ... want to add target 5 lun 3 etc...want to do this for multiple pairs at ...
      (comp.lang.awk)
    • Add lines to a file
      ... I need to write a script which adds lines to a file sd.conf as below. ... The only problem is target and lun no are different each time. ... want to add target 5 lun 3 etc...want to do this for multiple pairs at ...
      (comp.unix.shell)
    • Re: accessing fdisk -l as user
      ... as user on Ubuntu 8.04.1 LTS? ... I would like to use this information for a script ... According to the man page of fdisk, ... listed all my partitions using a $ prompt. ...
      (Ubuntu)

    Loading