Link to home
Start Free TrialLog in
Avatar of Puneeth MH
Puneeth MH

asked on

Solaris SUN OS 4.1.3 machine clone

I have a machine with Solaris Sun os 4.1.3, which I am trying to clone.
I have a procedure which would work with Solaris 8 to 10.
I tried creating a snapshot using fssnap  but it says command not found.

What is the alternative to use fssnap under ufsdump in 4.1.3 or in other words, what are the steps to be followed to clone the same?
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Puneeth MH
Puneeth MH

ASKER

Yes, it was commissioned around 1996 or so.

ufsdump is not found in 4.1.3/4.
The machine does not have tape drive support.

What is <dump-file> here?  Can I name anything?
If you don't mind requesting you to provide stepwise procedure till the end (installboot) that would work under SUN OS 4.1.x.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
format command would show two disks
0. sd0 at esp0 slave 24
sd0: <SUN0424 cyl 1151 alt 2 hd 9 sec 80>

sd2 at esp0 slave 16
sd2: <FUJISTU M2952S cyl 5044 alt 2 hd 5 sec 186>
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since there is no ufsdump, I am using dump and restore command of 4.1.3

let me know if there is something wrong or fishy in the below procedure for the cloning.

dump 0ucf root.dump /  
Add the new disk.
reboot -- -r
prtvtoc /dev/rsda0 | fmthard -s - /dev/rsda2    (PS: Not aware whether prtvtoc would work in 4.1.3)
newfs /dev/rsd2  (Please let me know if my device name and path to be corrected)
mount /dev/rsd0  /mnt
cd /mnt
restore xf root.dump
cd /usr/kvm/m*
installboot -vlt /boot bootsd /dev/rsd0a
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok, I got the path of installboot.
/usr/kvm/mdec/installboot [ -hltv ] .

if so then I will have installboot onto sd2a isn't it?
is /boot  and /bootsd remain same or will it change?
I understand bootsd is for an SD drive?

What could be other possibilities?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
My bad, it was typo.
no problem ;-)
There are couples of errors reported in the first two command.

dump command shows following error;

#dump 0ucf root.dump /
DUMP: Date of this level 0 dump: Mon Nov 7
DUMP : Date of last level 0 dump: the epoch
DUMP: Dumping /dev/rsd0a (/) to root.dump
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 97024 blocks (47.38MB) on 1.11 tape(s).
DUMP: mapping (Pass III) [directories]
DUMP: mapping (Pass IV) [regular files]

/: write failed file system is full
DUMP: Tape write error 1255 feet into tape 1
DUMP: NEEDS ATTENTION: Do you want to restart?: ("yes" or "no")


Why this error, is the dump command writing to tape?
How to resolve this?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks a lot, could you please continue your answers in other post of the same subject line?