[SUMMARY] (Not Resolved) LSM Basic question !

From: Levi Ashcol (leviashcol@hotpop.com)
Date: Mon Jan 19 2004 - 11:34:25 EST


Thanks to:
 Tim Brown, Martin Rønde Andersen, John Lanier, BL Venkatesh, Elle van
der Molen, José Eduardo Mendonça Moras, Danielle Georgette.

Basicly most of people sent me methods to show only "imported" disk
groups.

Danielle Georgette sent me a detailed procedure to know "deported" disk
groups but it did not work for me may be it will work for others (It
only show imported dgs). Here is the procedure:

========================================================================
=
1. Make sure all the devices visible to the system are registered with
hwmgr by running scu scan edt.
2. Look at the output of hwmgr -view dev, identify the disks.
3. Check the disklabels of all disk devices using disklabel -r dsk#
4. Identify partitions in use by LSM as indicated in the disklabel.
5. Run volprint on each disk (for fully encapsulated disks)/or LSM
partition. Examples shown for both.
   The diskgroup the disk/partition belongs to will be visible in the
"Group:" field.

>From this you can build up a list of diskgroups and what
disks/partitions belong in them.

root@itu:># hwmgr -view dev
 HWID: Device Name Mfg Model Location
 
------------------------------------------------------------------------
------
    4: /dev/dmapi/dmapi
    5: /dev/scp_scsi
    6: /dev/kevm
   41: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0
   53: /dev/disk/cdrom0c COMPAQ CD-224E bus-1-targ-0-lun-0
   54: /dev/disk/dsk0c DEC HSG80 IDENTIFIER=1750
   55: /dev/random
   56: /dev/urandom
   57: /dev/cport/scp0 HSG80CCL bus-5-targ-0-lun-0

root@itu:># scu scan edt
Scanning all available buses, please be patient...

root@itu:># hwmgr -view dev
 HWID: Device Name Mfg Model Location
 
------------------------------------------------------------------------
------
    4: /dev/dmapi/dmapi
    5: /dev/scp_scsi
    6: /dev/kevm
   41: /dev/disk/floppy0c 3.5in floppy fdi0-unit-0
   53: /dev/disk/cdrom0c COMPAQ CD-224E bus-1-targ-0-lun-0
   54: /dev/disk/dsk0c DEC HSG80 IDENTIFIER=1750
   55: /dev/random
   56: /dev/urandom
   57: /dev/cport/scp0 HSG80CCL bus-5-targ-0-lun-0
   68: /dev/disk/dsk1c DEC HSG80 IDENTIFIER=1666
<-- new disk added since last reboot.

Dsk1 is an LSM encapsulated disk (g and h are pub/priv partitions using
all available space) :

root@itu:># disklabel -r dsk1
# /dev/rdisk/dsk1c:
type: SCSI
disk: HSG80
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl
values
  a: 131072 0 unused 0 0 # 0 -
25*
  b: 262144 131072 unused 0 0 # 25*-
77*
  c: 99535355 0 unused 0 0 # 0 -
19593*
  d: 0 0 unused 0 0 # 0 -
0
  e: 0 0 unused 0 0 # 0 -
0
  f: 0 0 unused 0 0 # 0 -
0
  g: 99531259 0 LSMpubl # 0 -
19592*
  h: 4096 99531259 LSMpriv # 19592*-
19593*

root@itu:># voldisk list dsk1
Device: dsk1
devicetag: dsk1
type: sliced
hostid: 19675:12:17:22
disk: name=web01 id=1074039318.1230.19675:12:17:22
group: name=webdg id=1074039407.1235.19675:12:17:22
flags: online ready autoimport imported
pubpaths: block=/dev/disk/dsk1g char=/dev/rdisk/dsk1g
privpaths: block=/dev/disk/dsk1h char=/dev/rdisk/dsk1h
version: 2.1
iosize: min=512 (bytes) max=2048 (blocks)
public: slice=6 offset=16 len=99531243
private: slice=7 offset=0 len=4096
update: time=1074039407 seqno=0.7
headers: 0 248
configs: count=2 len=1496
logs: count=2 len=226
Defined regions:
 config priv 17- 247[ 231]: copy=01 offset=000000 enabled
 config priv 249- 1513[ 1265]: copy=01 offset=000231 enabled
 log priv 1514- 1739[ 226]: copy=01 offset=000000 enabled
 log priv 2357- 2582[ 226]: copy=02 offset=000000 enabled
 config priv 2583- 4078[ 1496]: copy=02 offset=000000 enabled

Dsk0 has LSM encapsulated partitions rather than a whole encapsulated
disk:

root@itu:># disklabel -r dsk0
# /dev/rdisk/dsk0c:
type: SCSI
disk: HSG80
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl
values
  a: 2000000 0 AdvFS # 0 -
3921*
  b: 10000000 2000000 LSMnoprv # 3921*-
23529*
  c: 35557306 0 unused 0 0 # 0 -
69720*
  d: 2000000 12000000 LSMnoprv # 23529*-
27450*
  e: 2000000 14000000 LSMnoprv # 27450*-
31372*
  f: 2000000 16000000 LSMsimp # 31372*-
35294*
  g: 17549114 18000000 LSMsimp # 35294*-
69704*
  h: 8192 35549114 LSMsimp # 69704*-
69720*
========================================================================
======

-----Original Message-----
From: Levi Ashcol [mailto:leviashcol@hotpop.com]
Sent: Monday, January 12, 2004 8:16 PM
To: 'tru64-unix-managers@ornl.gov'
Subject: LSM Basic question !

Hi Managers,
Sorry for this basic question,
I just need to know a method to know all Disk groups on a given machine
even the "deported" ones !

Thanks

Levi



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:49 EDT