LVM--どういう意味ですか?「正確には何ですか? LVMのdevicemapperとidの関連付け

LVM--どういう意味ですか?「正確には何ですか? LVMのdevicemapperとidの関連付け

次のリンクからhttps://www.kernel.org/doc/Documentation/device-mapper/thin-provisioning.txt 私は読んだ:

薄くする

これはデバイスマッパーに送信されるコマンドです。

ベストアンサー1

この部分について話すなら:

i) Creating a new thinly-provisioned volume.

  To create a new thinly- provisioned volume you must send a message to an
  active pool device, /dev/mapper/pool in this example.

    dmsetup message /dev/mapper/pool 0 "create_thin 0"

  Here '0' is an identifier for the volume, a 24-bit number.  It's up
  to the caller to allocate and manage these identifiers.  If the
  identifier is already in use, the message will fail with -EEXIST.

その場合、これはシンボリュームを参照する一意の番号(「識別子」)にすぎません。 LVMは数字を数える方法(1から始まる)に割り当てるようです。次の出力を確認して、どのLVMが使用されているかを確認できますdmsetup table

# dmsetup table | grep thin
Giri-ThinPoolLV-tpool: 0 116752384 thin-pool 253:9 253:10 1024 22803 0 
Giri-vm--gl--runner: 0 62914560 thin 253:12 6
Giri-vm--squeeze--64: 0 10485760 thin 253:12 7
Giri-vm--portal--dev: 0 62914560 thin 253:12 5
Giri-vm--jessie--64: 0 31457280 thin 253:12 1
Giri-vm--stretch--64: 0 41943040 thin 253:12 2
Giri-vm--portal--test: 0 62914560 thin 253:12 4
Giri-vm--wheezy--64: 0 31457280 thin 253:12 3

(以前に見たことがない場合は、253:12デバイスのメジャー:マイナー番号/dev/dm-12です。この場合はGiri-ThinPoolLV-tpool)。

おすすめ記事