ubuntuusers.de

Titel:
lvm_reduce_get_info
Autor:
fleet_street
Datum:
17. November 2019 12:00
Aktionen:
Code:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ubuntu-mate@ubuntu-mate:~$ setxkbmap de    # deutsches Tastaturlayout einstellen
ubuntu-mate@ubuntu-mate:~$ sudo pvscan
  PV /dev/sda1   VG ubuntu-mate-vg   lvm2 [28.87 GiB / 4.00 MiB free]
  Total: 1 [28.87 GiB] / in use: 1 [28.87 GiB] / in no VG: 0 [0   ]
ubuntu-mate@ubuntu-mate:~$ sudo vgscan
  Reading volume groups from cache.
  Found volume group "ubuntu-mate-vg" using metadata type lvm2
ubuntu-mate@ubuntu-mate:~$ sudo lvscan
  ACTIVE            '/dev/ubuntu-mate-vg/root' [27.91 GiB] inherit
  ACTIVE            '/dev/ubuntu-mate-vg/swap_1' [976.00 MiB] inherit
ubuntu-mate@ubuntu-mate:~$ lsblk -f
NAME                        FSTYPE      LABEL                       UUID                                   MOUNTPOINT
loop0                       squashfs                                                                       /rofs
loop1                       squashfs                                                                       /snap/core/4486
loop2                       squashfs                                                                       /snap/pulsemixer/8
loop3                       squashfs                                                                       /snap/software-boutique/31
loop4                       squashfs                                                                       /snap/ubuntu-mate-welcome/169
sda                                                                                                        
└─sda1                      LVM2_member                             kGkv4m-WhJm-MLpi-0y0V-zvEP-0je7-5tg9Z7 
  ├─ubuntu--mate--vg-root   ext4                                    ee271915-5c69-43b8-b9e8-8d51d5c5e225   
  └─ubuntu--mate--vg-swap_1 swap                                    86e6bedc-09b1-4ecf-aeca-60d9e3cd743a   
sr0                         iso9660     Ubuntu-MATE 18.04 LTS amd64 2018-04-26-18-48-56-00                 /cdrom
ubuntu-mate@ubuntu-mate:~$ find /dev -iname '*ubuntu*'
/dev/ubuntu-mate-vg
/dev/disk/by-label/Ubuntu-MATE\x2018.04\x20LTS\x20amd64
/dev/disk/by-id/dm-name-ubuntu--mate--vg-swap_1
/dev/disk/by-id/dm-name-ubuntu--mate--vg-root
/dev/mapper/ubuntu--mate--vg-swap_1
/dev/mapper/ubuntu--mate--vg-root
ubuntu-mate@ubuntu-mate:~$ ls -l /dev/mapper/ubuntu--mate--vg-root 
lrwxrwxrwx 1 root root 7 Nov 17 10:11 /dev/mapper/ubuntu--mate--vg-root -> ../dm-0
ubuntu-mate@ubuntu-mate:~$ ls -l /dev/ubuntu-mate-vg/root 
lrwxrwxrwx 1 root root 7 Nov 17 10:11 /dev/ubuntu-mate-vg/root -> ../dm-0
ubuntu-mate@ubuntu-mate:~$