From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Markus Waldorf Newsgroups: gmane.os.tru64.managers Subject: LSM swap space science 2 Date: Wed, 02 Jul 2003 11:39:53 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1057138948 32042 80.91.224.249 (2 Jul 2003 09:42:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2003 09:42:28 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Jul 02 11:42:26 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19Xe82-0008KB-00 for ; Wed, 02 Jul 2003 11:42:19 +0200 Original-Received: (qmail 4075 invoked by uid 5); 2 Jul 2003 09:42:31 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4066 invoked by uid 49493); 2 Jul 2003 09:42:31 -0000 Original-Received: from waldorfm@rferl.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.0/5.0):. Processed in 0.819049 secs); 02 Jul 2003 09:42:31 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 2 Jul 2003 09:42:30 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHE00A355MSDV@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 02 Jul 2003 05:42:29 -0400 (EDT) Original-Received: from rferl.org (marconi.rferl.org [193.111.134.15]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHE0001K5M9I4@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 02 Jul 2003 05:42:10 -0400 (EDT) Original-Received: from prglnmail01.rferl.org (193.111.134.21) by rferl.org with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Wed, 02 Jul 2003 11:39:55 +0200 Original-Received: from [172.16.8.25] ([172.16.8.25]) by prglnmail01.rferl.org (Lotus Domino Release 6.0.1CF1) with ESMTP id 2003070211390481-9968 ; Wed, 02 Jul 2003 11:39:04 +0200 Original-To: Unix Managers X-MIMETrack: Itemize by SMTP Server on PRGLNMail01/CZ/RFERL(Release 6.0.1CF1 | March 06, 2003) at 07/02/2003 11:39:04 AM, Serialize by Router on PRGLNMail01/CZ/RFERL(Release 6.0.1CF1 | March 06, 2003) at 07/02/2003 11:39:06 AM, Serialize complete at 07/02/2003 11:39:06 AM User-Agent: Microsoft-Entourage/10.1.1.2418 Xref: main.gmane.org gmane.os.tru64.managers:4720 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4720 sorry, one more add-on. According to the LSM docuementation: 4.2.6=A0=A0=A0=A0Creating an LSM Volume for Secondary Swap Space It uses the command: #volassist -U gen make vol_swap2 128m nmirror=3D2 layout=3Dnolog If I understand correctly, the above creates a "generic" fstype volume. Now I wonder why it is not swap. Can only the primary swap volume be type "swap= " and any futher ones type "gen"? Hello, I have to admit that LSM has not done a very good job so far to make me mor= e comfortable with what I'm doing. I've been playing around with LSM for weeks, and I better not mention how many times I decided to start over and over again. I've been going through the documentation, best practices and mailing lists items, but I'm still searching for some clear answers. I believe having the filesystems configured properly is not a trivial issue, in particular LSM. Readme later. I'm searching for answers how to properly setup LSM swap space. So far I've come to the following conclusions. I go somewhere, but perhaps someone coul= d let me know if I'm at the right place. 1) swap volumes must belong to the rootdg disk group and must be nopriv disks - at least according to "volencap". The volencap command can be used to "encapsulate" a disk (whatever that means), or in other words, it makes nopriv disks and creates LSM volumes. Where disk can be a whole disk or jus= t a partition. For example, I created partitions dsk4b, dsk5b, all type unused, and want t= o use or prepare them for LSM swap mirror: # volencap dsk4b dsk5b # volreconfig The above will automatically create plexes and nopriv LSM volumes in the rootdg group. But what about swap space parameters? I cannot use the LSM GU= I to change the volumes to these parameters, even if the volumes are stopped = - it results just in errors about bad parameter combinations. 2) I was reading that swap space should be set no "no recover" and "no log"= . So I did the following in order to manually remove volumes from LSM and create them using command-line tools: >From the LSM gui advanced menu: - working on dsk4b - select volume, volume stop - select plex (big box) and move it off the volume - select volume (now empty) and use remove volume from the menu I don't like the default names so I right-click on the plex and the subdisk in order to make it more meaningful, e.g. dsk4b: Plex swapvol05-01, subdisk= : swap05-01. Than I issued the following commands to create a new volume named swapvol03 with the desired options: # volmake -U swap vol swapvol03 plex=3Dswapvol05-01 log_type=3DNONE # volume set start_opts=3Dnorecov swapvol03 I want to mirror dsk4b and dsk5b, so back in LSM gui: >From the LSM gui advanced menu: - working on dsk5b - select volume, volume stop - select plex (big box) and move it off the volume - select volume (now empty) and use remove volume from the menu - select subvolume within plex and move it off with the mouse - select plex and remove it - select subvolume on disk and remove it - select swapvol03 and middle-click dsk5b - from the basic LSM gui menu select add mirror - wait for it to complete - rename the subdisk and plex by right-clicking them Well, it seems to work, but what It adds another subdisk to each of the the swapvol03 plexes. Is that ok? I did not see this when using ie. "volrootmir= " Here is a volprint: # volprint -htl swapvol03 Disk group: rootdg Volume: swapvol03 info: len=3D8912896 type: usetype=3Dswap state: state=3DACTIVE kernel=3DENABLED assoc: plexes=3Dswapvol05-01,swapvol03-01 policies: read=3DROUND exceptions=3DGEN_DET_SPARSE flags: closed writeback logging: type=3DNONE apprecov: seqno=3D0 device: minor=3D1 bdev=3D40/1 cdev=3D40/1 path=3D/dev/vol/rootdg/swapvol03 perms: user=3Droot group=3Dsystem mode=3D0600 options: norecov Plex: swapvol05-01 info: len=3D8912896 type: layout=3DCONCAT state: state=3DACTIVE kernel=3DENABLED io=3Dread-write assoc: vol=3Dswapvol03 sd=3Dswap05-01p,swap05-01 flags: complete Subdisk: swap05-01p info: disk=3Ddsk4b offset=3D0 len=3D16 assoc: vol=3Dswapvol03 plex=3Dswapvol05-01 (offset=3D0) flags: enabled (nullwr) device: device=3Ddsk4b path=3D/dev/disk/dsk4b diskdev=3D81/257 Subdisk: swap05-01 info: disk=3Ddsk4b offset=3D16 len=3D8912880 assoc: vol=3Dswapvol03 plex=3Dswapvol05-01 (offset=3D16) flags: enabled device: device=3Ddsk4b path=3D/dev/disk/dsk4b diskdev=3D81/257 Plex: swapvol03-01 info: len=3D8912896 type: layout=3DCONCAT state: state=3DACTIVE kernel=3DENABLED io=3Dread-write assoc: vol=3Dswapvol03 sd=3Ddsk5b-01p,dsk5b-01 flags: complete Subdisk: dsk5b-01p info: disk=3Ddsk5b offset=3D0 len=3D16 assoc: vol=3Dswapvol03 plex=3Dswapvol03-01 (offset=3D0) flags: enabled (nullwr) device: device=3Ddsk5b path=3D/dev/disk/dsk5b diskdev=3D81/321 Subdisk: dsk5b-01 info: disk=3Ddsk5b offset=3D16 len=3D8912880 assoc: vol=3Dswapvol03 plex=3Dswapvol03-01 (offset=3D16) flags: enabled device: device=3Ddsk5b path=3D/dev/disk/dsk5b diskdev=3D81/321 # volprint -hlt swapvol03 Disk group: rootdg Volume: swapvol03 info: len=3D8912896 type: usetype=3Dswap state: state=3DACTIVE kernel=3DENABLED assoc: plexes=3Dswapvol05-01,swapvol06-01 policies: read=3DROUND exceptions=3DGEN_DET_SPARSE flags: closed writeback logging: type=3DNONE apprecov: seqno=3D0 device: minor=3D1 bdev=3D40/1 cdev=3D40/1 path=3D/dev/vol/rootdg/swapvol03 perms: user=3Droot group=3Dsystem mode=3D0600 options: norecov Plex: swapvol05-01 info: len=3D8912896 type: layout=3DCONCAT state: state=3DACTIVE kernel=3DENABLED io=3Dread-write assoc: vol=3Dswapvol03 sd=3Dswap05-01p,swap05-01 flags: complete Subdisk: swap05-01p info: disk=3Ddsk4b offset=3D0 len=3D16 assoc: vol=3Dswapvol03 plex=3Dswapvol05-01 (offset=3D0) flags: enabled (nullwr) device: device=3Ddsk4b path=3D/dev/disk/dsk4b diskdev=3D81/257 Subdisk: swap05-01 info: disk=3Ddsk4b offset=3D16 len=3D8912880 assoc: vol=3Dswapvol03 plex=3Dswapvol05-01 (offset=3D16) flags: enabled device: device=3Ddsk4b path=3D/dev/disk/dsk4b diskdev=3D81/257 Plex: swapvol06-01 info: len=3D8912896 type: layout=3DCONCAT state: state=3DACTIVE kernel=3DENABLED io=3Dread-write assoc: vol=3Dswapvol03 sd=3Dswap06-01p,swap06-01 flags: complete Subdisk: swap06-01p info: disk=3Ddsk5b offset=3D0 len=3D16 assoc: vol=3Dswapvol03 plex=3Dswapvol06-01 (offset=3D0) flags: enabled (nullwr) device: device=3Ddsk5b path=3D/dev/disk/dsk5b diskdev=3D81/321 Subdisk: swap06-01 info: disk=3Ddsk5b offset=3D16 len=3D8912880 assoc: vol=3Dswapvol03 plex=3Dswapvol06-01 (offset=3D16) flags: enabled device: device=3Ddsk5b path=3D/dev/disk/dsk5b diskdev=3D81/321 #=20