Dell PowerEdge R750 EMC PMem 200 Series Users Guide - Page 40

Linux, Identify and con persistent memory device, Listing PMem devices, Create namespace

Page 40 highlights

10 Linux Topics: • Identify and configure persistent memory device • Management utility • Linux errata Identify and configure persistent memory device Listing PMem devices To list all physical devices in the system, run command ndctl list -DHi Create namespace The configuration of namespaces will decide how much memory capacity user wants to expose to the OS. To configure namespace, run the following command: ndctl create-namespace Following command needs to be executed for each region created when the goals were created for the system: ndctl create-namespace -r regionX After creating name spaces, all name spaces are shown using the following command: ndctl list -N To correlate a namespace to a PMem device, use the following command: lsblk NOTE: Ensure you delete all the namespaces before repurposing the PMems. Repurposing includes PMem migration, removal and reconfiguration between memory and App-direct mode Mount file system on namespace device After you see the PMem devices in /device folder, mount the filesystems by using the following commands: mkfs.xfs -f -m reflink=0 /dev/pmemX (X is a natural number ranging from 0 to number of Logical PMem Devices) mkdir /mnt/pmemX mount -o dax /dev/pmemX /mnt/pmemX 40 Linux

  • 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
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47

Linux
Topics:
Identify and configure persistent memory device
Management utility
Linux errata
Identify and configure persistent memory device
Listing PMem devices
To list all physical devices in the system, run command
ndctl list -DHi
Create namespace
The configuration of namespaces will decide how much memory capacity user wants to expose to the OS.
To configure namespace, run the following command:
ndctl create-namespace
Following command needs to be executed for each region created when the goals were created for the system:
ndctl create-namespace -r regionX
After creating name spaces, all name spaces are shown using the following command:
ndctl list -N
To correlate a namespace to a PMem device, use the following command:
lsblk
NOTE:
Ensure you delete all the namespaces before repurposing the PMems. Repurposing includes PMem migration,
removal and reconfiguration between memory and App-direct mode
Mount file system on namespace device
After you see the PMem devices in /device folder, mount the filesystems by using the following commands:
mkfs.xfs -f -m reflink=0 /dev/pmemX
(X is a natural number ranging from 0 to number of Logical PMem Devices)
mkdir /mnt/pmemX
mount -o dax /dev/pmemX /mnt/pmemX
10
40
Linux