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 - 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 09-22-2016, 02:28 AM   #1
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Rep: Reputation: 0
How to Find Unmounted File Systems in RHEL?


Greetings,

I'm learning basics of LVM. I have a VMware running a RHEL 6.6. I created a ext4 file system from a logical volume say lv1 and mounted it on a directory called /data1. I didn't add it to fstab. Now I rebooted the server and the file system didn't mount as expected. If anyone new takes over a system and wants to know all the file systems mounted and not mounted, how to find this?

With regards,
Gopinath.
 
Old 09-22-2016, 02:35 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You've been registered here for 9 years .... so ...
How would you do it if LVM wasn't involved ?.
 
1 members found this post helpful.
Old 09-22-2016, 02:57 AM   #3
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Thanks for the reply, I'm not into linux administration. I get less chance of working with it as a system admin. I'm a DBA.
 
Old 09-22-2016, 03:00 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
there is no general answer, there can be any number of unmounted <anything>. If you have a specific setup you need to document it.
 
1 members found this post helpful.
Old 09-22-2016, 03:06 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Fancy helping a DBA ...

Try this
Code:
lsblk -f
 
1 members found this post helpful.
Old 09-22-2016, 12:16 PM   #6
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
We can create only one file system on each logical volume ? if yes i can just check #open from lvdisplay and mount that as file system ?
 
Old 09-22-2016, 12:35 PM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gopinath View Post
Thanks for the reply, I'm not into linux administration. I get less chance of working with it as a system admin. I'm a DBA.
Really?? So then why over the years have you asked about:
**NONE OF WHICH** are DBA related tasks, but those of a systems admin. Creating file systems, volume groups, and other such tasks aren't done by DBA's but admins. Further, unless you have the root/sudo rights, you won't be able to do ANYTHING related to such tasks. You can partition a disk/volume into as many slices as you'd like, and mount them all separately. Again, all of this is covered in the RHEL documentation and knowledgebase...have you READ the RHEL knowledebase articles, that you have access to since you're PAYING FOR RHEL, RIGHT????
 
Old 09-22-2016, 12:40 PM   #8
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
Interesting..does it mean that a DBA should not know about these things ? All these are also related to DBA job. Not sure whether you work for RHEL or any other company that sells Linux, I posted it here only for a help not to see any sales promotion messages. If you know just help me else just leave it. Thanks.
 
Old 09-22-2016, 01:34 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gopinath View Post
Interesting..does it mean that a DBA should not know about these things ? All these are also related to DBA job.
Related to? Sure. RESPONSIBLE FOR? No, sorry. Again, unless YOU are the systems administrator, you should not be doing those jobs. If you're a DBA, then your job is to manage the database.

I can ask all the questions I want about the wiring in the building I work in, to 'know about these things', since they're related to computers (they can't work without power). That doesn't make me the electrician, or give me the rights/certifications needed to make changes in the wiring whenever I see fit, does it?
Quote:
Not sure whether you work for RHEL or any other company that sells Linux, I posted it here only for a help not to see any sales promotion messages.
It's not 'sales messages', it's common sense and plain fact. RHEL is NOT FREE...if you're using it, you need to PAY FOR IT, period. When you do, you have access to Red Hat's knowledgebase, which is the quickest way for you to get your answers.
Quote:
If you know just help me else just leave it. Thanks.
You were given advice, and your question was answered...did you not read or understand it? Again, RHEL's knowledebase covers all this in great detail. Again, you can partition a disk with as many slices as you'd like, and mount them however you'd like. Again, you've been here for MANY years now, and have been posting systems admin questions for all that time. Don't claim the "I'm only a DBA" thing when asked why you don't know, then get snotty when it's pointed out that DBA's don't DO sysadmin work. Either you're the admin or you're not..which is it?

Last edited by TB0ne; 09-22-2016 at 01:35 PM.
 
Old 09-23-2016, 12:18 AM   #10
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I do it on learning systems which I use to test. I know i'm not a system admin to do it on a production server. I'm not sure whether you read database manuals they also contain many tasks to be done before installing the software some of them includes a bit of system admin work.

You don't need to be an electrician but you must have some knowledge on how things work. If you are buying a new component for your server I'm sure you will also like to understand how it works and how much power it needs to operate, you cannot just blindly accept things without testing and understanding.

Many database vendors don't support other Linux systems except RHEL and SUSE. I cannot test my software on a server that runs an OS which is not supported. I do read Linux manuals these days more than before but when I got a question I had a thought of checking in internet which I usually do. I also provide suggestions to database related queries in many forums but never asked these kind of questions and I always provide details on what OS I'm using.

My question was how to list file systems that are created regardless of the matter whether they are mounted or not mounted. I didn't asked about partitioning a disk into slices.

To be better at managing a database a DBA has to know about many stuffs which runs/uses the database. So I will say I'm right in what I'm doing.

