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...
Adding a second hard disk
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Adding a second hard disk
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
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
Re: Adding a second hard disk
I agree with hunter86_bg where he lists:themagicm wrote: ↑2018/09/13 16:08:55Help 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...
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
Re: Adding a second hard disk
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
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
Re: Adding a second hard disk
@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!!
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!!