User Tools

Site Tools


sles_12_update_schulung

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sles_12_update_schulung [2016/07/15 08:48] michaelsles_12_update_schulung [2021/04/24 07:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Übgungsaufgabe 1 (Startskripte): ======+====== Startskripte ======
  
  
Line 24: Line 24:
      
      
-====== Übung 2: chkconfig ======+====== chkconfig ======
  
  
Line 64: Line 64:
  
  
-====== Übung 3 Eigener Runlevel ======+====== Eigener Runlevel ======
  
    96  2016-07-14 11:41:38 cp -P ../rc3.d/* .    96  2016-07-14 11:41:38 cp -P ../rc3.d/* .
Line 345: Line 345:
      
      
-====== LVM Übgung ======+====== LVM  ======
  
 Create Physical Volume Create Physical Volume
Line 607: Line 607:
 Metadata, single: total=8.00MiB, used=0.00B Metadata, single: total=8.00MiB, used=0.00B
 GlobalReserve, single: total=16.00MiB, used=0.00B GlobalReserve, single: total=16.00MiB, used=0.00B
 +
 +== Filesystem ausbalancieren ==
 +
 +btrfs balance start /mnt
 +btrfs balance status /mnt
 +btrfs balance cancel /mnt
 +btrfs balance pause /mnt
 +btrfs balance resume /mnt
 +
 +== Snapshots ==
 +
 +Subvolume2 unterhalb Subvolume1, wird beim snap von Subvolume1 _nicht_ mitgesnapped
 +
 +
 +SLES12:/mnt/NEU/test # btrfs subvolume snapshot /mnt/NEU/test/subvolume /mnt/NEU/test/subvolume/snap
 +Create a snapshot of '/mnt/NEU/test/subvolume' in '/mnt/NEU/test/subvolume/snap'
 +
 +SLES12:/mnt/NEU/test/subvolume # ls -lR
 +.:
 +total 4
 +drwxr-xr-x 1 root root    6 Jul 15 12:48 ordner1
 +-rw-r--r-- 1 root root** 2929** Jul 15 12:53 passwd
 +drwxr-xr-x 1 root root   26 Jul 15 12:48 snap
 +
 +./ordner1:
 +total 0
 +-rw-r--r-- 1 root root 0 Jul 15 12:48 abc
 +
 +./snap:
 +total 4
 +drwxr-xr-x 1 root root    6 Jul 15 12:48 ordner1
 +-rw-r--r-- 1 root root **1633** Jul 15 12:48 passwd
 +
 +./snap/ordner1:
 +total 0
 +-rw-r--r-- 1 root root 0 Jul 15 12:48 abc
 +
 +
 +cp --reflink
 +       --reflink[=WHEN]
 +       control clone/CoW copies. See below
 +
 +       When --reflink[=always] is specified, perform a lightweight copy, where the data blocks are copied only when modified.  If this is not possible the copy fails, or if
 +       --reflink=auto is specified, fall back to a standard copy.
 +
 +
 +
 +SLES12:/ # snapper list
 +Type   | # | Pre # | Date                     | User | Cleanup | Description           | Userdata
 +-------+---+-------+--------------------------+------+---------+-----------------------+--------------
 +single | 0 |                                | root |         | current               |
 +single | 1 |       | Tue Mar 15 12:29:47 2016 | root |         | first root filesystem |
 +single | 2 |       | Tue Mar 15 12:40:02 2016 | root | number  | after installation    | important=yes
 +pre    | 3 |       | Thu Jul 14 12:22:57 2016 | root | number  | yast firewall         |
 +post   | 4 | 3     | Thu Jul 14 12:23:18 2016 | root | number  |                       |
 +single | 5 |       | Fri Jul 15 15:03:51 2016 | root |                               |
 +
 +
 +SLES12:/ # snapper diff 3..4
 +--- /.snapshots/3/snapshot/etc/sysconfig/SuSEfirewall2  2016-03-15 12:39:22.240000500 +0100
 ++++ /.snapshots/4/snapshot/etc/sysconfig/SuSEfirewall2  2016-07-14 12:23:18.107298481 +0200
 +@@ -318,7 +318,7 @@
 + # FW_SERVICES_ACCEPT_*
 + #
 + # Example: "samba-server nfs-kernel-server"
 +-FW_CONFIGURATIONS_EXT=""
 ++FW_CONFIGURATIONS_EXT="sshd"
 +
 + ## Type:       string
 + #
 +@@ -1068,7 +1068,7 @@
 + #
 + # See also FW_SERVICES_ACCEPT_RELATED_EXT
 + #
 +-FW_LOAD_MODULES=""
 ++FW_LOAD_MODULES="nf_conntrack_netbios_ns"
 +
 + ## Type:       string
 + ## Default:
 +Binary files /.snapshots/3/snapshot/root/.local/share/gvfs-metadata/home and /.snapshots/4/snapshot/root/.local/share/gvfs-metadata/home differ
 +Binary files /.snapshots/3/snapshot/root/.local/share/gvfs-metadata/home-65f4037a.log and /.snapshots/4/snapshot/root/.local/share/gvfs-metadata/home-65f4037a.log differ
 +Binary files /.snapshots/3/snapshot/root/.local/share/gvfs-metadata/home-92bf047e.log and /.snapshots/4/snapshot/root/.local/share/gvfs-metadata/home-92bf047e.log differ
 +
 +
 +SLES12:/etc # snapper diff 6..7 /etc/resolv.conf
 +--- /.snapshots/6/snapshot/etc/resolv.conf      2016-07-15 10:04:25.000638268 +0200
 ++++ /.snapshots/7/snapshot/etc/resolv.conf      2016-07-15 15:21:40.169334418 +0200
 +@@ -17,5 +17,3 @@
 + # file and in case of a "netconfig update -f" call.
 + #
 + ### Please remove (at least) this line when you modify the file!
 +-search localdomain
 +-nameserver 192.168.24.2
 +
 +== Zurückgehen auf einen vorherigen Stand ==
 +SLES12:/etc # snapper undochange 6..7
 +create:12 modify:3 delete:0
 +
  
  
sles_12_update_schulung.1468572489.txt.gz · Last modified: 2021/04/24 07:38 (external edit)