Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a hard drive that used to be part of a ZFS pool, but has since been removed. I want to use it as a backup drive. When I plug the drive in, it shows up as two physical devices:
Code:
/dev/sdb
/dev/sdc
I can verify these two physical devices are on the same drive by looking at the serial number associated with each after doing
Code:
hdparm -I /dev/sd[bc]
.
I'd like to merge these two devices into one so that I can use the drive as a single backup drive. Could anybody help me with this, or point me in a direction where I can find this information? Google is no help, I'm afraid. Thanks!
this is exactly the same data, two times. This HDD has a sata interface, not usb. Probably it is your sata to usb adapter which doubles the device.
Thank you, pan64. Yes, the HDD is a SATA drive in a USB enclosure. Agreed on the data from hdparm, but that does not explain the output from lsblk, which shows two different disks of two different sizes.
In lsscsi you are showing:
[1:0:0:0] disk Hitachi HDS5C3030ALA630 0200 /dev/sdb
[1:0:0:1] disk Hitachi HDS5C3030ALALUN1 0200 /dev/sdc
In your earlier output you had the same model for sdb and sdc: HDS5C3030ALA630
The names seen in lsscsi appear to be extensions of that model. Both disks are devices on the same controller path, 1:0.0.
Online information only discusses the disk itself. What model of USB enclosure are you using? Does it have an interface that is traversible? You might want to research that to see if there is a guide for it.
Was this disk previously on the same system when it was ZFS? If may be the entries seen are recreations of what it saw when the USB enclosure with this disk was previously attached. If so removing the USB enclosure from the server, cleaning up old device entries, and re-attaching would help. I've had to do that when presenting LUNs from SAN that I've changed at SAN level.
Which Linux distro and version you're using?
Usually when you attach USB based drives it spits out a lot of information to the system log (/var/log/messages or journalctl if systemd). Examining those may give you information.
Also you might want to examine the USB enclosure itself to see if it has any physical options to reset the drive setup (while detached from any server).
Of course an easy way to get the space from both sdb and sdc together would be to pvcreate both then add both to a single volume group with vgcreate. You can then use lvcreate to create a logical volume using VG space. I highly recommend putting even single drives in LVM because changing its LVs later is much easier than resizing partitions. It also has the flexibility of letting you add and remove PVs (drives or partitions) to change the size of the VG.
Man LVM is a good place to start.
Last edited by MensaWater; 04-04-2019 at 10:32 AM.
pan64 and MensaWater: thanks. I'm going to try swapping USB enclosures as soon as I can find someone with one they're willing to lend out. Seems I cannot find a model number on the enclosure, so who knows what it's doing.
The machine I have the drive connected to right now has never seen this device before, and is not the machine with the ZFS pool I speak of.
I'll report back whatever I can. Thanks again for the ideas.
After some looking, I have found that some older HDD enclosures (which this one is) have a limit of 2.0TB capacity. While I can't find a part or model number for this device and cannot confirm this, I suspect this is what is going on here. Thanks for the info, all!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.