LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-24-2014, 11:32 AM   #1
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
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.
 
Old 12-24-2014, 11:41 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
How are you mounting the drive manually? What is the entry you added to fstab?
 
Old 12-24-2014, 07:05 PM   #3
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
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
 
Old 12-24-2014, 08:24 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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?
 
Old 12-26-2014, 11:51 PM   #5
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
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.

Last edited by jpollard; 12-26-2014 at 11:53 PM.
 
Old 12-28-2014, 07:44 AM   #6
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 12-28-2014, 07:54 AM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,604

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
Quote:
Originally Posted by gopinath View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SQUEEZE: cat: /proc/scsi/scsi: No such file or directory alexneil Debian 5 05-04-2010 02:53 PM
LTO-2 tape devices not showing up in /proc/scsi/scsi file datastor Red Hat 0 03-16-2009 06:11 PM
RHEL 3: Steps of expanding file system (add new SCSI disks) to existing SW RAID & LVM atman1974 Linux - General 2 01-12-2006 10:49 PM
adding an entry to /etc/fstab file and another query Tinku Linux - General 3 08-11-2004 09:35 PM
Adding 4-Bay SCSI Device To /etc/fstab? wvman45 Linux - General 3 09-29-2003 04:33 PM


All times are GMT -5. The time now is 06:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration