tru64 system disk clone

HP/DEC/Compaq workstations/servers and operating systems (HP-UX, Tru64, OpenVMS, NonStop, etc.)
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
foetz
Moderator
Moderator
Posts: 6590
Joined: Mon Apr 14, 2003 4:34 am
Contact:

tru64 system disk clone

Unread postby foetz » Sat Jan 31, 2015 10:09 am

since my disk clone script for irix was quite popular i figured i could also share the one for osf. here it comes:

Code: Select all

########################################################################
#
#   R-A-C OSF/1 AdvFS system disk clone
#
#
#   this script generally assumes disk id 1 and that your target disk is
#   partitioned already. if not run:
#   disklabel -wr -t advfs /dev/rdisk/dsk1c
#
#   then partition your disk using diskconfig or disklabel.
#   this script expects the following partitions:
#   - a: root, rather small.
#   - b: usr, the big one. everything else goes there.
#   - d: swap, not necessary for the cloning.
#
#   if you should not have var as part of the usr domain change the
#   related parts accordingly.
#   if you should use the clone with a different id than the original
#   remember to change the swap entry in /etc/sysconfigtab on the clone.
#
########################################################################


echo preparing ...
rmfdmn -f clone_usr
rmfdmn -f clone_root
cd /mnt
mkdir dr du dv

echo creating clone root domain ...
mkfdmn /dev/disk/dsk1a clone_root
echo creating clone root fileset ...
mkfset clone_root root
mount_advfs clone_root#root /mnt/dr

echo creating clone usr domain ...
mkfdmn /dev/disk/dsk1b clone_usr
echo creating clone usr fileset ...
mkfset clone_usr usr
mount_advfs clone_usr#usr /mnt/du

echo putting var into the usr domain ...
mkfset clone_usr var
mount_advfs clone_usr#var /mnt/dv

echo dumping ...
vdump 0f - / | ( cd /mnt/dr ; vrestore xf - )
vdump 0f - /usr | ( cd /mnt/du ; vrestore xf - )
vdump 0f - /var | ( cd /mnt/dv ; vrestore xf - )

echo fixing domains for the clone ...
cd /mnt/dr/etc/fdmns
mv root_domain root_domain_old
mv usr_domain usr_domain_old
mv clone_root root_domain
mv clone_usr usr_domain

echo cleaning up ...
cd /mnt
umount dr
umount du
umount dv
rmdir dr du dv

echo all done
exit 0

tingo
Donor
Donor
Posts: 319
Joined: Sat Jun 26, 2010 5:40 pm
Location: Oslo, Norway

Re: tru64 system disk clone

Unread postby tingo » Sat Feb 14, 2015 10:39 am

Too many versions of the irix clone script show up in search. Can anyone point to the most up to date version?
Torfinn

User avatar
Raion-Fox
Donor
Donor
Posts: 1436
Joined: Thu Jan 30, 2014 5:01 pm
Location: near King George, Virginia
Contact:

Re: tru64 system disk clone

Unread postby Raion-Fox » Sat Feb 14, 2015 3:15 pm

tingo wrote:Too many versions of the irix clone script show up in search. Can anyone point to the most up to date version?


This is a script for DEC OSF/1 also known as Tru64, not IRIX.
:O3x02L: R16000 700MHz 8GB RAM kanna
:Octane: R12000 300MHz SI 896MB RAM yuuka
:Octane2: R12000A 400MHz V6 2.5GB RAM
:Indy: (Acclaim) R4600 133MHz XL Graphics 32MB RAM
:Indy: (Challenge S) R4600 133MHz (MIPS III Build Server)

I am probably posting from yangxiaolong, HP Z230 with Xeon E3-1230v3, 16GB RAM, GeForce 750ti, and running NetBSD and Windows 8.1 Embedded.
Owner and operator of http://irix.pw

User avatar
foetz
Moderator
Moderator
Posts: 6590
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: tru64 system disk clone

Unread postby foetz » Sat Feb 14, 2015 3:57 pm

TeamBlackFox wrote:This is a script for DEC OSF/1 also known as Tru64, not IRIX.

i guess he referred to my comment about the irix script in the first post.

tingo wrote:Too many versions of the irix clone script show up in search. Can anyone point to the most up to date version?


the original is there: viewtopic.php?p=65901#p65901
that's also the one i recommend. all modifications that came later did not add actual functionality.

User avatar
josehill
Moderator
Moderator
Posts: 3333
Joined: Mon Jun 06, 2005 9:53 pm
Location: New England, USA
Contact:

Re: tru64 system disk clone

Unread postby josehill » Sat Feb 14, 2015 4:35 pm

foetz wrote:all modifications that came later did not add actual functionality.

Pretty much the story of my life, right there! :lol:

User avatar
foetz
Moderator
Moderator
Posts: 6590
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: tru64 system disk clone

Unread postby foetz » Sun Feb 15, 2015 5:24 am

josehill wrote:
foetz wrote:all modifications that came later did not add actual functionality.

Pretty much the story of my life, right there! :lol:

oh did you make on of the later versions? :P


Return to “HP/DEC/Compaq”

Who is online

Users browsing this forum: No registered users and 1 guest