[root@0-0-0:/] drbdsetup /dev/drbd0 show disk { size 0s _is_default; # bytes on-io-error pass_on _is_default; fencing dont-care _is_default; max-bio-bvecs 0 _is_default; } net { timeout 60 _is_default; # 1/10 seconds max-epoch-size 2048 _is_default; max-buffers 2048 _is_default; unplug-watermark 128 _is_default; connect-int 10 _is_default; # seconds ping-int 10 _is_default; # seconds sndbuf-size 0 _is_default; # bytes rcvbuf-size 0 _is_default; # bytes ko-count 0 _is_default; after-sb-0pri disconnect _is_default; after-sb-1pri disconnect _is_default; after-sb-2pri disconnect _is_default; rr-conflict disconnect _is_default; ping-timeout 5 _is_default; # 1/10 seconds } syncer { rate 250k _is_default; # bytes/second after -1 _is_default; al-extents 127 _is_default; } protocol C; _this_host { device minor 0; disk "/dev/system/drbd"; meta-disk internal; address ipv4 127.0.0.1:7789; } _remote_host { address ipv4 127.0.0.1:7789; } [root@0-0-0:/] pvs --segments --units s -o vg_name,vg_extent_size,pv_name,pvseg_start,pvseg_size,lv_name,lv_size,lv_attr,pe_start,seg_pe_ranges VG Ext PV Start SSize LV LSize Attr 1st PE PE Ranges vm 8192S /dev/dm-3 0 25000 freeradius 204800000S -wi-a- 384S /dev/dm-3:0-24999 vm 8192S /dev/dm-3 25000 441781 0S 384S system 8192S /dev/md0 0 122 boot 999424S -wi-ao 384S /dev/md0:0-121 system 8192S /dev/md0 122 7629 swap 62496768S -wi-ao 384S /dev/md0:122-7750 system 8192S /dev/md0 7751 2384 root 19529728S -wi-ao 384S /dev/md0:7751-10134 system 8192S /dev/md0 10135 466796 drbd 3823992832S -wi-ao 384S /dev/md0:10135-476930 ---REBOOT--- [root@0-0-0:~] pvs --segments --units s -o vg_name,vg_extent_size,pv_name,pvseg_start,pvseg_size,lv_name,lv_size,lv_attr,pe_start,seg_pe_ranges VG Ext PV Start SSize LV LSize Attr 1st PE PE Ranges vm 8192S /dev/dm-3 0 25000 freeradius 204800000S -wi--- 384S /dev/dm-3:0-24999 vm 8192S /dev/dm-3 25000 441781 0S 384S system 8192S /dev/md0 0 122 boot 999424S -wi-ao 384S /dev/md0:0-121 system 8192S /dev/md0 122 7629 swap 62496768S -wi-ao 384S /dev/md0:122-7750 system 8192S /dev/md0 7751 2384 root 19529728S -wi-ao 384S /dev/md0:7751-10134 system 8192S /dev/md0 10135 466796 drbd 3823992832S -wi-ao 384S /dev/md0:10135-476930 [root@0-0-0:~] /sbin/vgscan --ignorelockingfailure --mknodes Reading all physical volumes. This may take a while... Found volume group "vm" using metadata type lvm2 Found volume group "system" using metadata type lvm2 [root@0-0-0:~] /sbin/vgchange -aly --ignorelockingfailure device-mapper: reload ioctl failed: Invalid argument 1 logical volume(s) in volume group "vm" now active 4 logical volume(s) in volume group "system" now active [root@0-0-0:~] pvs --segments --units s -o vg_name,vg_extent_size,pv_name,pvseg_start,pvseg_size,lv_name,lv_size,lv_attr,pe_start,seg_pe_ranges VG Ext PV Start SSize LV LSize Attr 1st PE PE Ranges vm 8192S /dev/dm-3 0 25000 freeradius 204800000S -wi-d- 384S /dev/dm-3:0-24999 vm 8192S /dev/dm-3 25000 441781 0S 384S system 8192S /dev/md0 0 122 boot 999424S -wi-ao 384S /dev/md0:0-121 system 8192S /dev/md0 122 7629 swap 62496768S -wi-ao 384S /dev/md0:122-7750 system 8192S /dev/md0 7751 2384 root 19529728S -wi-ao 384S /dev/md0:7751-10134 system 8192S /dev/md0 10135 466796 drbd 3823992832S -wi-ao 384S /dev/md0:10135-476930 [root@0-0-0:~] ls -hal /dev/vm ls: cannot access /dev/vm: No such file or directory [root@0-0-0:~] lvm lvm> lvcreate vm -n test1 -L 102400000K device-mapper: reload ioctl failed: Invalid argument Aborting. Failed to activate new LV to wipe the start of it. Node /dev/mapper/vm-test1 was not removed by udev. Falling back to direct node removal. lvm> vgremove vm Do you really want to remove volume group "vm" containing 1 logical volumes? [y/n]: y Do you really want to remove active logical volume freeradius? [y/n]: y Node /dev/mapper/vm-freeradius was not removed by udev. Falling back to direct node removal. Logical volume "freeradius" successfully removed Volume group "vm" successfully removed lvm> vgcreate vm /dev/drbd0 No physical volume label read from /dev/drbd0 Physical volume "/dev/drbd0" successfully created Volume group "vm" successfully created lvm> lvcreate vm -n freeradius -L 102400000K Logical volume "freeradius" created lvm> quit Exiting. [root@0-0-0:~] ls -hal /dev/vm/ total 0 drwxr-xr-x 2 root root 60 Feb 16 15:16 . drwxr-xr-x 20 root root 3.4K Feb 16 15:16 .. lrwxrwxrwx 1 root root 7 Feb 16 15:16 freeradius -> ../dm-4 [root@0-0-0:~]