[Sunhelp] Filesystem

morgan .g morgang at hotmail.com
Mon Dec 13 06:18:44 CST 1999


Hi,

Here is how you do a disk to disk dump.

This is an Example only!

let's say you have all these partitions in the 1gb disk (c0t3d0)
/dev/dsk/c0t3d0s0 /
/dev/dsk/c0t3d0s3 /usr
/dev/dsk/c0t3d0s4 /var

Create the same(best) partition on the new 4 GB disk, and increase the size. 
( c0t1d0 )
**newfs the nwe file system**
# newfs /dev/rdsk/c0t1d0s0
# newfs /dev/rdsk/c0t1d0s3
# newfs /dev/rdsk/c0t1d0s4


**make directories to mount the partitions**
# mkdir /mnt/usr /mnt/var

**mount the partitions**
# mount /dev/dsk/c0t1d0s0 /mnt
# mount /dev/dsk/c0t1d0s3 /mnt/usr
# mount /dev/dsk/c0t1d0s4 /mnt/var

Let's do the dump and restore now:

# ufsdump 0ucf - / | ( cd /mnt; ufsrestore -rvf - )
# ufsdump 0ucf - /usr | ( cd /mnt/usr; ufsrestore -rvf - )
# ufsdump 0ucf - / | ( cd /mnt/var; ufsrestore -rvf - )


If you want to make the new disk as the bootable disk entirely then do these 
steps:

# cd /usr/platform/sun4m/lib/fs/ufs/
* I can't really remember the path but look for a file called bootblk!

# installboot bootblk /dev/rdsk/c0t1d0s0 (new root partition)
* this command makes the new 4GB disk a bootable disk now!

** change the /etc/vfstab entry to pount to the new 4GB disk partitions.

# cd /mnt/etc
# vi vfstab
** change all 'c0t3d0 to c0t1d0'
**you are almost done here

Change the eeprom setting to point to the new boot path, chances are the 
your devalias is already set for disk1 to point to c0t1d0s0..if not create 
one(hopw you know how??)

# eeprom boot-device=disk1

** you are done now.

# sync;sync;sync
# init 6 (reboots the system and it should come up with the new disk now)

It's better to transfer the OS disk to 4gb especially in Solaris 7 as CDE 
uses alot of /usr space (about 800MB is very good planning).

Cheers,


Morgan.G
Systems Engineer
Amdahl Corp.
Mobile: (65)-97652969














______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com






More information about the SunHELP mailing list