From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Levi Ashcol Newsgroups: gmane.os.tru64.managers Subject: [SUMMARY] (Not Resolved) LSM Basic question ! Date: Mon, 19 Jan 2004 18:34:25 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1074530240 503 80.91.224.253 (19 Jan 2004 16:37:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2004 16:37:20 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jan 19 17:37:01 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AicOa-0007Zo-00 for ; Mon, 19 Jan 2004 17:37:00 +0100 Original-Received: (qmail 26187 invoked by uid 5); 19 Jan 2004 16:36:52 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26172 invoked by uid 49493); 19 Jan 2004 16:36:52 -0000 Original-Received: from leviashcol@hotpop.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-2.7/5.0):. Processed in 19.25957 secs); 19 Jan 2004 16:36:52 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 19 Jan 2004 16:36:33 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HRQ00B1KWSWR3@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 19 Jan 2004 11:36:32 -0500 (EST) Original-Received: from twix.hotpop.com (twix.hotpop.com [38.113.3.71]) by emroute3.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HRQ00B3ZWS8H1@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 19 Jan 2004 11:36:08 -0500 (EST) Original-Received: from hotpop.com (kubrick.hotpop.com [38.113.3.103]) by twix.hotpop.com (Postfix) with SMTP id 40B0AC0CF20 for ; Mon, 19 Jan 2004 16:27:54 +0000 (UTC) Original-Received: from os (unknown [62.114.57.71]) by smtp-1.hotpop.com (Postfix) with ESMTP id 161B31A0163 for ; Mon, 19 Jan 2004 16:17:53 +0000 (UTC) In-reply-to: Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal X-HotPOP: ----------------------------------------------- Sent By HotPOP.com FREE Email Get your FREE POP email at www.HotPOP.com ----------------------------------------------- Xref: main.gmane.org gmane.os.tru64.managers:6236 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6236 Thanks to: Tim Brown, Martin R=F8nde Andersen, John Lanier, BL Venkatesh, Elle van der Molen, Jos=E9 Eduardo Mendon=E7a 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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D 1. Make sure all the devices visible to the system are registered with hwmgr by running scu scan edt.=20 2. Look at the output of hwmgr -view dev, identify the disks.=20 3. Check the disklabels of all disk devices using disklabel -r dsk# 4. Identify partitions in use by LSM as indicated in the disklabel.=20 5. Run volprint on each disk (for fully encapsulated disks)/or LSM partition. Examples shown for both.=20 The diskgroup the disk/partition belongs to will be visible in the "Group:" field.=20 >From this you can build up a list of diskgroups and what disks/partitions belong in them.=20 root@itu:># hwmgr -view dev HWID: Device Name Mfg Model Location =20 ------------------------------------------------------------------------ ------ 4: /dev/dmapi/dmapi =20 5: /dev/scp_scsi =20 6: /dev/kevm =20 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=3D1750 55: /dev/random =20 56: /dev/urandom =20 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 =20 ------------------------------------------------------------------------ ------ 4: /dev/dmapi/dmapi =20 5: /dev/scp_scsi =20 6: /dev/kevm =20 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=3D1750 55: /dev/random =20 56: /dev/urandom =20 57: /dev/cport/scp0 HSG80CCL bus-5-targ-0-lun-0 68: /dev/disk/dsk1c DEC HSG80 IDENTIFIER=3D1666 <-- new disk added since last reboot.=20 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=20 e: 0 0 unused 0 0 # 0 - 0=20 f: 0 0 unused 0 0 # 0 - 0=20 g: 99531259 0 LSMpubl # 0 - 19592* h: 4096 99531259 LSMpriv # 19592*- 19593* root@itu:># voldisk list dsk1=20 Device: dsk1 devicetag: dsk1 type: sliced hostid: 19675:12:17:22 disk: name=3Dweb01 id=3D1074039318.1230.19675:12:17:22 group: name=3Dwebdg id=3D1074039407.1235.19675:12:17:22 flags: online ready autoimport imported pubpaths: block=3D/dev/disk/dsk1g char=3D/dev/rdisk/dsk1g privpaths: block=3D/dev/disk/dsk1h char=3D/dev/rdisk/dsk1h version: 2.1 iosize: min=3D512 (bytes) max=3D2048 (blocks) public: slice=3D6 offset=3D16 len=3D99531243 private: slice=3D7 offset=3D0 len=3D4096 update: time=3D1074039407 seqno=3D0.7 headers: 0 248 configs: count=3D2 len=3D1496 logs: count=3D2 len=3D226 Defined regions: config priv 17- 247[ 231]: copy=3D01 offset=3D000000 enabled config priv 249- 1513[ 1265]: copy=3D01 offset=3D000231 enabled log priv 1514- 1739[ 226]: copy=3D01 offset=3D000000 enabled log priv 2357- 2582[ 226]: copy=3D02 offset=3D000000 enabled config priv 2583- 4078[ 1496]: copy=3D02 offset=3D000000 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* =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D -----Original Message----- From: Levi Ashcol [mailto:leviashcol@hotpop.com]=20 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