Following is the method I used to switch a swap from FBA to DIAG.  I did
not wish to use the third party SWAPGEN EXEC.

1) update /etc/init.d/boot.swap 
     remove mkswap command
   shutdown
2) update PROFILE EXEC (swaps are formatted here)
   change format 162 h 
       to format 162 h (blksize 512             
   boot system 
3) YaST DASD : 
      Deactivate the 162 device
      set Diag On for the 162 device
      Activate the 162 device
   Set MODULE="dasd_fba_mod" instead of MODULE="dasd_diag_mod" 
       in /etc/sysconfig/hardware/hwcfg-dasd-bus-ccw-0.0.0162
       leave as is DASD_USE_DIAG="1"
   mkswap /dev/dasdd1
   swapon -a  
   lsdasd  (swap device 162 should show as DIAG now, not FBA)
   cd /boot 
   mkinitrd
   zipl -V
   update /etc/init.d/boot.swap
     add mkswap command
   shutdown
   boot system again

--- On Wed, 7/29/09, Mrohs, Ray <ray.mr...@usdoj.gov> wrote:


From: Mrohs, Ray <ray.mr...@usdoj.gov>
Subject: Dasd_diag_mod question
To: LINUX-390@VM.MARIST.EDU
Date: Wednesday, July 29, 2009, 2:04 PM


Hi All,

We are running SLES10 SP2, and I am trying to switch our vdisk swap from
fba to diag. So far I: 

1) run SWAPGEN EXEC with the reuse option (vdisks are defined in the CP
directory)
2) included dasd_diag_mod in the kernel configuration and ran mkinitrd
(verified with lsmod)
3) set the yast DASD option to use diag for the vdisk devices (verified
in /etc/sysconfig/hardware/*)
4) included the devices in fstab as swap
5) reboot

/etc/fstab:
/dev/dasdf1          none                 swap       sw
0 0
/dev/dasdg1          none                 swap       sw
0 0
/dev/dasdh1          none                 swap       sw
0 0

Swapon -s:
Filename                                Type            Size    Used
Priority
/dev/dasdf1                             partition       123948  0
-1
/dev/dasdg1                             partition       247912  0
-2
/dev/dasdh1                             partition       371872  0
-3

But the disks still show up like this:
0.0.0105(FBA ) at ( 94: 20) is dasdf      : active at blocksize 512,
250000 blocks, 122 MB
0.0.0106(FBA ) at ( 94: 24) is dasdg      : active at blocksize 512,
500000 blocks, 244 MB
0.0.0107(FBA ) at ( 94: 28) is dasdh      : active at blocksize 512,
750000 blocks, 366 MB

How can I figure out what's missing?
Any help is appreciated.

Ray Mrohs
US DOJ

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390





----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to