Last edited by gopinath; 09-23-2016 at 01:31 AM.
 
Old 09-23-2016, 09:08 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gopinath View Post
I do it on learning systems which I use to test. I know i'm not a system admin to do it on a production server. I'm not sure whether you read database manuals they also contain many tasks to be done before installing the software some of them includes a bit of system admin work.
You keep ignoring this: DO NOT USE RHEL UNLESS YOU ARE GOING TO PAY FOR IT, do you understand that??? If this is for testing/learning, then why aren't you using CentOS? It is IDENTICAL to RHEL, but free. Secondly, installing Oracle or any other database DOES require adjusting system parameters...which is when the DBA gets the systems admin to perform those tasks. If the sysadmin TRUSTS the DBA, they will sometimes let them do it, but that is ALL the systems administration tasks the DBA will ever perform.
Quote:
You don't need to be an electrician but you must have some knowledge on how things work. If you are buying a new component for your server I'm sure you will also like to understand how it works and how much power it needs to operate, you cannot just blindly accept things without testing and understanding.
You are either missing the point, or are intentionally ignoring it. Again, your argument of "I'm just a DBA" when asked about why you've asked questions after being here for many years, and asking many other sysadmin questions is a lie. Either you ARE the admin or you're not...period.

Having knowledge about how things work is one thing; having permission and skill enough to CHANGE those things is another. See previous post about electricians. No matter how much I understand how the building is wired, I CANNOT just go and make changes whenever I want. Do you understand the difference???? If you're the DBA, then YOU ARE THE DBA ONLY...NOT THE SYSTEMS ADMINISTRATOR.
Quote:
Many database vendors don't support other Linux systems except RHEL and SUSE. I cannot test my software on a server that runs an OS which is not supported. I do read Linux manuals these days more than before but when I got a question I had a thought of checking in internet which I usually do. I also provide suggestions to database related queries in many forums but never asked these kind of questions and I always provide details on what OS I'm using.
Wrong...if this is for testing purposes, you ABSOLUTELY can install and use Oracle on pretty much ANY distro of Linux, as you should know after so many years of using Linux and your experience of being a 'DBA'. I've installed and run it nicely on Mint, CentOS, Ubuntu, and other flavors of Linux that aren't 'supported'. The only thing that means, is that you CANNOT CALL SUPPORT for issues...which you don't appear to do anyway.
Quote:
My question was how to list file systems that are created regardless of the matter whether they are mounted or not mounted. I didn't asked about partitioning a disk into slices.
You didn't??? Then explain post #6, where you ask about creating file systems. And again, after so many years and your 'extensive' experience being a DBA and answering questions about things, you should know this. If there isn't an entry in FSTAB to mount things at boot time, how do you think the system will know? The only way would be to look at each /dev/sd* device (MAYBE), and see if all the slices are mounted. And even then, if the device is mounted via NFS, SSHFS, or doesn't have an sd* identifier, you're out of luck. What you're asking is "how will we know something that may not even be on the system is available?"
Quote:
To be better at managing a database a DBA has to know about many stuffs which runs/uses the database. So I will say I'm right in what I'm doing.
The 'stuffs' are meaningless...managing a database is its own job, with its own set of rules. Nothing wrong with learning/knowing, but AGAIN, unless you are the admin, you SHOULD NOT BE MAKING CHANGES TO THE SYSTEM, PERIOD.
 
Old 09-23-2016, 11:50 AM   #12
gopinath
LQ Newbie
 
Registered: Sep 2007
Posts: 19

Original Poster
Rep: Reputation: 0
I'm not a system admin..! I have used this forum only to gain some knowledge not to enter into an argument. I stand by what I'm.
 
Old 09-23-2016, 02:26 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by gopinath View Post
I'm not a system admin..! I have used this forum only to gain some knowledge not to enter into an argument. I stand by what I'm.
So again: if you're not a sysadmin, you don't need to be doing sysadmin tasks on a system you don't have responsibility for, period. Simple to understand.

If this is YOUR system on YOUR desk for nothing but YOUR use, don't use RHEL, and think about what you're asking. You've been asking sysadmin questions for YEARS now, so playing the "I'm a DBA" card doesn't quite work, especially when you CONTINUE to ask sysadmin related questions.

AGAIN: there is NO WAY to tell what should/shouldn't be mounted if it's not in fstab. Simple enough to understand?
 
  


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
RHEL 6.1 x86_64 unmounted nfs share problem donpatrona Linux - Server 2 04-26-2013 01:36 PM
Perl File::Find work on remote systems ? hattori.hanzo Programming 0 11-19-2010 05:08 PM
How to include the windows file systems in RHEL...?????????????????????????????? jack_conner Linux - Desktop 2 09-25-2008 02:09 PM
how to find unmounted partition cnm Linux - Newbie 9 11-18-2006 08:17 AM
moved files to unmounted drive, cannot find now mrelectron Linux - Software 2 11-13-2006 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

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