Operating System - Tru64 Unix
1820693 Members
2706 Online
109627 Solutions
New Discussion юеВ

Tru64 v4.0f disk copy dd command

 
SOLVED
Go to solution
TYP3R
Frequent Advisor

Tru64 v4.0f disk copy dd command

Hi Guys

We have a Alpha server with Tru64 v4.0f install, I need some commands on how to disk copy using the dd command, I know the procedure for it for v5 but the commands like hwmgr and show disk does not work on v4.

So i will need to commands similar to v5:
eg

hwmgr show scsi
show disk

dd if=/dev/disk/dsk#c of=/dev/disk/dsk#c bs=512k

Thanks for your help

William
8 REPLIES 8
Rob Leadbeater
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

Hi William,

On 4.0F, you'll probably need:

# scu show edt

to show you all SCSI devices.

Disk devices are usually /dev/rzN where N is based on the SCSI Bus/Target/LUN number.

Personally I'd use a pipelined vdump/vrestore to copy disks, rather than using dd.

Hope this helps,

Regards,

Rob
Kapil Jha
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

dd and hwmhr and scu edt are two different command.

in 4f you would have disk device as rzX

and dd command would be same except dsk you would have to use rz, be sure of device before run.

As suggested restore data would be better.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
TYP3R
Frequent Advisor

Re: Tru64 v4.0f disk copy dd command

Thanks for the help Rob and Kapil

I've got what i need now and the dd copying command is working.

Is there a command to tell me which disk location the O/S is installed on?? at the moment i have one disk installed, which is easy, but if i have mulitple disk in a system, how will i find out which disk have the O/S installed??
Rob Leadbeater
Honored Contributor
Solution

Re: Tru64 v4.0f disk copy dd command

Hi Williams,

You can find the disk that you booted from with :

# consvar -g booted_dev

but this isn't necessarily where the OS is installed. For that probably best to look at the links under /etc/fdmns - assuming you're using AdvFS.

# ls -l /etc/fdmns/root_domain
# ls -l /etc/fdmns/usr_domain

Cheers,

Rob
Kapil Jha
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

#voldisk list

disks under rootdg would be the having OS.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

and of course

#ls -l /etc/fdmns/root_domain

there are a couple of ways more...
#df -h /
check the block device and search it in volprint it would point to the root disks.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Rob Leadbeater
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

Hi,

@Kapil> #df -h /

The human readable option to df (-h) didn't get introduced until v5.1B...

Cheers,

Rob
Kapil Jha
Honored Contributor

Re: Tru64 v4.0f disk copy dd command

eeeeeeeeee...
my bad Rob I have not logged in a Tru64 server for last 2 years :( forgetting everything.

Thanks for the help
BR,
Kapil+
I am in this small bowl, I wane see the real world......