Solved

How do you determine what directories live in what volume when you view the Logical Volume Management program?

Posted on 2008-10-24
9
221 Views
Last Modified: 2013-12-16
I have a VOLGroup 00 Physical View defined as follows:
/dev/cciss/c0d0p2
/dev/cciss/c0d0p1
/dev/ccisss/c0d2p1
/dev/cciss/c1d0p1

The Logical View is defined as
VolGroup 00
LogVol00
LogVol01

How do I determine where my files actually live.  I have a /u/master1/data and a /u/master2/data and other directories that I need to understand where they live.  Can someone show me how to determine this information?
0
Comment
Question by:kwh3856
  • 5
  • 4
9 Comments
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
when you have setup your partition
you must of did this

LogVol00 for /var
logVol01 for /home

is not it ??

if you do df -h
what do you  see ??
0
 

Author Comment

by:kwh3856
Comment Utility
fosiul01,
I will check this tomorrow and let you know.  Thank you very much for your reply.

thanks
kenny
0
 

Author Comment

by:kwh3856
Comment Utility
[root@123]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00             528G   11G  491G   3% /
/dev/cciss/c0d0p1                                             99M   13M   81M  14%  /boot
tmpfs                                                                     5.9G     0  5.9G   0%     /dev/shm
[root@123]#

This is what I get.

Is there a way to divide the VolGroup00 into seperate volume and then create directories on those volumes?


0
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
ok what happended here is:
when you installed your OS, you chose to use lvm for everything.

so currently /var,/home/ and other directory is in one logical volume.

what i do is always:
i put /var,/home,/usr  in different volume so it would be like this

/dev/mapper/VolGroup00-LogVol00             528G   11G  491G   3% /
/dev/mapper/VolGroup00-LogVol01             528G   11G  491G   3% /
/dev/mapper/VolGroup00-LogVol02             528G   11G  491G   3% /
/dev/cciss/c0d0p1                                             99M   13M   81M  14%  /boot
tmpfs

benefits is: if suppose /home is require more space, i will just add another hardrive or if there is any emptry space in other logical volume, i will use that one and extend /home logical volume .

now your problem is, everything is in One logical volume

now you can create other volume as well , but do you have any extra space in your physical volume??
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:kwh3856
Comment Utility
No.  I used all the space when I installed the system.  Is there any drawbacks to this configuration?  I currently have 12 drives in my system.  It seems that every thing is spread out across those drive which would give me I belive that best performance.  If I am not worried about space, this it should not be a big deal.  Is that correct?

Thanks
Kenny

0
 
LVL 29

Accepted Solution

by:
fosiul01 earned 500 total points
Comment Utility
ok you are using Scsi hardrive is not it ??

technicaly there is no draw backs of this configuraiton.
benefits is : if any drive needs extra space its will increase automatically within the logical volume. if you are running out of space just increase your dirves and increase your logical volumes


0
 

Author Comment

by:kwh3856
Comment Utility
That is excactly what I needed to know.  Thank you very much.
0
 
LVL 29

Expert Comment

by:fosiul01
Comment Utility
you are welcome
0
 

Author Closing Comment

by:kwh3856
Comment Utility
Thank you very much.

Thanks
Kenny
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now