for disk in sd{b,c,d}; do grub-install --recheck /dev/$disk; done
Installing for i386-pc platform.
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.
Installing for i386-pc platform.
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.
Installing for i386-pc platform.
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
grub-install: warning: Couldn't find physical volume `(null)'. Some modules may be missing from core image..
Installation finished. No error reported.
~# pvs
PV VG Fmt Attr PSize PFree
/dev/md125 vg0 lvm2 a-- <2.64t <2.64t
/dev/md126 vg0 lvm2 a-- 30.48g 30.48g
/dev/sda3 vg0 lvm2 a-- 930.55g 0
Результат тот же:~# pvmove /dev/vg0/swap_1 /dev/md126
Cannot use /dev/vg0/swap_1: device is not in a usable state
Run `pvmove --help' for more information.
~# pvmove /dev/vg0/root /dev/md126
Cannot use /dev/vg0/root: device is not in a usable state
Run `pvmove --help' for more information.
:~# pvs
PV VG Fmt Attr PSize PFree
/dev/md125 lvm2 --- <2.64t <2.64t
/dev/md126 lvm2 --- 30.48g 30.48g
/dev/sda3 vg0 lvm2 a-- 930.55g 0
~# fdisk -l
Disk /dev/sdc: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1ER1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3B8B2CE6-B131-9244-81F2-0D70F2B5E665
Device Start End Sectors Size Type
/dev/sdc1 2048 4095 2048 1M BIOS boot
/dev/sdc2 4096 2101247 2097152 1G Linux filesystem
/dev/sdc3 2101248 66064383 63963136 30.5G Linux filesystem
/dev/sdc4 66064384 1953525134 1887460751 900G Linux filesystem
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1ER1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 38F007A0-081B-4F3B-A821-74D28B0EBC53
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2004991 2000896 977M Linux filesystem
/dev/sda3 2004992 1953523711 1951518720 930.6G Linux LVM
Disk /dev/sdd: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1ER1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB17251E-691C-9046-AA73-4C1B28360825
Device Start End Sectors Size Type
/dev/sdd1 2048 4095 2048 1M BIOS boot
/dev/sdd2 4096 2101247 2097152 1G Linux filesystem
/dev/sdd3 2101248 66064383 63963136 30.5G Linux filesystem
/dev/sdd4 66064384 1953525134 1887460751 900G Linux filesystem
Disk /dev/sdb: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000DM003-1ER1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: C6AB9FAC-9823-A84E-85D6-D3981EC28729
Device Start End Sectors Size Type
/dev/sdb1 2048 4095 2048 1M BIOS boot
/dev/sdb2 4096 2101247 2097152 1G Linux filesystem
/dev/sdb3 2101248 66064383 63963136 30.5G Linux filesystem
/dev/sdb4 66064384 1953525134 1887460751 900G Linux filesystem
Disk /dev/md127: 1022 MiB, 1071644672 bytes, 2093056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md126: 30.48 GiB, 32731299840 bytes, 63928320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/md125: 2.64 TiB, 2898733301760 bytes, 5661588480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1572864 bytes
Disk /dev/mapper/vg0-swap_1: 4.77 GiB, 5117050880 bytes, 9994240 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/vg0-root: 23.84 GiB, 25597837312 bytes, 49995776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/vg0-home: 901.95 GiB, 968460599296 bytes, 1891524608 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 977M 0 part /boot
└─sda3 8:3 0 930.6G 0 part
├─vg0-swap_1 253:0 0 4.8G 0 lvm [SWAP]
├─vg0-root 253:1 0 23.8G 0 lvm /
└─vg0-home 253:2 0 901.9G 0 lvm /home
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 1M 0 part
├─sdb2 8:18 0 1G 0 part
│ └─md127 9:127 0 1022M 0 raid1
├─sdb3 8:19 0 30.5G 0 part
│ └─md126 9:126 0 30.5G 0 raid1
└─sdb4 8:20 0 900G 0 part
└─md125 9:125 0 2.6T 0 raid5
sdc 8:32 0 931.5G 0 disk
├─sdc1 8:33 0 1M 0 part
├─sdc2 8:34 0 1G 0 part
│ └─md127 9:127 0 1022M 0 raid1
├─sdc3 8:35 0 30.5G 0 part
│ └─md126 9:126 0 30.5G 0 raid1
└─sdc4 8:36 0 900G 0 part
└─md125 9:125 0 2.6T 0 raid5
sdd 8:48 0 931.5G 0 disk
├─sdd1 8:49 0 1M 0 part
├─sdd2 8:50 0 1G 0 part
│ └─md127 9:127 0 1022M 0 raid1
├─sdd3 8:51 0 30.5G 0 part
│ └─md126 9:126 0 30.5G 0 raid1
└─sdd4 8:52 0 900G 0 part
└─md125 9:125 0 2.6T 0 raid5
pvmove -b /dev/vg0/swap_1 /dev/md126
Cannot use /dev/vg0/swap_1: device is not in a usable state
Run `pvmove --help' for more information.
~# pvmove -b /dev/vg0/root /dev/md126
Cannot use /dev/vg0/root: device is not in a usable state
Run `pvmove --help' for more information.
По средствам IPSec