I've recently been put in charge of a RHEL6 server running our NMS. I don't know much about Linux filesystem administration. What I'm needing to do is create a partition for /tmp, instead of having it sit on /. We are using LVM to handle our partitions.
#Output of df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 4.0G 1.1G 2.7G 29% / tmpfs 16G 116K 16G 1% /dev/shm /dev/sda1 504M 61M 419M 13% /boot /dev/mapper/VolGroup00-LVusr 4.0G 2.8G 1003M 74% /usr /dev/mapper/VolGroup00-LVvar 9.9G 4.5G 4.9G 48% /var /dev/mapper/VolGroup00-LVopt 252G 11G 229G 5% /opt #Output of cat /etc/fstab # # /etc/fstab # Created by anaconda on <REDACTED> # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # UUID=d13d3a55-39c4-4be8-81b3-3181440961ca / ext4 defaults 1 1 UUID=d032e7b7-f44e-499f-94e1-58064385108f /boot ext4 defaults 1 2 /dev/mapper/VolGroup00-LVusr /usr ext4 defaults 1 2 /dev/VolGroup00/LVvar /var ext4 defaults 1 2 /dev/mapper/VolGroup00-LVopt /opt ext4 defaults 1 2 /dev/mapper/VolGroup00-LVswap swap swap defaults 0 0 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 #<REDACTED>:/volumes/nxpool-01/unix-home/home /home nfs defaults,rsize=8192,wsize=8192,intr,vers=3 0 0
This server has 1TB of RAID5 storage, so space isn't an issue. We have ample unallocated space to hand out, I just don't know how to create the partition using LVM. I started to run into issues of automated backups using /tmp and running out of space, so backups started to fail.
Please let me know if I'm leaving out any vital information.