View Single Post

   
  #4 (permalink)  
Old 01-16-2008, 10:04 AM
Sriny
 
Posts: n/a
Default Re: disk layout info to other disks


# df -k
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t1d0s0 20174761 214007 19759007 2% /
/dev/dsk/c1t1d0s3 17648810 1545699 15926623 9% /usr
/proc 0 0 0 0% /proc
mnttab 0 0 0 0% /etc/mnttab
fd 0 0 0 0% /dev/fd
/dev/dsk/c1t1d0s5 20174761 50257 19922757 1% /var
swap 39673800 40 39673760 1% /var/run
/dev/dsk/c1t1d0s4 17648810 18063 17454259 1% /opt
/dev/dsk/c1t1d0s6 17648810 17563 17454759 1% /tmp
/dev/dsk/c1t1d0s7 15604395 15489 15432863 1% /export/home

# metadb -a -f -c3 c1t1d0s7
# metadb -a -f -c3 c1t0d0s7
# metadb
flags first blk block count
a u 16 8192
/dev/dsk/c1t1d0s7
a u 8208 8192
/dev/dsk/c1t1d0s7
a u 16400 8192
/dev/dsk/c1t1d0s7
a u 16 8192
/dev/dsk/c1t0d0s7
a u 8208 8192
/dev/dsk/c1t0d0s7
a u 16400 8192
/dev/dsk/c1t0d0s7
# metainit d72 1 1 c1t1d0s7
d72: Concat/Stripe is setup
# metainit d71 1 1 c1t0d0s7
d71: Concat/Stripe is setup
# metainit d70 -m d72
d70: Mirror is setup
# metattach d70 d71
d70: submirror d71 is attached
Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /tmp ufs 2
yes
-

with


/dev/md/dsk/d60 /dev/md/rdsk/d60 /tmp ufs 2
yes




/tmp
----

metainit -f d62 1 1 c1t1d0s6
d62: Concat/Stripe is setup
# metainit d61 1 1 c1t0d0s6
d61: Concat/Stripe is setup
# metainit d60 -m d62
d60: Mirror is setup
# metainit d60 -m d62

Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s6 /dev/rdsk/c1t1d0s6 /tmp ufs 2
yes
-

with


/dev/md/dsk/d60 /dev/md/rdsk/d60 /tmp ufs 2
yes

------------------------------------------------------------------------------
/var

# metainit -f d52 1 1 c1t1d0s5
d52: Concat/Stripe is setup
# metainit -f d51 1 1 c1t0d0s5
d51: Concat/Stripe is setup
metainit d50 -m d52
d50: Mirror is setup
Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s5 /dev/rdsk/c1t1d0s5 /var ufs 1
no
-

with

/dev/md/dsk/d50 /dev/rdsk/d50 /var ufs 1
no
-
---------------------------------------------------------------------------------------------------------

/opt

# metainit -f d42 1 1 c1t1d0s4
d42: Concat/Stripe is setup
# metainit d41 1 1 c1t0d0s4
d41: Concat/Stripe is setup
# metainit d40 -m d42
d40: Mirror is setup
Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s4 /dev/rdsk/c1t1d0s4 /opt ufs 2
yes
-

with

/dev/md/dsk/d40 /dev/md/rdsk/d40 /opt ufs 2
yes
-

----------------------------------------------------------------------------------------------------
/usr

# metainit -f d32 1 1 c1t1d0s3
d32: Concat/Stripe is setup
# metainit d31 1 1 c1t0d0s3
d31: Concat/Stripe is setup
# metainit d30 -m d32
d30: Mirror is setup

Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s3 /dev/rdsk/c1t1d0s3 /usr ufs 1
no
-

with

/dev/md/dsk/d30 /dev/md/rdsk/d30 /usr ufs 1
no
-
--------------------------------------------------------------------------------------------------------
swap

# metainit -f d12 1 1 c1t1d0s1
d12: Concat/Stripe is setup
# metainit d11 1 1 c1t0d0s1
d11: Concat/Stripe is setup
# metainit d10 -m d12
d10: Mirror is setup

Make changes in /etc/vfstab files.
----------------------------------
Replace following line

/dev/dsk/c1t1d0s1 - - swap - no -

with

/dev/md/dsk/d10 - - swap - no -

-------------------------------------------------------------------------------------------------------
/ (root)

# metainit -f d2 1 1 c1t1d0s0
d2: Concat/Stripe is setup
# metainit d1 1 1 c1t0d0s0
d1: Concat/Stripe is setup
# metainit d0 -m d2
d0: Mirror is setup


#metaroot d0
# lockfs -fa

#reboot

After reboot did following steps.

#metattach d60 d61
#metattach d50 d51
#metattach d40 d41
#metattach d30 d31
#metattach d10 d11
#metattach d0 d1


Right now its resynching.


This system I will be using for disaster recovery of production
system.
I will be having ORCLE 9i and 10g databases on it and Dataguard.

The following is the one used to copy disk layout to other disks.
Thanks.
prtvtoc /dev/rdsk/<SOURCEDISK>s2 | fmthard -s -
/dev/rdsk/<TARGETDISK>s2
I do not know why so much swap is being allocated.
But this is the standard here and I am just following it.

If the installation and configuration goes well, I would like to clone
these disks on another set of disks.
Could you please tell me how to do it.

Thanks.

After installation and configuration


--
Sriny
------------------------------------------------------------------------
Sriny's Profile: http://unixadmintalk.com/238
View this thread: http://unixadmintalk.com/showthread.php?t=252628 (Access does not like Mysql)

Reply With Quote