#783 Issue closed: s390x: dasd disks not recognized

Labels: bug, fixed / solved / done

gdha opened issue at 2016-02-17 10:12:

The dasd type of disks seem not be recognized by rear:

# parted /dev/dasda print
Model: IBM S390 DASD drive (dasd)
Disk /dev/dasda: 7385MB
Sector size (logical/physical): 512B/4096B
Partition Table: dasd
Disk Flags:

Number  Start   End     Size    File system     Flags
 1      98.3kB  420MB   419MB   ext2
 2      420MB   6862MB  6442MB  ext4
 3      6862MB  7385MB  523MB   linux-swap(v1)

and after running rear savelayout we have:

# cat ./var/lib/rear/layout/disklayout.conf 
# Filesystems (only ext2,ext3,ext4,vfat,xfs,reiserfs,btrfs are supported).
# Format: fs <device> <mountpoint> <fstype> [uuid=<uuid>] [label=<label>] [<attributes>]
fs /dev/dasda1 /boot/zipl ext2 uuid=c3f0be7b-9fb8-4998-a759-79089961212e label= blocksize=4096 reserved_blocks=4% max_mounts=-1 check_interval=0d bytes_per_inode=4095 default_mount_options=user_xattr,acl options=rw,relatime
fs /dev/dasda2 / ext4 uuid=24058327-c27d-482e-aaed-bc4b3b000c2d label= blocksize=4096 reserved_blocks=5% max_mounts=-1 check_interval=0d bytes_per_inode=16383 default_mount_options=user_xattr,acl options=rw,relatime,data=ordered
fs /dev/dasdb1 /data ext4 uuid=8664e8ad-8e53-42e5-b0bb-50a1607fefea label= blocksize=4096 reserved_blocks=4% max_mounts=-1 check_interval=0d bytes_per_inode=16379 default_mount_options=user_xattr,acl options=rw,relatime,data=ordered
# Swap partitions or swap files
# Format: swap <filename> uuid=<uuid> label=<label>
swap /dev/dasda3 uuid=088b4e39-84d2-4e10-b405-939ab580f54c label=

No trace of any disk definition.

gdha commented at 2016-02-17 11:44:

Now the first part is also created with the fix:

# Disk /dev/dasda
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/dasda 59076771840 dasd
# Partitions on /dev/dasda
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
part /dev/dasda 3355312128 786432 none  /dev/dasda1
part /dev/dasda 51538821120 3356098560 none  /dev/dasda2
part /dev/dasda 4181852160 54894919680 none  /dev/dasda3
# Disk /dev/dasdb
# Format: disk <devname> <size(bytes)> <partition label type>
disk /dev/dasdb 386446786560 dasd
# Partitions on /dev/dasdb
# Format: part <device> <partition size(bytes)> <partition start(bytes)> <partition type|name> <flags> /dev/<partition>
part /dev/dasdb 386446000128 786432 none  /dev/dasdb1

gdha commented at 2017-02-24 09:43:

See also https://github.com/rear/rear/commit/f719fee860f656859ec12838b0c5b36d32532d6a addition to find boot loader on dasd disks


[Export of Github issue for rear/rear.]