Linux how to
Practical instructions on how to go about doing things in Linux. This is about the Fedora Linux.
How to extend an xfs filesystem
- xfs filesystems must be mounted to be extended. There is no need to unmount
- usually an xfs fileystem occupies all of its logical volume so the extension of a filesytem involves first the expansion of the logical volume an then the extension of the filesystem
- expanding the logical volume
- lvextend -L +5G /dev/Volume00/data-lv00 - this will add 5GB on logical voluem /dev/Volume00/data-lv00
- xfs_growfs /NewFS - this will extend the filesystems on the previously extended LV to occupy it completely. The filesystem is mounted on /NewFS in this case.
More on how to operate the Logical Volume Manager (LVM) is found here
How to install java
- Download the latest JDK version from Sun. Choose the "Linux self-extracting file" version (not the RPM version).
- Make sure the "rpm-build" package is installed:
yum install rpm-build
- Move the JDK to the RPM Building Source directory:
mv jdk-* /usr/src/redhat/SOURCES/