LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-13-2020, 11:05 AM   #1
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Rep: Reputation: 16
Ubuntu is not recognizing SAS drive


I'm truly stuck here. I'm trying to set up a RAID1 server using Ubuntu 18.04LTS. I think I fouled up one of the SAS drives when installing. I started the install from a USB flash drive and got to the point where I start the manual file system setup. At that time both of my HP 2TB drives were visible.

Here is where my memory gets fuzzy about how I screwed it up. But basically at this point I was jut going through the motions. My server had hardware RAID and this set up was for software RAID.

I think this is what I did,
  1. selected the first drive and made it a boot device
  2. Then on the same device I added a max size partition
  3. then I added a max size partition on the second device
  4. none of these drives were formatted at this time
  5. then I went to set up RAID under the option, software RAID

At this point I cannot fully remember what I did but I remember thinking to myself, wait - I want a hardware RAID not software. So I backed out and rebooted into BIOS to see what my settings were.

Now the drive is almost totally unrecognizable. Fdisk simple ignores it:
Code:
Disk /dev/sdc: 7.48 GiB, 8022654976 bytes, 15669248 sectors
Disk model: USB Flash Disk  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4601e0ea

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1  *     2048 15669247 15667200  7.5G  c W95 FAT32 (LBA)


Disk /dev/sda: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: MB2000FAMYV     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C7C8E996-7889-4078-BE8F-AE70A7C9D42B
The Disks utility tool shows the drive with it's serial number but thinks the file size is zero. IT simple says "No Media"

Here is a pic of the first disk that works correctly:
https://i.imgur.com/6PsJfIl.png

And here is the second drive:
https://i.imgur.com/mMwSMQDh.png

Disks will not let me do anything with that second drive. When I click on the 3 dot icon for the tools they are all greyed out. I cannot format it, partition it, etc...

Anyone have any suggestions for this odd little predicament?

Regards.

Last edited by redir; 05-19-2020 at 10:59 AM.
 
Old 05-13-2020, 12:41 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Links to your pictures does not load the pictures...

However, reboot into Live USB mode.
open terminal
sudo fdisk -l

Does that show both drives?

If so (do this only if you want to wipe the drive):
dd if=/dev/zero of/dev/sdX bs=512 count=1000

repeat that command for second drive.
 
Old 05-13-2020, 01:50 PM   #3
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by dc.901 View Post
Links to your pictures does not load the pictures...

However, reboot into Live USB mode.
open terminal
sudo fdisk -l

Does that show both drives?

If so (do this only if you want to wipe the drive):
dd if=/dev/zero of/dev/sdX bs=512 count=1000

repeat that command for second drive.
I think I may have fixed the image links. I'm not sure what you mean by reboot into Live USB mode? But I am booted up off of the USB flash drive now and the output for sudo fdisk -l is above and it doesn't recognize the second drive. I did cut out some of the junk so here is the whole thing:

Code:
ubuntu@ubuntu:~/Desktop$ sudo fdisk -l
Disk /dev/loop0: 1.93 GiB, 2049204224 bytes, 4002352 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 27.9 MiB, 28405760 bytes, 55480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 54.97 MiB, 57614336 bytes, 112528 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 240.82 MiB, 252493824 bytes, 493152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 62.9 MiB, 65105920 bytes, 127160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 49.8 MiB, 52203520 bytes, 101960 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes




Disk /dev/sda: 7.48 GiB, 8022654976 bytes, 15669248 sectors
Disk model: USB Flash Disk  
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x4601e0ea

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1  *     2048 15669247 15667200  7.5G  c W95 FAT32 (LBA)


Disk /dev/sdb: 1.84 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: MB2000FAMYV     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C7C8E996-7889-4078-BE8F-AE70A7C9D42B
ubuntu@ubuntu:~/Desktop$
Regards.
 
Old 05-13-2020, 02:14 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
You might not see the drive if you have enabled hardware RAID. Hardware RAID will sync the two drives and present a single disk to software.
 
Old 05-13-2020, 02:21 PM   #5
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by smallpond View Post
You might not see the drive if you have enabled hardware RAID. Hardware RAID will sync the two drives and present a single disk to software.
I should have mentioned that I did disable hardware RAID. The BIOS had two other options ATA or AHCI. I have tried both. I also tried it set to OFF.

Regards.
 
Old 05-13-2020, 03:17 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Thoughts.

I'd have used hardware raid myself. Boot back to sas card bios and set it up again and try install. It's my opinion that a true hardware raid controller is much better than software md. But you can load md on top of hardware if you want.

Why are you not using the latest LTS?
 
Old 05-14-2020, 09:17 AM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,162

Rep: Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268Reputation: 1268
Software RAID (mdadm) is better than any cheap hardware RAID for performance, rebuild time, flexibility and management. The only cases where I use hardware RAID are when I need to boot unattended from the RAID drives or when the RAID card has battery backup and the computer is not on a UPS. The boot issue is that some firmware can't be convinced to boot from sdb when sda fails.
 
Old 05-14-2020, 03:02 PM   #8
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632

I've never seen a cheap hardware raid.
I've seen fake raid cheap.
Hardware raid is still faster and still used by almost every major server install. Once can then use software or other advanced partition systems like LVM/ZFS/Btrfs on top of the array.


Two different opinions and both are good advice.

Last edited by jefro; 05-14-2020 at 03:03 PM.
 
Old 05-19-2020, 11:05 AM   #9
redir
Member
 
Registered: May 2004
Location: Virginia USA
Distribution: Debian_Ubuntu_FreeBSD
Posts: 122

Original Poster
Rep: Reputation: 16
Bump.

I was getting back into this today, still stuck here. I should have talked about the hardware. This is a Dell Poweredge T110. And silly me, it has a PErc controller that won't work in Linux. But that's fine this is just a home server. I still cannot figure out what I could have possible done because like I said when I first started installing Ubuntu I saw both drives perfectly well so it's not the controller.

So at this point the real question is, what could possible happen to a hard disk in a failed installation attempt (say loss of power even)? And are there any tools out there that can be used to force a reformat. Disks at least sees the drive though it thinks it has zero storage space apparently. Fdisk and Gparted don't even recognize the drive.
 
Old 05-19-2020, 03:17 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Unless a drive is damaged as in heads, discs or interface board they can usually be made to work. One exception may be if you use high power emf eraser on some drives where it might erase a chip or two.

Pretty sure PERC boards can be made to work. Some attached pci bridge may need bridge to work first.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I hot swap an SAS drive on a server running Ubuntu server? Usalabs Linux - Server 3 08-01-2019 01:15 PM
what would cause a SAS hard drive not to be recognized by storage array? ron7000 Linux - General 1 03-13-2015 12:52 PM
Ubuntu Server 12.04 - SAS system drive, and won't boot with more than two SATA drives munaye Ubuntu 3 11-04-2013 04:22 PM
CD drive not recognizing most media on Ubuntu 10.4 Lucid Lynx mbassplr Linux - Newbie 1 01-22-2011 11:40 PM
SAS drive not detected King Arthur Linux - Hardware 0 01-22-2011 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration