migrate Solaris 8 disk from old to new disk partitions with Disksuite

migrate Solaris 8 disk from old to new disk partitions with Disksuite

Post by P » Fri, 08 Nov 2002 08:28:45



I have a Sun E450 running Solaris 8 and Solstice Disksuite. I
inherrited this box from another group in it's current configuration.
I do not want to rebuild the box because of the Oracle instances
installed. Here is the problem, the box only has one gig for / which
includes /usr and is 97% full. The 3 gig /opt partition is 86% full. I
want to break out the root disk mirror in Disksuite and rebuild on it.

Existing Root Disk partition table. Partition 7 is unused and 6 is the
SDS metaDB.
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  445        1.00GB    (446/0/0)  
2101552
  1       swap    wu     446 - 1336        2.00GB    (891/0/0)  
4198392
  2     backup    wm       0 - 7505       16.86GB    (7506/0/0)
35368272
  3        var    wm    1337 - 1782        1.00GB    (446/0/0)  
2101552
  4 unassigned    wm    1783 - 3118        3.00GB    (1336/0/0)
6295232
  5       home    wm    3119 - 7124        9.00GB    (4006/0/0)
18876272
  6 unassigned    wm    7125 - 7168      101.23MB    (44/0/0)    
207328
  7 unassigned    wm    7169 - 7505      775.36MB    (337/0/0)  
1587944

New partition table
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 -  890        2.00GB    (891/0/0)  
4198392
  1       swap    wu     891 - 1781        2.00GB    (891/0/0)  
4198392
  2     backup    wm       0 - 7505       16.86GB    (7506/0/0)
35368272
  3        var    wm    1782 - 2227        1.00GB    (446/0/0)  
2101552
  4 unassigned    wm    2228 - 4307        4.67GB    (2080/0/0)
9800960
  5       home    wm    4308 - 7460        7.08GB    (3153/0/0)
14856936
  6 unassigned    wm    7461 - 7504      101.23MB    (44/0/0)    
207328
  7 unassigned    wm    7505 - 7505        2.30MB    (1/0/0)      
4712

Here is what I've tried so far, that isn't working! I broke out the
mirror and repartitioned it. I built filesystems on the partitions,
mounted them on /mnt respectively,  and copied data from existing root
disk (c0t0d0) to new partitioned drive (c0t1d0) using
ufsdump/ufsrestore on all the partitions. I installed a boot block on
the disk. Editted the c0t1d0 vfstab file to only mount the
/dev/dsk/c0t0d0 partitions (see vfstab file below). I powered off the
system, pulled c0t0d0 drive and moved c0t1d0 to the c0t0d0 slot.
Powered it up and it went into a panic mode loop complaining about
vold. What else do I need to do to get this puppy up? Once I can boot
off the drive I'll remirror using disksuite.

# cat /mnt/etc/vfstab
#device         device          mount           FS      fsck    mount
 mount
#to mount       to fsck         point           type    pass    at
boot options
#
#/dev/dsk/c1d0s2 /dev/rdsk/c1d0s2 /usr          ufs     1       yes  
 -

fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1    
 yes     -
/dev/dsk/c0t0d0s3       /dev/rdsk/c0t0d0s3      /var    ufs     1    
 yes     -
/dev/dsk/c0t0d0s5       /dev/rdsk/c0t0d0s5      /export/home    ufs  
 2       yes     -
/dev/dsk/c0t0d0s4       /dev/rdsk/c0t0d0s4      /opt    ufs     2    
 yes     -

#/dev/md/dsk/d31        -       -       swap    -       no      -
#/dev/md/dsk/d30        /dev/md/rdsk/d30        /       ufs     1    
 no      -
#/dev/md/dsk/d32        /dev/md/rdsk/d32        /var    ufs     1    
 no      -
#/dev/md/dsk/d34        /dev/md/rdsk/d34        /export/home    ufs  
 2       yes     -
