アレイのライトインテントビットマップを無効にするコマンドの例
アレイの「ライトインテントビットマップ」を無効にするコマンドの例です。ここでは例として「内部ビットマップ」が有効になっている「RAID 1」アレイの「ライトインテントビットマップ」を無効にします。
環境について
「RAID 1」アレイの作成については、以下を参考にしてください。1.論理ボリュームの確認
現状の論理ボリュームの情報を確認します。赤字の箇所から「内部ビットマップ」が有効になっていることが分かります。
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --detail /dev/md/RAID1Array
/dev/md/RAID1Array:
Version : 1.2
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 102272 (99.89 MiB 104.73 MB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue May 6 10:26:19 2014
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Number Major Minor RaidDevice State
0 8 50 0 active sync /dev/sdd2
1 8 66 1 active sync /dev/sde2
2 8 82 2 active sync /dev/sdf2
/dev/md/RAID1Array:
Version : 1.2
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 102272 (99.89 MiB 104.73 MB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Tue May 6 10:26:19 2014
State : active
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Number Major Minor RaidDevice State
0 8 50 0 active sync /dev/sdd2
1 8 66 1 active sync /dev/sde2
2 8 82 2 active sync /dev/sdf2
2.物理ボリュームの確認
物理ボリュームの情報を確認します。赤字の箇所から「内部ビットマップ」が有効になっていることが分かります。
/dev/sdd2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sdd2
/dev/sdd2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 916805b5:a9c1191d:157a4072:dcbd5f7a
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : b4da95ec - correct
Events : 20
Device Role : Active device 0
Array State : AAA ('A' == active, '.' == missing)
/dev/sdd2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 916805b5:a9c1191d:157a4072:dcbd5f7a
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : b4da95ec - correct
Events : 20
Device Role : Active device 0
Array State : AAA ('A' == active, '.' == missing)
/dev/sde2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sde2
/dev/sde2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 6a3fdcf4:b121d8fe:3acee7c9:35d19478
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : 2c4c344e - correct
Events : 20
Device Role : Active device 1
Array State : AAA ('A' == active, '.' == missing)
/dev/sde2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 6a3fdcf4:b121d8fe:3acee7c9:35d19478
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : 2c4c344e - correct
Events : 20
Device Role : Active device 1
Array State : AAA ('A' == active, '.' == missing)
/dev/sdf2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sdf2
/dev/sdf2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : ef2a5422:a972c2cc:326f621d:30fa736f
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : 72083abd - correct
Events : 20
Device Role : Active device 2
Array State : AAA ('A' == active, '.' == missing)
/dev/sdf2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : ef2a5422:a972c2cc:326f621d:30fa736f
Internal Bitmap : 8 sectors from superblock
Update Time : Tue May 6 10:45:26 2014
Checksum : 72083abd - correct
Events : 20
Device Role : Active device 2
Array State : AAA ('A' == active, '.' == missing)
3.物理ボリュームの確認(ライトインテントビットマップ)
「ライトインテントビットマップ」の情報を確認します。以下のようになります。
/dev/sdd2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine-bitmap /dev/sdd2
Filename : /dev/sdd2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
Filename : /dev/sdd2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
/dev/sde2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine-bitmap /dev/sde2
Filename : /dev/sde2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
Filename : /dev/sde2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
/dev/sdf2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine-bitmap /dev/sdf2
Filename : /dev/sdf2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
Filename : /dev/sdf2
Magic : 6d746962
Version : 4
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 18
Events Cleared : 0
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 102272 (99.89 MiB 104.73 MB)
Bitmap : 2 bits (chunks), 0 dirty (0.0%)
4.ライトインテントビットマップを無効にする
以下のコマンドを実行し、「ライトインテントビットマップ」を無効にします。コマンドやオプションの説明は「アレイのライトインテントビットマップの設定を変更するコマンドの説明」を参考にしてください。
sudo mdadm --grow /dev/md/RAID1Array --bitmap=none
5.コマンドの実行結果
コマンドの実行結果は特に表示されません。
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --grow /dev/md/RAID1Array --bitmap=none
ubuntu@ubuntu-vb-1404:~$
ubuntu@ubuntu-vb-1404:~$
6.論理ボリュームの確認
論理ボリュームの情報を確認します。「ライトインテントビットマップ」が無効になっています。
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --detail /dev/md/RAID1Array
/dev/md/RAID1Array:
Version : 1.2
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 102272 (99.89 MiB 104.73 MB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue May 6 10:42:48 2014
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 19
Number Major Minor RaidDevice State
0 8 50 0 active sync /dev/sdd2
1 8 66 1 active sync /dev/sde2
2 8 82 2 active sync /dev/sdf2
/dev/md/RAID1Array:
Version : 1.2
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 102272 (99.89 MiB 104.73 MB)
Raid Devices : 3
Total Devices : 3
Persistence : Superblock is persistent
Update Time : Tue May 6 10:42:48 2014
State : clean
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Events : 19
Number Major Minor RaidDevice State
0 8 50 0 active sync /dev/sdd2
1 8 66 1 active sync /dev/sde2
2 8 82 2 active sync /dev/sdf2
7.物理ボリュームの確認
物理ボリュームの情報を確認します。「ライトインテントビットマップ」が無効になっています。
/dev/sdd2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sdd2
/dev/sdd2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 916805b5:a9c1191d:157a4072:dcbd5f7a
Update Time : Tue May 6 10:49:21 2014
Checksum : b4da96d7 - correct
Events : 21
Device Role : Active device 0
Array State : AAA ('A' == active, '.' == missing)
/dev/sdd2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 916805b5:a9c1191d:157a4072:dcbd5f7a
Update Time : Tue May 6 10:49:21 2014
Checksum : b4da96d7 - correct
Events : 21
Device Role : Active device 0
Array State : AAA ('A' == active, '.' == missing)
/dev/sde2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sde2
/dev/sde2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 6a3fdcf4:b121d8fe:3acee7c9:35d19478
Update Time : Tue May 6 10:49:21 2014
Checksum : 2c4c3539 - correct
Events : 21
Device Role : Active device 1
Array State : AAA ('A' == active, '.' == missing)
/dev/sde2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : 6a3fdcf4:b121d8fe:3acee7c9:35d19478
Update Time : Tue May 6 10:49:21 2014
Checksum : 2c4c3539 - correct
Events : 21
Device Role : Active device 1
Array State : AAA ('A' == active, '.' == missing)
/dev/sdf2
ubuntu@ubuntu-vb-1404:~$ sudo mdadm --examine /dev/sdf2
/dev/sdf2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : ef2a5422:a972c2cc:326f621d:30fa736f
Update Time : Tue May 6 10:49:21 2014
Checksum : 72083ba8 - correct
Events : 21
Device Role : Active device 2
Array State : AAA ('A' == active, '.' == missing)
/dev/sdf2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x0
Array UUID : 9a27606b:e8dd137b:f7350ca6:75fb121c
Name : ubuntu-vb-1404:RAID1Array (local to host ubuntu-vb-1404)
Creation Time : Tue May 6 10:26:14 2014
Raid Level : raid1
Raid Devices : 3
Avail Dev Size : 204672 (99.95 MiB 104.79 MB)
Array Size : 102272 (99.89 MiB 104.73 MB)
Used Dev Size : 204544 (99.89 MiB 104.73 MB)
Data Offset : 128 sectors
Super Offset : 8 sectors
State : clean
Device UUID : ef2a5422:a972c2cc:326f621d:30fa736f
Update Time : Tue May 6 10:49:21 2014
Checksum : 72083ba8 - correct
Events : 21
Device Role : Active device 2
Array State : AAA ('A' == active, '.' == missing)