vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I have installed solaris 9 and created partitions as follows. Now I have two more disks of same size of root diosk and which I wan one to use for mirroring root disk and one for hotspare using su volume manager. How do i copy layout info to other two disks without having to creat partion partition> p Current partition table (original): Total disk cylinders available: 14087 + 2 (reserved cylinders) Part Tag Flag Cylinders Size Blocks 0 root wm 12074 - 14086 19.54GB (2013/0/0) 40968576 1 swap wu 0 - 3220 31.26GB (3221/0/0) 65553792 2 backup wm 0 - 14086 136.71GB (14087/0/0 286698624 3 usr wm 8300 - 10060 17.09GB (1761/0/0) 35839872 4 unassigned wm 6539 - 8299 17.09GB (1761/0/0) 35839872 5 var wm 10061 - 12073 19.54GB (2013/0/0) 40968576 6 unassigned wm 4778 - 6538 17.09GB (1761/0/0) 35839872 7 home wm 3221 - 4777 15.11GB (1557/0/0) 31688064 Please help me. Thanks -- Srin ----------------------------------------------------------------------- Sriny's Profile: http://unixadmintalk.com/23 View this thread: SATA HBA for Blade 100? |
| |||
| Sriny <Sriny.2i3p0l@no-mx.unixadmintalk.com> wrote: > How do i copy layout info to other two disks without having to create > partion prtvtoc /dev/rdsk/<SOURCEDISK>s2 | fmthard -s - /dev/rdsk/<TARGETDISK>s2 > partition> p > Current partition table (original): > Total disk cylinders available: 14087 + 2 (reserved cylinders) Your partitioning looks very unconventional. Could you tell us where you want to mount the different slices and what is the purpose of this machine. Over 30GB swap seems to be very large. If you are short of memory your system will come to a standstill even before it can touch only a fraction of 30GB swap. If the system has lots of memory adding this much swap is probably a waste. -- Daniel |
| |||
| Sriny wrote: > I have installed solaris 9 and created partitions as follows. > Now I have two more disks of same size of root diosk and which I want > one to use for mirroring root disk and one for hotspare using sun > volume manager. He man. First of all, 30gb space for swap is quite alot i guess. Second of all you will not be able to create SVM meta devices (mirroring etc) with the current layout. SVM needs at least one free slice to hold metadeviceses database on it. It is higly recommended to have an SVM db on each disk on the system. Anyway i have a very clear steb-by step document describing root disk mirroring and SVM. Mail me if you want it. pavel.jeludovsky@gmail.com Good luck. > How do i copy layout info to other two disks without having to create > partion > > partition> p > Current partition table (original): > Total disk cylinders available: 14087 + 2 (reserved cylinders) > > Part Tag Flag Cylinders Size Blocks > 0 root wm 12074 - 14086 19.54GB (2013/0/0) > 40968576 > 1 swap wu 0 - 3220 31.26GB (3221/0/0) > 65553792 > 2 backup wm 0 - 14086 136.71GB (14087/0/0) > 286698624 > 3 usr wm 8300 - 10060 17.09GB (1761/0/0) > 35839872 > 4 unassigned wm 6539 - 8299 17.09GB (1761/0/0) > 35839872 > 5 var wm 10061 - 12073 19.54GB (2013/0/0) > 40968576 > 6 unassigned wm 4778 - 6538 17.09GB (1761/0/0) > 35839872 > 7 home wm 3221 - 4777 15.11GB (1557/0/0) > 31688064 > > Please help me. > Thanks. > > > -- > Sriny > ------------------------------------------------------------------------ > Sriny's Profile: http://unixadmintalk.com/238 > View this thread: Access does not like Mysql |
| ||||
| # 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: Access does not like Mysql |
| Thread Tools | |
| Display Modes | |
|
|