#works for Kernels 2.6.16 and up
#flush file system buffers (sync to disc)
sync
#drop page-cache directory-entries and inode-cache
echo 3 > /proc/sys/vm/drop_caches
#more info at http://www.linuxinsight.com/proc_sys_vm_drop_caches.html
A collection of linux logs/notes/receipes for later reference/reuse. Use at Your own risk
Donnerstag, 20. Januar 2011
Mittwoch, 19. Januar 2011
Centos 5.5 Live auf USB Stick
Receipe adapted from http://www.pendrivelinux.com/usb-centos-5-live-install-via-windows/ :
Create a CentOS 5.5 64bit Live USB Flash Drive in Windows:
1. Download the Fedora liveusb-creator-x-x.zip and extract
https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.7.zip
2. Download CentOS-5.5-x86_64-LiveCD.iso
http://ftp.halifax.rwth-aachen.de/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-LiveCD.iso
3. Navigate to the liveusb-creator-x-x folder and click liveusb-creator.exe to launch the tool
4. A progress bar will indicate the progress of your USB CentOS creation. Once the process has finished, restart your PC and set your System BIOS or Boot Menu to boot from the USB flash drive
Create a CentOS 5.5 64bit Live USB Flash Drive in Windows:
1. Download the Fedora liveusb-creator-x-x.zip and extract
https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.7.zip
2. Download CentOS-5.5-x86_64-LiveCD.iso
http://ftp.halifax.rwth-aachen.de/centos/5.5/isos/x86_64/CentOS-5.5-x86_64-LiveCD.iso
3. Navigate to the liveusb-creator-x-x folder and click liveusb-creator.exe to launch the tool
4. A progress bar will indicate the progress of your USB CentOS creation. Once the process has finished, restart your PC and set your System BIOS or Boot Menu to boot from the USB flash drive
Donnerstag, 6. Januar 2011
Resizing + creating LVM partitions
display logical volumes:
:~# vgdisplay -v vg00
#resize a partition and the filesystem on it:
:~# lvextend -L +20G /dev/vg00/var
:~# xfs_growfs /var
#create a new volume in volumegroup vg00
:~# lvcreate -L 75G -n data2 vg00
:~# mkfs.xfs /dev/vg00/data2
:~# mkdir /data2
:~# mount -t xfs /dev/vg00/data2 /data2
:~# nano /etc/fstab
:~# vgdisplay -v vg00
#resize a partition and the filesystem on it:
:~# lvextend -L +20G /dev/vg00/var
:~# xfs_growfs /var
#create a new volume in volumegroup vg00
:~# lvcreate -L 75G -n data2 vg00
:~# mkfs.xfs /dev/vg00/data2
:~# mkdir /data2
:~# mount -t xfs /dev/vg00/data2 /data2
:~# nano /etc/fstab
Abonnieren
Posts (Atom)