Re: re-attach a mirrored metadevice



Dear Patrick and Group,

setuidzero@xxxxxxxxx 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

.



Relevant Pages

  • unable to install from CD: failure to mount once kernel installed
    ... cleanest possible install. ... ran netinstall off floppies accepting all defaults: still unable to mount ... booted the Linux box from the hard disk into the testing Debian distro, ... allow me to turn off shadowing for either the video BIOS or the main BIOS. ...
    (Debian-User)
  • Re: device packages?!?
    ... to create and mount the filesystem itself: ... (This will add a /cdrom stanza in /etc/filesystems, the AIX equivalent ... cdrfs is also the AIX equivalent of Solaris pcfs filesystem.) ... If necessary, install missing stuff with: ...
    (comp.unix.aix)
  • Re: Resizing Partitions, Losing Windows XP...
    ... install applications ... Could I do a dump of my current FreeBSD ... to mount the partitions read only. ... now to restore there are better ways to do it but this ...
    (freebsd-questions)
  • Re: [opensuse]
    ... Mount fails with some stupid error. ... intuitive and informative apps like Synaptic. ... dependency conflicts I just let it install. ... If you don't install Zen Updater openSuSE ...
    (SuSE)
  • RE: unable to install from CD: failure to mount once kernel installed
    ... Have you ever successfully installed Debian before or is this the first ... Subject: unable to install from CD: failure to mount once kernel ... Knoppix loads fine and the resulting system can mount and explore the ...
    (Debian-User)

Loading