Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving hard drives

Status
Not open for further replies.

ke4zdg

Programmer
Jan 25, 2006
1
US
I am currently running a Sun Ultra 30 and was thinking about upgrading to an Ultra 80. Is it possible to just take the hard drives out of my Ultra 30 and put them in an Ultra 80 and turn it on? Or will I need to reinstall Solaris and then reinstall all my other software (what a pain!)?
 
I guess you will have to rebuild the device tree and then everything should be working.


Boot to single user mode and perform the below mentioned steps.

# mount -F ufs /dev/dsk/<root disk device name> /a
# rm -rf /a/dev
# rm -rf /a/devices
# devfsadm -r /a -p /a/etc/path_to_inst
 
First what OS? Make sure that it is supported by both.

Also, watch out if the disk devices change naming convention. That might mean you might need to adjust the /a/etc/vfstab from sunny1504's suggeston above.

gene
 
not sure if you are right? Boot from cdrom and run:

# devfsadm -r /a -p /etc/path_to_inst
(no /a/... to path_to_inst)

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
Franz,

you are right the procedure below must be performed in single user with cdronm support.
ok boot cdrom -s

# mount -F ufs /dev/dsk/<root disk device name> /a
# rm -rf /a/dev
# rm -rf /a/devices
# devfsadm -r /a -p /a/etc/path_to_inst


Thanks
Sunil D'Souza
 
What is the -p switch ?

The man pages do not mention the -p switch.
 
If you change disks, you only need to do is reconfiguration boot.
1. After ugrading on new machine run Config Assistant - Rescan whole system
2. Do reconfiguration boot
(b -r in interactive mod)

# shutdown -i0 -g0 -y
 
Bug ID: 4329454

Synopsis: devfsadm man page does not document -p option

Category: kernel

Subcategory: devfs

State: closed

Priority:

Responsible Manager:

Responsible Engineer:

Description:

The devfsadm(1M) command does not document the -p option (pathname to use
for path_to_inst file). It is not possible to create a bootable root
partition without an /etc/path_to_inst file.

Work Around:

Copy the /etc/path_to_inst file from the active root paritition to the new
root partition after running devfsadm(1M).

Integrated in releases: ,

Duplicate of:

Patch ID: ,

See Also: 4333911,

Summary:

The devfsadm(1M) command does not allow an alternate location of the
path_to_inst file to be specified.

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
I have used the devfdadm -p switch and it does work.....If you are going from a 30 to 80, you can probably just get away with a boot -r. You really only have to rebuild the path_to_inst and devices from scratch for drives that use FC, since they specify the WWN.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top