Comment 1 for bug 1899477

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

As confirmation to prove that it can work.
After re-formatting the dasd blksize to match the 512 of the fcp disks as following I was able to "unite" them in one LVM.

$ sudo dasdfmt /dev/disk/by-path/ccw-0.0.254e
[sudo] password for ubuntu:
Please enter the blocksize of the formatting [4096]: 512
Drive Geometry: 60102 Cylinders * 15 Heads = 901530 Tracks
Device Type: Fully Provisioned
I am going to format the device /dev/disk/by-path/ccw-0.0.254e in the following way:
   Device number of device : 0x254e
   Labelling device : yes
   Disk label : VOL1
   Disk identifier : 0X254E
   Extent start (trk no) : 0
   Extent end (trk no) : 901529
   Compatible Disk Layout : yes
   Blocksize : 512
   Mode : Full
...

$ sudo fdasd /dev/disk/by-path/ccw-0.0.254e
...
$ lsdasd | grep 512
0.0.154e active dasdc 94:8 ECKD 512 21569MB 44174970
0.0.254e active dasdf 94:20 ECKD 512 21569MB 44174970

$ sudo pvcreate /dev/disk/by-path/ccw-0.0.254e-part1
$ sudo pvcreate /dev/disk/by-path/ccw-0.0.154e-part1
$ sudo vgextend ubuntu-vg /dev/disk/by-path/ccw-0.0.254e-part1 /dev/disk/by-path/ccw-0.0.154e-part1
  Volume group "ubuntu-vg" successfully extended
$ sudo lvextend /dev/ubuntu-vg/ubuntu-lv /dev/disk/by-path/ccw-0.0.254e-part1 /dev/disk/by-path/ccw-0.0.154e-part1
  Size of logical volume ubuntu-vg/ubuntu-lv changed from 126.99 GiB (32510 extents) to <169.12 GiB (43294 extents).
  Logical volume ubuntu-vg/ubuntu-lv successfully resized.