#/dev/md/dsk/d33        /dev/md/rdsk/d33        /opt    ufs     2    
 yes     -

swap    -       /tmp    tmpfs   -       yes     -
#/dev/md/dsk/d35        /dev/md/rdsk/d35        /db01   ufs     1    
 yes     -
#/dev/md/dsk/d36 /dev/md/rdsk/d36        /db02   ufs     1       yes  
  -
#/dev/md/dsk/d37 /dev/md/rdsk/d37        /db03   ufs     1       yes  
  -
#/dev/md/dsk/d38 /dev/md/rdsk/d38        /db04   ufs     1       yes  
  -
#/dev/md/dsk/d39 /dev/md/rdsk/d39        /db05   ufs     1       yes  
  -

# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/md/dsk/d30      1018191  925402   31698    97%    /
/proc                      0       0       0     0%    /proc
fd                         0       0       0     0%    /dev/fd
mnttab                     0       0       0     0%    /etc/mnttab
/dev/md/dsk/d32      1018191   29126  927974     4%    /var
swap                 3789936       8 3789928     1%    /var/run
swap                 3789944      16 3789928     1%    /tmp
/dev/md/dsk/d33      3099287 2601277  436025    86%    /opt
/dev/md/dsk/d35      4131866 1796955 2293593    44%    /db01
/dev/md/dsk/d36      3099287  212141 2825161     7%    /db02
/dev/md/dsk/d37      3099287 1881117 1156185    62%    /db03
/dev/md/dsk/d39      2878179 1255837 1564779    45%    /db05
/dev/md/dsk/d38      3099287 1780373 1256929    59%    /db04
/dev/md/dsk/d34      9293181 4742395 4457855    52%    /export/home
/dev/dsk/c0t1d0s0    2056211  928258 1066267    47%    /mnt
/dev/dsk/c0t1d0s3    1018191   29026  928074     4%    /mnt/var
/dev/dsk/c0t1d0s4    4825222 2601279 2175691    55%    /mnt/opt
/dev/dsk/c0t1d0s5    7314401 4742387 2498870    66%  
/mnt/export/home

 
 
 

migrate Solaris 8 disk from old to new disk partitions with Disksuite

Post by Paul Robertso » Fri, 08 Nov 2002 08:54:25


PJ,

Once you've finished the ufsdump/ufsrestore sequence to the c0t1d0
drive, I'd edit the /mnt/etc/system file, changing the line:


to:


Without this change, disksuite believes that the root device c0t1d0 is
still a disksuite metadevice. The system should boot fine from the
well-partitioned c0t0d0 disk, and then you can mirror the data to c0t1d0.

Cheers,

Paul
--
Paul Robertson


 
 
 

1. Win a 6.5GB Brand new disk with 3 years warranty 4 your old disk

We badly need a Western Digital WD34000 manufacured around 6 May 97
with P.C.B. number 65200XX or 61-600652-0XX. We DO NOT NEED P.C.B.
71500XX or 61-600715-0XX.  P.C.B. number is printed on a small white sticker
located on the bottom side of the disk. XX = does not matter.

For Details You can call Kamelia at 03-648-4629 or 03-648-7245.

We promise 2 give u a brand new 6.5GB + a tecnitican that will do the swap
all on our account (offer valid in Israel only)

We do Data Recovery & need this disk 4 that porpuse.

2. PhoenixBIOS PHDisk and Linux

3. *NEW* boot disk won't, *OLD* boot disk will!

4. TFTPD only responds on single nic in multinic'd system?

5. Solaris 10, built new disk, now cannot boot off solaris 8 disk???

6. Virtual systems ....

7. Using DiskSuite/Solaris Volume Manager to add new disk to live RAID-0

8. xterm blues

9. Help: New SCSI controller + old disk = bad partition map

10. Migrate to new disk?

11. Trying to migrate linux disk to new system

12. Migrating rootvg to a new disk

13. Disksuite and striping over partitions (not disks)