Welcome to Nik Maslov`s blog
« Squid log rotation with timestampChange failed hdd in submirror in Solaris Volume Manager (SVM) »

How to migrate from dying system disk to new one in Solaris

Permalink 11/04/09 18:19, by Nik Maslov, Categories: Background , Tags: solaris, ufsdump

If your HDD with system is dying, you have the same HDD (in matter of size), and you`re using UFS - you could do the next steps to completly recreate this disk to a new one:


1. Check the disks (with attached new one):

# format

2. Copy the VTOC from old one to a new one:

# prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c1t0d0s2

3. Create new filesystem:

# newfs /dev/rdsk/c1t0d0s0

4. Mount slice to copy to:

#mount /dev/rdsk/c1t0d0s0 /mnt

5. UFSdump from old slice to a new mounted one:

# ufsdump 0f - /dev/rdsk/c0t0d0s0 | (cd /mnt && ufsrestore rf - )

6. Umount the new slice, with dumped information from from old one:

# umount /mnt

Steps 3 - 6 should be repeated for each slice to migrate.

7. Install bootblocks into a new disk partition:

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t0d0s0

 

That`s it, grab a beer ;D

1 comment »

1 comment

Comment from: andrei noga [Visitor]
also i can propose to add 2nd disk in boot-device list (obp)

just in case drive dies, but server will try to boot from it
11/04/09 @ 19:30

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

Search

XML Feeds

StatCounter

powered by b2evolution free blog software

©2010 by Nik Maslov

Contact | b2evolution skin by Asevo | blog software | hosting