The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
# <strong>for</strong> i in 0.0.0<strong>10</strong>2 0.0.0<strong>10</strong>3<br />
> do<br />
> dasdfmt -b 4096 -y -f /dev/disk/by-path/ccw-$i &<br />
> done<br />
[1] 1637<br />
[2] 1638<br />
... wait <strong>for</strong> the two jobs to finish<br />
...<br />
Finished <strong>for</strong>matting the device.<br />
Finished <strong>for</strong>matting the device.<br />
Rereading the partition table... ok<br />
Rereading the partition table... ok<br />
[1]- Done dasdfmt -b 4096 -y -f /dev/disk/by-path/ccw-$i<br />
[2]+ Done dasdfmt -b 4096 -y -f /dev/disk/by-path/ccw-$i<br />
# fdasd -a /dev/disk/by-path/ccw-0.0.0<strong>10</strong>2<br />
reading volume label ..: VOL1<br />
reading vtoc ..........: ok<br />
auto-creating one partition <strong>for</strong> the whole disk...<br />
writing volume label...<br />
writing VTOC...<br />
rereading partition table...<br />
# fdasd -a /dev/disk/by-path/ccw-0.0.0<strong>10</strong>3<br />
reading volume label ..: VOL1<br />
reading vtoc ..........: ok<br />
auto-creating one partition <strong>for</strong> the whole disk...<br />
writing volume label...<br />
writing VTOC...<br />
rereading partition table...<br />
► Make a backup of /etc/dasd.conf, then add minidisks <strong>10</strong>2 and <strong>10</strong>3 to it:<br />
# cd /etc<br />
# cp dasd.conf dasd.conf.orig<br />
# vi dasd.conf<br />
0.0.0301 use_diag=0 readonly=0 erplog=0 failfast=0<br />
0.0.0300 use_diag=0 readonly=0 erplog=0 failfast=0<br />
0.0.0<strong>10</strong>1 use_diag=0 readonly=0 erplog=0 failfast=0<br />
0.0.0<strong>10</strong>0 use_diag=0 readonly=0 erplog=0 failfast=0<br />
0.0.0<strong>10</strong>2<br />
0.0.0<strong>10</strong>3<br />
► Verify the new minidisks are actived with the lsdasd command:<br />
# lsdasd<br />
Bus-ID Status Name Device Type BlkSz Size Blocks<br />
==============================================================================<br />
Bus-ID Status Name Device Type BlkSz Size Blocks<br />
==============================================================================<br />
0.0.0<strong>10</strong>0 active dasda 94:0 ECKD 4096 2347MB 600840<br />
0.0.0<strong>10</strong>1 active dasdb 94:4 ECKD 4096 2347MB 600840<br />
0.0.0300 active dasdc 94:8 FBA 512 256MB 524288<br />
0.0.0301 active dasdd 94:12 FBA 512 512MB <strong>10</strong>48576<br />
0.0.0<strong>10</strong>2 active dasde 94:16 ECKD 4096 1173MB 300420<br />
0.0.0<strong>10</strong>3 active dasdf 94:20 ECKD 4096 1173MB 300420<br />
If you are creating a new logical volume, see 13.2.1, “Creating a logical volume and file<br />
system” on page 194. If you are extending an existing logical volume, skip ahead to 13.3,<br />
“Extending an existing logical volume” on page 198<br />
Chapter 13. Miscellaneous recipes 193