Not yet! We still need to re-scan the multipath map:
$ sudo m u l ti p a t h d r e s i z e map mpathb
ok
And then we are good:
$ sudo m u l t i p a t h − l l
mpathb ( 3 6 0 0 1 4 0 5 6 e e e 8 e c 6 e 1 1 6 4 f c b 9 5 9 0 8 6 4 8 2 ) dm−0 LIO−ORG, l u n 0 1
s i z e =2.0G f e a t u r e s = ’0 ’ hwhandler =’1 alua ’ wp=rw
|−+− p o l i c y =’ s e r v i c e −time 0 ’ p r i o =50 s t a t u s=a c t i v e
| ‘− 7 : 0 : 0 : 1 s d e 8 : 6 4 a c t i v e ready ru n n in g
.‘−+− p o l i c y =’ s e r v i c e −time 0 ’ p r i o =50 s t a t u s=e n a b l e d
‘− 8 : 0 : 0 : 1 s d f 8 : 8 0 a c t i v e ready ru n n in g
mpatha ( 3 6 0 0 1 4 0 5 e 3 c 2 8 4 1 4 3 0 e e 4 b f 3 8 7 1 b 1 9 9 8 b ) dm−1 LIO−ORG, l u n 0 2
s i z e =1.0G f e a t u r e s = ’0 ’ hwhandler =’1 alua ’ wp=rw
|−+− p o l i c y =’ s e r v i c e −time 0 ’ p r i o =50 s t a t u s=a c t i v e
| ‘− 7 : 0 : 0 : 2 s d c 8 : 3 2 a c t i v e ready ru n n in g
‘−+− p o l i c y =’ s e r v i c e −time 0 ’ p r i o =50 s t a t u s=e n a b l e d
‘− 8 : 0 : 0 : 2 sdd 8 : 4 8 a c t i v e ready ru n n in g
Make sure to run resize2fs /dev/mapper/mpathb to resize the filesystem.
Moving root File System from a Single Path Device to a Multipath Device
This is dramatically simplified by the use of UUIDs to identify devices as an intrinsic label. Simply install
multipath-tools-boot and reboot. This will rebuild the initial ramdisk and afford multipath the opportunity
to build it’s paths before the root filesystem is mounted by UUID.
Note
Whenever multipath.conf is updated, so should the initrd by executing:
update−initramfs −u −k all
The reason behind is multipath.conf is copied to the ramdisk and is integral to determining the
available devices to map via it’s blacklist and devices sections.
The Multipath Daemon
If you find you have trouble implementing a multipath configuration, you should ensure the multipath
daemon is running as described in Device Mapper Multipathing - Setup. The multipathd daemon must be
running in order to use** multipath** devices.
Do'stlaringiz bilan baham: |