Bug#1004292: debian-installer:s390x: installer fails to format dasd disc on s390x systems
Source: debian-installer
Version: 20210731+deb11u2
Severity: important
Tags: d-i s390-dasd upstream
X-Debbugs-Cc: dipak.zope1@ibm.com
On s390x machines with dasd disc, the installer fails to format the dasd
disc.
Logs:
Jan 24 12:25:13 main-menu[341]: INFO: Menu item 's390-dasd' selected
Jan 24 12:25:19 s390-dasd[3224]: dasdfmt:
Jan 24 12:25:19 main-menu[341]: WARNING **: Configuring 's390-dasd' failed with error code 1
Jan 24 12:25:19 main-menu[341]: WARNING **: Menu item 's390-dasd' failed.
Root cause:
The s390-dasd package calls dasdfmt with '-f' option which is obselete
long ago.
Proposed Fix:
s390-dasd / dasd-config.c: line 393:
Existing line: snprintf (buf, sizeof (buf), "dasdfmt -l LX%04x -b 4096 -m 1 -f %s -y", channel_device (channel_current->name), dev);
Proposed line: snprintf (buf, sizeof (buf), "dasdfmt -l LX%04x -b 4096 -m 1 %s -y", channel_device (channel_current->name), dev);
This fix is verified. Logs for reference after changes (with additional
debug statement):
Jan 23 05:21:16 main-menu[347]: INFO: Menu item 'clock-setup' selected
Jan 23 05:21:16 main-menu[347]: INFO: Menu item 's390-dasd' selected
Jan 23 05:21:16 main-menu[347]: INFO: Falling back to the package description for dasd-modules-5.10.0-10-s390x-di
Jan 23 05:21:16 main-menu[347]: INFO: Falling back to the package description for dasd-modules-5.10.0-10-s390x-di
Jan 23 05:21:21 kernel: [ 302.451325] dasd-eckd 0.0.2c7c: A channel path to the device has become operational
Jan 23 05:21:21 kernel: [ 302.461801] dasd-eckd 0.0.2c7c: New DASD 3390/0C (CU 3990/01) with 30051 cylinders, 15 heads, 224 sectors
Jan 23 05:21:21 kernel: [ 302.485675] dasd-eckd 0.0.2c7c: DASD with 4 KB/block, 21636720 KB total size, 48 KB/track, compatible disk layout
Jan 23 05:21:21 kernel: [ 302.486712] dasda:VOL1/ LX2C7C:
Jan 23 05:21:24 s390-dasd[3591]: INFO: DZDEBUG:01 executing: dasdfmt -l LX2c7c -b 4096 -m 1 /dev/disk/by-path/ccw-0.0.2c7c -y
Jan 23 05:21:24 s390-dasd[3591]: Printing hashmark every 10 cylinders.
Jan 23 05:23:45 kernel: [ 446.669429] dasd-eckd 0.0.2c7c: DASD with 4 KB/block, 21636720 KB total size, 48 KB/track, compatible disk layout
Jan 23 05:23:45 kernel: [ 446.669445] dasda: detected capacity change from 0 to 22156001280
Jan 23 05:23:45 kernel: [ 446.669876] dasda:
Jan 23 05:23:45 kernel: [ 446.673221] dasda:VOL1/ LX2C7C:
Jan 23 05:23:45 s390-dasd[3591]:
Jan 23 05:23:45 s390-dasd[3591]: Finished formatting the device.
Jan 23 05:23:45 s390-dasd[3591]: Rereading the partition table... ok
Jan 23 05:23:45 kernel: [ 446.675799] dasda:VOL1/ LX2C7C:
Jan 23 05:24:21 main-menu[347]: INFO: Menu item 's390-zfcp' selected
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: s390x
Reply to: