Difference between revisions of "Device mapper"

From wikieduonline
Jump to navigation Jump to search
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[wikipedia:Device mapper]]
  
 +
/dev/[[mapper]]/
 +
/dev/[[mapper]]/control
  
  
 +
* <code>ls -lrt [[/dev/]]mapper/</code>
 +
 +
* <code>[[dmsetup ls]]</code>
 +
 +
 +
:<code>[[vgchange]] -a|--activate y|n|ay</code>
 +
:The block device for the LV is added or removed from the system using [[device-mapper]] in the kernel. A symbolic link /dev/VGName/LVName pointing to the device node is also added/removed.
 +
 +
 +
vgchange -a n VG_NAME
 +
  0 logical volume(s) in volume group "VG_NAME" now active
 +
vgchange -a y VG_NAME
 +
  1 logical volume(s) in volume group "VG_NAME" now active
 +
 +
 +
 +
 +
 +
== Related terms ==
 +
* <code>[[multipath -l]]</code> (show the current multipath topology from information fetched in [[sysfs]] and the device mapper)
 +
* <code>[[/etc/fstab]]</code>
 +
* <code>[[dm verity]]</code>
 +
* <code>[[dm mpath]]</code>
 +
* <code>[[resize2fs]]</code>
 +
 +
== Activities ==
 +
* Read Configuring Device Mapper Multipath [[RHEL 8]] https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/configuring_device_mapper_multipath/index
 +
 +
Related
 +
* [[Multipath: remove multipath device unpresented to host]]
  
 
== See also ==
 
== See also ==
* [[dmsetup]] -ls
+
* {{kpartx}}
 
+
* {{dmsetup}}
 +
* {{Linux Fibre Channel}}
 +
* {{LVM}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 09:01, 14 February 2023

wikipedia:Device mapper

/dev/mapper/
/dev/mapper/control



vgchange -a|--activate y|n|ay
The block device for the LV is added or removed from the system using device-mapper in the kernel. A symbolic link /dev/VGName/LVName pointing to the device node is also added/removed.


vgchange -a n VG_NAME
 0 logical volume(s) in volume group "VG_NAME" now active
vgchange -a y VG_NAME
 1 logical volume(s) in volume group "VG_NAME" now active



Related terms[edit]

Activities[edit]

Related

See also[edit]

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck

Advertising: