← Back to team overview

touch-packages team mailing list archive

[Bug 1532062] Re: Drives mistakenly reported as removable

 

Sure, output is below (sorry its a bit hard to structure it in an easy
to read manner here):

lsblk --bytes --pairs --output=ALIGNMENT,DISC-ALN,DISC-GRAN,DISC-MAX
,DISC-ZERO,FSTYPE,GROUP,KNAME,LABEL,LOG-SEC,MAJ:MIN,MIN-
IO,MODE,MODEL,MOUNTPOINT,NAME,OPT-IO,OWNER,PHY-SEC,RM,RO,ROTA,RQ-
SIZE,SIZE,STATE,TYPE,UUID

ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="disk" KNAME="sda" LABEL="" LOG-SEC="512" MAJ:MIN="8:0" MIN-IO="512" MODE="brw-rw----" MODEL="main            " MOUNTPOINT="" NAME="sda" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="107363696640" STATE="running" TYPE="disk" UUID=""
ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="disk" KNAME="sda1" LABEL="" LOG-SEC="512" MAJ:MIN="8:1" MIN-IO="512" MODE="brw-rw----" MODEL="" MOUNTPOINT="/" NAME="sda1" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="107362631168" STATE="" TYPE="part" UUID=""
ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="disk" KNAME="sdb" LABEL="" LOG-SEC="512" MAJ:MIN="8:16" MIN-IO="512" MODE="brw-rw----" MODEL="storage         " MOUNTPOINT="" NAME="sdb" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="186004799488" STATE="running" TYPE="disk" UUID=""
ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="disk" KNAME="sdb1" LABEL="" LOG-SEC="512" MAJ:MIN="8:17" MIN-IO="512" MODE="brw-rw----" MODEL="" MOUNTPOINT="/var/lib/ceph/osd/ceph-0" NAME="sdb1" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="184929992192" STATE="" TYPE="part" UUID=""
ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="disk" KNAME="sdb2" LABEL="" LOG-SEC="512" MAJ:MIN="8:18" MIN-IO="512" MODE="brw-rw----" MODEL="" MOUNTPOINT="" NAME="sdb2" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="1072693760" STATE="" TYPE="part" UUID=""
ALIGNMENT="0" DISC-ALN="0" DISC-GRAN="0" DISC-MAX="0" DISC-ZERO="0" FSTYPE="" GROUP="cdrom" KNAME="sr0" LABEL="" LOG-SEC="512" MAJ:MIN="11:0" MIN-IO="512" MODE="brw-rw----" MODEL="UJDA780 DVD/CDRW" MOUNTPOINT="" NAME="sr0" OPT-IO="0" OWNER="root" PHY-SEC="512" RM="1" RO="0" ROTA="1" RQ-SIZE="128" SIZE="1073741312" STATE="running" TYPE="rom" UUID=""


