Difference between revisions of "/dev/mapper"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
m
m
Line 6: Line 6:
  
 
The library libdevmapper.so is used for LVM management.   
 
The library libdevmapper.so is used for LVM management.   
 +
 +
== distibution specific nodes ==
 +
 +
* /dev/mapper/centos-root
 +
* /dev/mapper/mint--vg-root
 +
* /dev/mapper/Kronos--vg-root
 +
* /dev/mapper/VG-root--lv
 +
* /dev/mapper/system-lv_root
 +
* /dev/mapper/fedora-root
 +
* /dev/mapper/ubuntu--vg-ubuntu--lv
 +
 +
  
 
== cache directory full ==
 
== cache directory full ==
Line 19: Line 31:
  
 
Shows the top 10 files taking up the most space.
 
Shows the top 10 files taking up the most space.
 +
 +
$ sudo vgs
 +
  VG      #PV #LV #SN Attr  VSize  VFree
 +
  mint-vg  1  2  0 wz--n- 118.26g    0

Revision as of 01:45, 1 November 2019

The /dev/mapper/distro--vg-root in place of a traditional /dev/sdxN block device just indicates that you chose to install the system using LVM2 logical volume management.

The devices in /dev/mapper are Logical Volumes. Logical Volume Manager (LVM) uses /dev/mapper and is considered a vastly superior way to manage storage space compared to just creating regular partitions with file systems on various disks.

The subfolders under /dev/mapper are the names of Volume Groups with the device nodes in those subfolders representing Logical Volumes.

The library libdevmapper.so is used for LVM management.

distibution specific nodes

  • /dev/mapper/centos-root
  • /dev/mapper/mint--vg-root
  • /dev/mapper/Kronos--vg-root
  • /dev/mapper/VG-root--lv
  • /dev/mapper/system-lv_root
  • /dev/mapper/fedora-root
  • /dev/mapper/ubuntu--vg-ubuntu--lv


cache directory full

with the command

df -h|grep mapper

To find out if it is full. Look for something like:

/dev/mapper/mint--vg-root  101G   61G   36G  64% /

to find out whats filling it up. A big cache file from gimp or something like that

 sudo du -a /home | sort -n -r | head -n 10

Shows the top 10 files taking up the most space.

$ sudo vgs

 VG      #PV #LV #SN Attr   VSize   VFree
 mint-vg   1   2   0 wz--n- 118.26g    0