ltopers icon indicating copy to clipboard operation
ltopers copied to clipboard

optimize naming of mountpoint

Open dericed opened this issue 8 years ago • 8 comments

Currently mountlto uses /Volumes/${BARCODE} as a default mount point but if it can not determine that then it uses /Volumes/${DECK_SERIAL}. The process of getting these values involves running an lfts command without a mountpoint, which the intent that it fails but provides deck and tape metadata along the way to use in a second correct lfts command to do the mount.

This process requires a lot of time since it has to wait for an ltfs command to fail until running it correctly. I've been considering have the mountpoint always be /Volumes/${DECK_SERIAL} and to skip the first ltfs command (the one that gathers data) and do the second one directly. However I'm finding that it's not easy to make a quick request of the attached LTO deck's serial.

So far I have this command:

ioreg -c IOSCSITargetDevice | grep "INQUIRY Unit Serial Number" | cut -d"=" -f2

This is close but grabs a bunch of other serial numbers that aren't needed. Any better way to gather some form of deck specific identifier?

dericed avatar Mar 22 '17 18:03 dericed

We do work internally with the tape ID which for us is the same than the barcode, and for some of our clients the same than the six first chars of the barcode.

retokromer avatar Mar 22 '17 19:03 retokromer

We have some setups with LTO-5 Tandberg decks running http://www.tandbergdata.com/default/assets/File/Downloads/ltfs300/LTFS_3.0.0_Mac_OEM.zip and with this version of the utility there appears to be no means to query the barcode/tape_id which is why we fall back to the deck serial.

dericed avatar Mar 22 '17 19:03 dericed

Thank you! I’ll check tomorrow or on Friday this – and how we do it. We have a Tandberg LTO-5 deck.

retokromer avatar Mar 22 '17 19:03 retokromer

OK, I'd be curious what utility source you use with it and if ltfs -o devname=0 on it gives you back a tape id.

dericed avatar Mar 22 '17 19:03 dericed

The utility is derived from HP’s. It works for all decks we have in production (except Tandberg’s 24-slot which crashes when mixing up LTO-4 cartridges with LTO-5 and/or LTO-6, i.e. LTFS with pre-LTFS proprietary solutions).

retokromer avatar Mar 22 '17 19:03 retokromer

link?

dericed avatar Apr 04 '17 20:04 dericed

Do you still have this issue, @dericed?

retokromer avatar Jul 15 '18 13:07 retokromer

The Virtual Extended Attributes may possibly be of interest.

retokromer avatar Aug 27 '18 05:08 retokromer

closing as ltfs -o device_list and mountlto -n now list device serials.

dericed avatar Feb 14 '24 15:02 dericed