Difference between revisions of "Linux snippets"

From Tom's notes
Jump to navigation Jump to search
(Created page with "=Filesystem commands= ==Resize jfs filesystem== <source lang="sh"> lvresize --size +5G /dev/vg0/lv0 mount -o remount,resize /dev/vg0/lv0 </source> ==Resize ext filesystem== <...")
 
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Filesystem commands=
+
[[Vserver]]
==Resize jfs filesystem==
 
<source lang="sh">
 
lvresize --size +5G /dev/vg0/lv0
 
mount -o remount,resize /dev/vg0/lv0
 
</source>
 
  
==Resize ext filesystem==
+
=Various=
<source lang="sh">
+
* [[Linux startup scripts]]
lvresize --size +5G /dev/vg0/lv0
+
* [[Disk management]]
resize2fs /dev/vg0/lv0
+
* [[iSCSI target]] (server)
</source>
+
* [[iSCSI initiator]] (client)
 +
* [[Tftp-server]]
 +
* [[PXE boot]]
 +
* [[Docker cheat sheet]]
 +
* [[Gentoo minimal boot rescue on Qemu]]
 +
* [[Microsecond time]]
 +
* [[Hibernation using full disk encryption]]
 +
* [[Linux on Alienware 15 R4]]
 +
* [[php fpm on apache]]
  
 
=File manipulation=
 
=File manipulation=

Latest revision as of 01:50, 24 April 2021

Vserver

Various

File manipulation

Rsync copy keeping all attributes

Using checksumming:

rsync -acPHAXSxvW --numeric-ids --delete --stats

Only comparing size and time:

rsync -aPHAXSxvW --numeric-ids --delete --stats