vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Dear Group, for the mirroring of our partitions, we use Solstice DiskSuite. I am not sure about the version, but the only paper documentation I find in the office is about 4.2 . Our systems are SPARC with Solaris 8. In order to install a new software on the /usr/ partition, I wanted to make sure that the previous installation would not get lost. This partition is metadevice d2, which is a Trans of mirror d20 and logging device d7 . Mirror d20 has d21 and d22 as submirrors: d2 / \ d20 d7 / \ d21 d22 Before the installation, I had metadetach'ed d21 from d20. I was hoping that in the case the installation would go wrong, that it would be possible to copy the content of submirror d21 to submirror d22 and so restoring the system in its original state. Unfortunately, the installation /did/ go wrong, but I can't figure out how to put the above procedure in to practice. Detaching d22 of d20 is not possible: "metadetach: <SERVERNAME>: d20: attempt to detach last running submirror". And if I would reattach d21 to d20, it would copy the contents of d22 immediately to d21, loosing the original state of the /usr/-partition, no? In the documentation, I could not find what I needed, can somebody lead me on the way? A summary with the correct solution will be posted. Kind greetings, Wim |
| |||
| wim wrote: > Dear Group, > > for the mirroring of our partitions, we use Solstice DiskSuite. I am > not sure about the version, but the only paper documentation I find in > the office is about 4.2 . Our systems are SPARC with Solaris 8. > > In order to install a new software on the /usr/ partition, I wanted to > make sure that the previous installation would not get lost. This > partition is metadevice d2, which is a Trans of mirror d20 and logging > device d7 . Mirror d20 has d21 and d22 as submirrors: > > d2 > / \ > d20 d7 > / \ > d21 d22 > > Before the installation, I had metadetach'ed d21 from d20. I was hoping > that in the case the installation would go wrong, that it would be > possible to copy the content of submirror d21 to submirror d22 and so > restoring the system in its original state. > > Unfortunately, the installation /did/ go wrong, but I can't figure out > how to put the above procedure in to practice. Detaching d22 of d20 is > not possible: "metadetach: <SERVERNAME>: d20: attempt to detach last > running submirror". > > And if I would reattach d21 to d20, it would copy the contents of d22 > immediately to d21, loosing the original state of the /usr/-partition, > Instead of trying to detach the last mirror and reattach the old (good install) one, just mount the ctd devices at different points, copy the tree over, unmount, attach the mirrors and they'll "sync" (but since they're already the same, nothing should be transferred). Another way you could do it is to just not mount the mirror (comment in /etc/vfstab), boot up, mount the devices, copy, uncomment vfstab, and mount the mirror. I think. Patrick |
| ||||
| Dear Patrick and Group, setuidzero@gmail.com wrote: [...] > Instead of trying to detach the last mirror and reattach the old (good > install) one, just mount the ctd devices at different points, copy the > tree over, unmount, attach the mirrors and they'll "sync" (but since > they're already the same, nothing should be transferred). Thank you very much, this is probably the best solution. Summary: * change /etc/vfstab so that d21 (the copy with the original files) gets loaded as the /usr * reboot * mount the metadevice (d2 and thus d22 with the new installation) to a directory (say /tmp/media) * delete the badly installed program files from /tmp/media * copy the old program files (from d21) to /tmp/media * umount d2 and change /etc/vfstab so that it will use d2 as the /usr-partition * reboot (and test) * metattach d21 to d20 and watch it resynching > Another way you could do it is to just not mount the mirror (comment in > /etc/vfstab), boot up, mount the devices, copy, uncomment vfstab, and > mount the mirror. Well, it sounds more adventurous, but I didn't test it :-) If nobody else has any comments, I consider this thread closed. Thanks to everybody for his/her support. Kind greetings, Wim |