Adding a second hard disk

General support questions
Post Reply
themagicm
Posts: 18
Joined: 2017/07/05 22:49:39

Adding a second hard disk

Post by themagicm » 2018/09/13 16:08:55

Help me fix stupid. For the life of me I cannot figure this out.

So I added a single drive to my r710. I have formatted it and mounted it.

I start off with this disk:
sde 8:64 0 278.9G 0 disk
└─sde1 8:65 0 278.9G 0 part

Then:
mkfs.ext4 /dev/sde1

Then I can mount it. I add it to fstab, reboot, it doesnt mount and it fails while booting. I disable the entry in fstab, boot up and see the below:

sde 8:64 0 278.9G 0 disk
├─sde1 8:65 0 278.9G 0 part
└─36782bcb01260f600230640dd0d500ad1 253:3 0 278.9G 0 mpath
└─36782bcb01260f600230640dd0d500ad1p1 253:6 0 278.9G 0 part

I'm doing something dumb. Need to be sent in the right direction if you will...

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Adding a second hard disk

Post by hunter86_bg » 2018/09/13 20:12:07

You have multiple options:
1. Blacklist the local disk in multipath
2. Stop using multipath if you have only local storage
3.Use the '/dev/disk/by-id/dm-uuid-mpath-36782bcb01260f600230640dd0d500ad1p1' or '/dev/mapper/36782bcb01260f600230640dd0d500ad1p1' in your fstab
4.Use LABEL or UUID in fstab

desertcat
Posts: 843
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: Adding a second hard disk

Post by desertcat » 2018/09/14 15:49:37

themagicm wrote:
2018/09/13 16:08:55
Help me fix stupid. For the life of me I cannot figure this out.

So I added a single drive to my r710. I have formatted it and mounted it.

I start off with this disk:
sde 8:64 0 278.9G 0 disk
└─sde1 8:65 0 278.9G 0 part

Then:
mkfs.ext4 /dev/sde1

Then I can mount it. I add it to fstab, reboot, it doesnt mount and it fails while booting. I disable the entry in fstab, boot up and see the below:

sde 8:64 0 278.9G 0 disk
├─sde1 8:65 0 278.9G 0 part
└─36782bcb01260f600230640dd0d500ad1 253:3 0 278.9G 0 mpath
└─36782bcb01260f600230640dd0d500ad1p1 253:6 0 278.9G 0 part

I'm doing something dumb. Need to be sent in the right direction if you will...
I agree with hunter86_bg where he lists:

4.Use LABEL or UUID in fstab


Your entry should look something like this:

UUID=68c35148-72ce-473d-ad42-3a831a0ff1e5 /backup2 xfs defaults 1 2

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Adding a second hard disk

Post by TrevorH » 2018/09/14 15:59:09

The problem is almost certainly due to multipath meaning that the partition is detected twice and thus they both have the same uuid and the same label and the mount cannot work out which one to use so it bails out. Fix multipath or remove it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

themagicm
Posts: 18
Joined: 2017/07/05 22:49:39

Re: Adding a second hard disk

Post by themagicm » 2018/09/15 00:59:42

@all:

Thank you for jogging my memory! :-)

To throw you off a little..I have oVirt running on this server and it manages multipath.conf. I could of swore I blacklisted the local drives. Well after reading the part about blacklisting, I went and peeked at multipath.conf..well crap, nothing blacklisted. So I created conf.d under multipath, added my drive and there ya go. All working now.


Thanks for the replies. I appreciate it!! :-)

Post Reply