[html]
# drbdadm create-md drbd0
md_offset 2199023251456
al_offset 2199023218688
bm_offset 2198956109824
Found LVM2 physical volume signature
2147479552 kB data area apparently used
2147418076 kB left usable by current configuration
Device size would be truncated, which
would corrupt data and result in
‘access beyond end of device’ errors.
You need to either
* use external meta data (recommended)
* shrink that filesystem first
* zero out the device (destroy the filesystem)
Operation refused.
Command ‘drbdmeta 0 v08 /dev/sda3 internal create-md’ terminated with exit code 40
drbdadm create-md drbd0: exited with code 40
[/html]
このように作成ができません。
以下のリンクを参照して、
DRBD/FAQ: Linux HA
http://www.linux-ha.org/DRBD/FAQ#head-1e23230cc0e23aeb685e09680c3b3d80c4f80788
今回は、lvm領域を作り直しました。
[html]
# lvcreate -n LogVol00 -l 100%FREE vg_drbd1
Logical volume "LogVol00" created
# vgdisplay
— Volume group —
VG Name vg_drbd1
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 2.00 TiB
PE Size 4.00 MiB
Total PE 524287
Alloc PE / Size 524287 / 2.00 TiB
Free PE / Size 0 / 0
VG UUID Lt5HPg-QRLh-Si0a-9opz-DJWQ-1UcR-QfIDIT
[/html]