public:iscsi:dm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:iscsi:dm [2015/06/06 09:49] – simpliefied 2nd sentence wiki.tk | public:iscsi:dm [2024/06/07 08:01] (current) – [DM devices] updated URL Thomas Kornack | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== DM devices ===== | ||
+ | [[wp> | ||
+ | |||
+ | All devices described so far are DM devices. Some of the mentioned devices have to be accessed as DM devices only in exceptional cases. | ||
+ | |||
+ | __Warning__\\ | ||
+ | Especial care must be taken when directly manipulating DM devices. Direct modifications of DM devices are access on lowest level. Devices or information can easily be destroyed by such access. This is especially true when snapshots exist because the creation of snapshots adds further DM devices. | ||
+ | |||
+ | The only program to handle DM devices directly is '' | ||
+ | |||
+ | All DM devices can be displayed with the sub-command '' | ||
+ | root@kvm55: | ||
+ | 350002ac21d622071 (252, | ||
+ | 350002ac21d632071 (252, | ||
+ | vg-images (252, | ||
+ | vg3_nas-lv_nas5501 (252, | ||
+ | vg3_dbserver-lv_dbserver5501 (252, | ||
+ | vg-lv_dbslave5501 (252, | ||
+ | The first column delivers the name of the device. The type of device can be derived from it:\\ | ||
+ | 350002ac21d622071, | ||
+ | vg-images, vg3_nas-lv_nas5501 …: LVM logical volumes | ||
+ | |||
+ | The numbers in brackets are the major device number and the minor device number. The major device number of DM devices is always 252, while the minor device number represents the DM device number. The multipath device ' | ||
+ | |||
+ | More detailed information on DM devices can be displayed by the sub-command '' | ||
+ | root@kvm55: | ||
+ | Name: 350002ac21d632071 | ||
+ | State: | ||
+ | Read Ahead: | ||
+ | Tables present: | ||
+ | Open count: | ||
+ | Event number: | ||
+ | Major, minor: | ||
+ | Number of targets: 1 | ||
+ | UUID: mpath-350002ac21d632071 | ||
+ | For a detailed description of all displayed information see the man page of '' | ||
+ | |||
+ | The assignment of DM devices to his connections to physical devices can be made visible with the help of the following commands and their options: | ||
+ | root@kvm55: | ||
+ | [4: | ||
+ | [5: | ||
+ | [5: | ||
+ | [5: | ||
+ | [6: | ||
+ | [6: | ||
+ | [6: | ||
+ | |||
+ | root@kvm55: | ||
+ | 350002ac21d622071 (252:4) | ||
+ | | ||
+ | | ||
+ | vg-images (252:0) | ||
+ | | ||
+ | vg3_nas-lv_nas5501 (252:5) | ||
+ | | ||
+ | ├─ (8:64) | ||
+ | └─ (8:48) | ||
+ | vg3_dbserver-lv_dbserver5501 (252:3) | ||
+ | | ||
+ | vg-lv_dbslave5501 (252:1) | ||
+ | | ||
+ | The device ' | ||
+ | ===== Software RAID ===== | ||
+ | Other DM devices are software [[wp> | ||
+ | This is an example from another KVM host with configured software RAID: | ||
+ | root@kvm62: | ||
+ | Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] | ||
+ | md0 : active raid1 dm-4[1] dm-1[0] | ||
+ | 976760768 blocks [2/2] [UU] | ||
+ | | ||
+ | unused devices: < | ||
+ | |||
+ | root@kvm62: | ||
+ | [0: | ||
+ | [6: | ||
+ | [6: | ||
+ | [8: | ||
+ | [8: | ||
+ | [9: | ||
+ | [9: | ||
+ | |||
+ | root@kvm62: | ||
+ | 350000393f8ca90dc-part1 (252:4) | ||
+ | | ||
+ | └─ (8:32) | ||
+ | 350000393f8ca9334-part1 (252:1) | ||
+ | | ||
+ | └─ (8:16) | ||
+ | 350002ac314162071 (252:8) | ||
+ | | ||
+ | | ||
+ | vg-lv_admin6201 (252:5) | ||
+ | | ||
+ | vg-images (252:2) | ||
+ | | ||
+ | vg-lv_backup6201 (252:6) | ||
+ | | ||
+ | vg3_lb-lv_lb6101 (252:7) | ||
+ | | ||
+ | |||
+ | Note the following interesting details of the example output: | ||
+ | * Partitions can also be DM devices. In the example above the DM devices ' | ||
+ | * The DM devices of host ' | ||
+ | * The software RAID device ' | ||
+ | |||
+ | |||
+ | [[public: |