LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-29-2017, 03:56 PM   #1
jimblegend
LQ Newbie
 
Registered: Mar 2017
Posts: 1

Rep: Reputation: Disabled
lvdisplay not showing lv_home


My issue is when I set up a new Centos 6 server and logged in as root, I did an lvs and it displays lv_root and lv_swap but no lv_home. I did an lvdisplay and same result.

I need to add the /home folder from / to the logical volume because that is where all my users get created when I create them in Webmin. I have several Centos servers setup for different purposes and have never had this issue on a new setup.

Can someone lead me in a direction to add the /home folder to the LV? Below is the output of the lvs:

LV VG Attr LSize

lv_root vg_legendftp -wi-ao--- 13.66g

lv_swap vg_legendftp -wi-ao--- 5.84g
 
Old 03-29-2017, 06:16 PM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
you'll probably want to follow a full guide for this... but do you have space in your VG? the vgs command should show that.

The gist of the commands to create it is here: https://www.centos.org/docs/5/html/C...LV_create.html

admittedly that is for CentOS 5 but the commands should be the same.

Once you have your LVM, add it to /etc/fstab (careful on editing that file, breaking it will cause headaches, advise doing a 'cp /etc/fstab /etc/fstab.bak' first).

Manually mount the partition:

mkdir /mnt/newhome
mount /dev/mapper/lvm-dev /mnt/newhome
mv /home/* /mnt/newhome
umount /mnt/newhome
mount /home
rmdir /mnt/newhome

Should do it... I'd advise testing it all on test boxes first cas a few things here (esp fstab), can cause major issues down the line if you do em wrong.
 
Old 03-29-2017, 06:41 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,104

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
I cant believe this can't be found on the web. But, as for all things LVM, the (free) online RHEL doco is excellent.
 
  


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
Reducing /dev/sdb1 and extending existing lv_home partition - possible or not? gigolos Linux - Newbie 4 01-28-2016 08:47 PM
(LVM) open failed: no such file or directory output in lvdisplay command rohitchauhan Linux - General 1 04-28-2014 12:17 PM
df and lvdisplay discrepency on size. marcos602phx Linux - Newbie 3 10-25-2009 12:06 AM
lvdisplay -v doesn't diplay detail LV info osiosi Linux - Newbie 6 06-28-2006 12:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:29 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
Open Source Consulting | Domain Registration