Personal tools
You are here: Home IT Documentation How-tos Research Linux LVM Home directory administration
Document Actions

Research Linux LVM Home directory administration

How to add a home directory, add a new LVM volume, and expand the volume size on our linux home directory server 'moe'

Prerequisites

Secure Shell access to moe as the root user

Step by step

Create a home directory on moe :

cd /volumes/<faculty member>/users/
mkdir <username>
chown <username> <username>


Create a new volume for a faculty member's users:

# 50G is the current 'default' volume size
lvcreate -L 50G -n <newfacultylastname> users
mkfs.xfs /dev/users/<newfacultylastname>
echo /volumes/<newfacultylastname> 10.0.0.0/8(rw,no_subtree_check) >> /etc/exports
echo /dev/users/<newfacultylastname> /volumes/<newfacultylastname> xfs defaults 0 0 >> /etc/fstab
mount /dev/users/<newfacultylasname>


Expand the size of a faculty member's volume

#Ensure adequate free space on the users' volume
#root@moe:~# vgs users
# VG #PV #LV #SN Attr VSize VFree
# users 1 12 0 wz--n- 1.79T 369.49G

# to add a certain amount of space
lvextend -L+50G /dev/users/<volume>

# to increase the volume to a specific size
lvextend -L200G /dev/users/<volume>

#finally one must grow the filesystem
xfs_growfs /dev/users/<volume>
« May 2013 »
Su Mo Tu We Th Fr Sa
1234
567891011
12131415161718
19202122232425
262728293031
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: