Here is the procedure to mirror VIOs boot disk.
you can use lspv -free command to check the un-mapped free disks.
Add hdisk1 into rootvg:
# lspv
NAME PVID VG STATUS
hdisk0 00c122d4341c6e62 rootvg active
hdisk1 00cd55a4fg6b676f None
hdisk2 00c5524409a99b77 None
Here hdisk0 is rootvg disk , now we need to check free disk.NAME PVID VG STATUS
hdisk0 00c122d4341c6e62 rootvg active
hdisk1 00cd55a4fg6b676f None
hdisk2 00c5524409a99b77 None
you can use
$ lspv -free
NAME PVID SIZE(megabytes)
hdisk1 00cd55a4fg6b676f 256000
hdisk2 00c5524409a99b77 256000
So In this case, hdisk1 is free and un-mapped . So we're going to use hdisk1 to mirror with hdisk0.NAME PVID SIZE(megabytes)
hdisk1 00cd55a4fg6b676f 256000
hdisk2 00c5524409a99b77 256000
Add hdisk1 into rootvg:
# extendvg rootvg hdisk1
0516-1254 extendvg: Changing the PVID in the ODM.
Now mirror the disk but defer the automatic reboot:
$ mirrorios -defer hdisk1
Now check the boot list:
$ bootlist -mode normal -ls
hdisk0 blv=hd5 pathid=0
We only have hdisk0 at the moment. Need to add hdisk1 into this:hdisk0 blv=hd5 pathid=0
$ bootlist -mode normal hdisk0 hdisk1
Check that worked:
$ bootlist -mode normal -ls
hdisk0 blv=hd5 pathid=0
hdisk1 blv=hd5 pathid=0
You now have a mirrored rootvg. hdisk0 blv=hd5 pathid=0
hdisk1 blv=hd5 pathid=0
Thanks for nice article.
ReplyDeleteis it necessary to reboot vios lpar after mirroring?
thanks
No reboot required
ReplyDelete