output of sudo python -c 'import json, curtin.block; print(json.dumps(curtin.block._lsblock(), indent=1))'
{
 "sdb2": {
  "GROUP": "disk", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "", 
  "MODEL": "", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sdb2", 
  "DISC-ZERO": "0", 
  "UUID": "", 
  "STATE": "", 
  "MOUNTPOINT": "", 
  "FSTYPE": "", 
  "SIZE": "1072693760", 
  "MAJ:MIN": "8:18", 
  "DISC-GRAN": "0", 
  "NAME": "sdb2", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sdb2", 
  "TYPE": "part", 
  "PHY-SEC": "512"
 }, 
 "sdb1": {
  "GROUP": "disk", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "", 
  "MODEL": "", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sdb1", 
  "DISC-ZERO": "0", 
  "UUID": "3a32991b-299a-471f-b5b0-63962dd84936", 
  "STATE": "", 
  "MOUNTPOINT": "/var/lib/ceph/osd/ceph-0", 
  "FSTYPE": "xfs", 
  "SIZE": "184929992192", 
  "MAJ:MIN": "8:17", 
  "DISC-GRAN": "0", 
  "NAME": "sdb1", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sdb1", 
  "TYPE": "part", 
  "PHY-SEC": "512"
 }, 
 "sr0": {
  "GROUP": "cdrom", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "", 
  "MODEL": "UJDA780 DVD/CDRW", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sr0", 
  "DISC-ZERO": "0", 
  "UUID": "", 
  "STATE": "running", 
  "MOUNTPOINT": "", 
  "FSTYPE": "", 
  "SIZE": "1073741312", 
  "MAJ:MIN": "11:0", 
  "DISC-GRAN": "0", 
  "NAME": "sr0", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sr0", 
  "TYPE": "rom", 
  "PHY-SEC": "512"
 }, 
 "sda": {
  "GROUP": "disk", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "", 
  "MODEL": "main            ", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sda", 
  "DISC-ZERO": "0", 
  "UUID": "", 
  "STATE": "running", 
  "MOUNTPOINT": "", 
  "FSTYPE": "", 
  "SIZE": "107363696640", 
  "MAJ:MIN": "8:0", 
  "DISC-GRAN": "0", 
  "NAME": "sda", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sda", 
  "TYPE": "disk", 
  "PHY-SEC": "512"
 }, 
 "sdb": {
  "GROUP": "disk", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "", 
  "MODEL": "storage         ", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sdb", 
  "DISC-ZERO": "0", 
  "UUID": "", 
  "STATE": "running", 
  "MOUNTPOINT": "", 
  "FSTYPE": "", 
  "SIZE": "186004799488", 
  "MAJ:MIN": "8:16", 
  "DISC-GRAN": "0", 
  "NAME": "sdb", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sdb", 
  "TYPE": "disk", 
  "PHY-SEC": "512"
 }, 
 "sda1": {
  "GROUP": "disk", 
  "OPT-IO": "0", 
  "DISC-MAX": "0", 
  "LABEL": "cloudimg-rootfs", 
  "MODEL": "", 
  "RQ-SIZE": "128", 
  "MODE": "brw-rw----", 
  "ROTA": "1", 
  "RM": "1", 
  "RO": "0", 
  "device_path": "/dev/sda1", 
  "DISC-ZERO": "0", 
  "UUID": "08f3a9f6-5b88-4389-9cb1-1a91d9717b57", 
  "STATE": "", 
  "MOUNTPOINT": "/", 
  "FSTYPE": "ext4", 
  "SIZE": "107362631168", 
  "MAJ:MIN": "8:1", 
  "DISC-GRAN": "0", 
  "NAME": "sda1", 
  "LOG-SEC": "512", 
  "DISC-ALN": "0", 
  "ALIGNMENT": "0", 
  "MIN-IO": "512", 
  "OWNER": "root", 
  "KNAME": "sda1", 
  "TYPE": "part", 
  "PHY-SEC": "512"
 }
}

finally, output of dpkg-query --show util-linux
util-linux	2.20.1-5.1ubuntu20.7

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1532062

Title:
  Drives mistakenly reported as removable

Status in util-linux package in Ubuntu:
  New

Bug description:
  I have multiple servers which report their drives are removable, even
  though the drives are the main drives in the device (/dev/sda,
  /dev/sdb, etc). One of such machines (an IBM system x3650 M1) I have
  pulled a report from lsblk and lshw below and included them. These are
  configured using the RAID controller that came with the machine. I can
  provide any other information needed. I am seeing the same on a HP
  proliant DL100 g2. In this case the removable tag is triggering a
  problem with curtin since curtin currently refuses to install to
  drives reported as removable by lsblk.

  output of: lsblk -l
  NAME MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  sda    8:0    1   100G  0 disk 
  sda1   8:1    1   100G  0 part /
  sdb    8:16   1 173.2G  0 disk 
  sdb1   8:17   1 172.2G  0 part /var/lib/ceph/osd/ceph-0
  sdb2   8:18   1  1023M  0 part 
  sr0   11:0    1  1024M  0 rom  

  output of: sudo lshw -class disk
    *-disk:0                
         description: SCSI Disk
         physical id: 0.0.0
         bus info: scsi@2:0.0.0
         logical name: /dev/sda
         size: 99GiB (107GB)
         capabilities: partitioned partitioned:dos
         configuration: sectorsize=512
    *-disk:1
         description: SCSI Disk
         physical id: 0.1.0
         bus info: scsi@2:0.1.0
         logical name: /dev/sdb
         size: 173GiB (186GB)
         capabilities: gpt-1.00 partitioned partitioned:gpt
         configuration: guid=66a282c8-da87-4502-902d-ce5c7b4da275 sectorsize=512
    *-disk:2 UNCLAIMED
         description: SCSI Disk
         physical id: 1.0.0
         bus info: scsi@2:1.0.0
    *-disk:3 UNCLAIMED
         description: SCSI Disk
         physical id: 1.1.0
         bus info: scsi@2:1.1.0
    *-cdrom
         description: DVD reader
         product: UJDA780 DVD/CDRW
         vendor: MATSHITA
         physical id: 0.0.0
         bus info: scsi@1:0.0.0
         logical name: /dev/cdrom
         logical name: /dev/sr0
         version: CA21
         capabilities: removable audio cd-r cd-rw dvd
         configuration: ansiversion=5 status=nodisc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1532062/+subscriptions


References