LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   RHEL 7 crashes after adding scsi to fstab file (https://www.linuxquestions.org/questions/linux-newbie-8/rhel-7-crashes-after-adding-scsi-to-fstab-file-4175529158/)

gopinath 12-24-2014 10:32 AM

RHEL 7 crashes after adding scsi to fstab file
 
Greetings guys,

I'm trying to attach san to rhel7, I have scanned the target and attached it to the rhel 7 and created pv,vg,lv everything works smooth till I added them to /etc/fstab file, it causes my rhel 7 to crash if i comment my scsi addings then the rhel boots properly, let me know how to use the fstab and also let me know what value I should put in the UUID column of the fstab.

With regards,
Gopinath.

suicidaleggroll 12-24-2014 10:41 AM

How are you mounting the drive manually? What is the entry you added to fstab?

gopinath 12-24-2014 06:05 PM

Quote:

Originally Posted by suicidaleggroll (Post 5290017)
How are you mounting the drive manually? What is the entry you added to fstab?

Here is my fstab file entry, the SAN drives get mounted if I manually mount them using mount -a after system boots up, but this one crashes when it tries to mount these during booting time.

[root@redhat_1 ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Tue Dec 23 12:53:20 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=303741c5-bd45-4b2e-8462-b673d1dc0e88 / xfs defaults 1 1
UUID=2bc871e4-e2a3-4f29-9ece-3be60c835092 /boot xfs defaults 1 2
UUID=e06097bb-cfcd-437b-9e4d-a691f5662e5a swap swap defaults 0 0
#UUID=e32d2d77-f6d1-4011-8de7-b32baff03d8a /tbsp1 ext4 defaults 1 2
#UUID=c58d9008-bf62-4977-a34c-50790c2b0c0e /tbsp2 ext4 defaults 1 2
#UUID=7e3ce1af-8b6f-4397-bcde-287041ac721b /tbsp3 ext4 defaults 1 2

suicidaleggroll 12-24-2014 07:24 PM

It sounds like the fstab entries are correct then, and perhaps the mount on boot is occurring before the necessary kernel modules have been loaded or similar? What if you add noauto to the mount options and create a boot-time script to run the necessary mounts?

jpollard 12-26-2014 10:51 PM

Actually, it sounds like systemd hasn't done its job properly.

It should mount the filesystems listed in the /etc/fstab file. Possibly the problem is that the ext4 filesystem module isn't being loaded, OR udev hasn't yet loaded the driver module yet. This IS supposed to be handled by systemd when it sees that referenced in the fstab file.

Since this is a RH system, you should consider calling their support line.

gopinath 12-28-2014 06:44 AM

Hey Guys,

I'm sorry for a late reply, this problem is resolved by changing to 'defaults' to '_netdev' since this drive is from SAN it should be mounted after network is started, but in default mode it tries to load this drive during boot itself since it didn't find the device it crashes, thanks for the support guys !.

With regards,
Gopinath.

jpollard 12-28-2014 06:54 AM

Quote:

Originally Posted by gopinath (Post 5291494)
Hey Guys,

I'm sorry for a late reply, this problem is resolved by changing to 'defaults' to '_netdev' since this drive is from SAN it should be mounted after network is started, but in default mode it tries to load this drive during boot itself since it didn't find the device it crashes, thanks for the support guys !.

With regards,
Gopinath.

Thats ok.

It STILL shouldn't crash.


All times are GMT -5. The time now is 02:24 PM.