03-12-2020
1,484,
567
Join Date: Mar 2011
Last Activity: 28 November 2020, 9:34 AM EST
Posts: 1,484
Thanks Given: 68
Thanked 567 Times in 444 Posts
Lets start with how many disks do you have in that box and what size ?
Did the operating system come install over entire devices (s2) ?
Can you show zpool status rpool on that box.
You have 3 choices for disks to use in ldoms :
1.) Reinstall the hypervisor on slice not entire disk, partitioning it in text installer and using VTOC label.
OR detach one of mirror disks, repartition with slice 0, attach. This will require that you have free space in rpool for such actions.
Then the other disk s0 after rebuild/resilver is complete - be sure to check eeprom and primary domain for boot device specification.
Reboot the server to confirm everything is ok.
After that, 2 x slice 0 (s0) will make rpool zpool, and all other slices (except s2!) can be used in ldoms after partitioning via format with free space.
Example, you have 2 x 300 GB, with slice 0 (s0) of 100 GB on each disk. You install operating system on it or repartition, attach, detach.
You are left with s1 to s6 (VTOC label, s2 excluded as it represents entire disk) to use with ldm add-vdsdev options=slice /dev/dsk/cNtNdNs1... on both disks.
Followed by a ldm add-vdisk id=<num> ... <ldom>
Add, for instance, s1 slices from both disks to ldom and create a mirrored rpool inside.
When you get SAN lun, you will add that lun to LDOM, and make a three way mirror of existing pool.
After the resilver is complete, you will detach and remove 2 local disks.
This would be mid level in terms on ease of setup.
2.) Creating ZVOL in existing zpool and adding /dev/zvol/dsk/ ... to LDOM.
Same with SAN lun afterwards, you add it, mirror and detach the old ZVOL after inside LDOM.
This will be worst performance, but easiest to setup on existing configuration.
3.) Combination of 1.) and SVM.
You mirror two slice 1 (s1) with all remaining space on SVM level and create soft partitions which you present to ldom as entire devices /dev/md/dsk..
Migration is done after the SAN lun is available to hypervisor via [/icode]meta..[/icode] commands on the hypervisor level or inside LDOM via zpool [attach|detach] commands.
This is the most complicated way and would advise against it if you do not have SVM experience.
No downtime is required for any operations above, unless, of course, you reinstall the hypervisor entirely.
Hope that helps
Regards
Peasant.