Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi.
I have next question. I have Centos 6. When I type command
fdisk -l
I see next output:
disk /dev/mapper/asr_1p3: 71.4 ГБ, 71381811200 байт
255 heads, 63 sectors/track, 8678 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
I have read about LVM. And now I have another question. I have almost all space mounted on / including var. As I understand, it is not a good idea to do so. So my question is how to separate my var directory on separate partition if all space in single mounting point?
Please help.
The reason why people say /var and /tmp should be seperated is due to isolation of file space. These filesystems can become full easily on some systems, say a web server that gets millions of requests a day the httpd access logs in /var/log/httpd/ would start to consume the entire filesystem.
If this is an actual issue for you then you can look at creating a new lv(provided the volume group has enough space) for these. If you don't have enough space you can reduce the size of your current lv to create the new ones.
Again, this isn't something that you must do but it is something that could be a potential issue under certain types of server configuration.
Hm...
I think what we have here is misunderstanding( I have next situation (I dont khow how to get screen from my virtual machine):
df -h
/dev/sda2 bla bla mounted on /
/dev/sda1 bla bla mounted on /boot
lvdisplay shows no output however LVM is installed. So my question is: How to get some space from / and create separate partition for /var. Unfortunatelly I dont have any LV configured. Partitions were created during initial setting and var was allocated on the same space and FS as /. How to change this?
Looks like you aren't actually using LVM, I am confused a little bit though as the /dev/mapper indication in your fdisk output shows the volumes.
What does a pvdisplay or vgdisplay give you?
From the output you just provided you wouldn't be able to create a separate partition unless you already had more free space as the /dev/sda shows you are using partitions and not LVM for your mounts.
Yeap. There is mapper in output. But no output for pvdisplay or vgdisplay. I think it is because LVM is included in this distribution and was used during initial setting only. Or it is not a LVM but just name of file in /dev directory and has no concern to LVM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.