targetcli does not recognize md partitions as block devices

Bug #1021785 reported by Freaky
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
targetcli (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

walking my first steps with LIO, moving away from IET and running into an issue.

Rather than have several MD devices created out of partitions, we did the reverse. Added entire disks to MD and partitioned the MD set, resulting in device like /dev/md4p1, /dev/md4p2, etc.

Whilst these are block devices (afaik, seem to act that way everywhere else), targetcli doesn't seem to recognize them. At least not on the Ubuntu 12.04 server I'm trying it with, frequently giving not so savvy errors:

/backstores/fileio> create tt /dev/md4p1
For fileio, you must either specify both a file and a size, or just a device path.

Can't create it, did specify a path (more accurate error would be nice)

/backstores/fileio> create tt /dev/md4
Generating a wwn serial.
Not using buffered mode.
Created fileio tt with size None.
Entering new node /backstores/fileio/tt
No such path /backstores/fileio/tt

Creates it, but does give a no such path error, can cd into it and get status just fine....

/backstores/fileio> ls
o- fileio ................................................... [1 Storage Object]
  o- tt ................................................. [/dev/md4 deactivated]
/backstores/fileio> cd tt
/backstores/fileio/tt> ls
o- tt ................................................... [/dev/md4 deactivated]
/backstores/fileio/tt> status
Status for /backstores/fileio/tt: /dev/md4 deactivated
/backstores/fileio/tt> cd ..

/backstores/fileio> delete tt
Deleted storage object tt.

Deletes fine.

/backstores/fileio> cd ../iblock
/backstores/iblock> create tt /dev/md4p1
Generating a wwn serial.
Device is not a TYPE_DISK block device.

Same issue here as blockio.

/backstores/iblock> create tt /dev/md4
Generating a wwn serial.
Created iblock storage object tt using /dev/md4.
Entering new node /backstores/iblock/tt
No such path /backstores/iblock/tt

Just like fileio creates it, but states no such path... Again can CD into it and get status tho'.

/backstores/iblock> cd tt
/backstores/iblock/tt> status
Status for /backstores/iblock/tt: /dev/md4 deactivated
/backstores/iblock/tt> cd ..
/backstores/iblock> delete tt
Deleted storage object tt.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: targetcli 2.0rc1-2
ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
Uname: Linux 3.2.0-26-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Fri Jul 6 17:33:29 2012
InstallationMedia: Ubuntu-Server 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
PackageArchitecture: all
SourcePackage: targetcli
UpgradeStatus: Upgraded to precise on 2012-07-06 (0 days ago)

Revision history for this message
Freaky (freaky) wrote :
Revision history for this message
Freaky (freaky) wrote :

What does it take to get a response here?

This doesn't really make me confident about Ubuntu on servers. Any response - including we don't care - would have been better than utter silence.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in targetcli (Ubuntu):
status: New → Confirmed
Revision history for this message
Max Krasilnikov (pseudo) wrote :

Hello!

Anybody here?
2 years and no advance :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.