In article , Mario Stargard wrote: > Uwe M�ller wrote: > > Dear all, > > what is the easiest was to clone an ES40 local system disk, including > > several partitions and swap, to another empty disk of equal size, which > > is also located within the ES40 drive bay. > > I am using TRU64 V5.1a > > > > Best regards, > > Uwe > If you have the advfs utilities, I'd use the addvol utility to add > partitions to the advfs volumes; then remove the originals. The nice > thing about this approach is that you don't need to reboot. Don't > forget to set the new boot device in the srm with consvar. > > Otherwise, the old dump and restore from one disk to the other works > fine. Something like this should work: > > mkfdmn /dev/dsk1a newroot_domain > mkfdmn /dev/dsk2a newusr_domain > mkfset newroot_domain root > mkfset newusr_domain usr > mkfset newusr_domain var > mount newroot_domain#root /mnt > cd /mnt > vdump 0f - / | vrestore xf - > mount newusr_domain#usr /mnt/usr > cd usr > vdump 0f - /usr | vrestore xf - > and so on for /var > > Then go to /mnt/etc/fdmns and change the symlinks in the domain > directories to point to the correct place. > > Don't forget to reassign swap in /etc/sysconfigtab. If you use the > advfs utilities you'll need to reassign swap and reboot to get it to > take effect because you cannot remove swap space once it is assigned. > > Mario This does NOT apply to the boot volume. AdvFS only allows 1 volume in the boot (root) volume. However, /usr, /var, and another other file system/domains can use the addvol/rmvol trick. The reason the boot root domain can not have more than one disk, is that the boot firmware does not know how to deal with multiple disks in order to find all the parts of vmunix. And it can be a chicken and an egg situation since /etc/advfs/... is where the list of disks are stored, and if the for some reason /etc/advfs is _NOT_ on the disk specified to be booted, there is no way to find the other disks. Bob Harris