[HELP] mirroring disk at solaris 8 sparc v890

hi expert,

sorry i'm new in solaris system, need more advice and help :slight_smile:
i'm confusing with mirroring disk at my sparc v890 solaris 8, i have 6 harddisk which the structure shown below :

format :
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c32ce1,0
1. c1t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c7b811,0
2. c1t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c5c151,0
3. c1t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c796f1,0
4. c1t4d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c43851,0
5. c1t5d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848>
/pci@8,600000/SUNW,qlc@2/fp@0,0/ssd@w500000e011c5ab01,0

df -k :
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c1t0d0s0 12407404 858833 11424497 7% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
/dev/dsk/c1t0d0s3 38295 9124 25342 27% /var
swap 60505584 16 60505568 1% /var/run
/dev/dsk/c1t4d0s0 141065220 9 139654559 1% /data3
/dev/dsk/c1t2d0s0 141065220 9 139654559 1% /data2
/dev/dsk/c1t0d0s6 54290847 9 53747930 1% /data
/dev/dsk/c1t0d0s4 199327 4808 174587 3% /opt
/dev/dsk/c1t0d0s7 49580320 27 49084490 1% /tmp
/dev/dsk/c1t1d0s7 49580320 11 49084506 1% /export/home

mnttab :
/dev/dsk/c1t0d0s0 / ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80010 1159265792
/proc /proc proc dev=40c0000 1159265792
fd /dev/fd fd rw,suid,dev=4180000 1159265793
mnttab /etc/mnttab mntfs dev=4280000 1159265793
/dev/dsk/c1t0d0s3 /var ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80013 1159265794
swap /var/run tmpfs dev=1 1159265794
/dev/dsk/c1t4d0s0 /data3 ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80000 1159265796
/dev/dsk/c1t2d0s0 /data2 ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80018 1159265796
/dev/dsk/c1t0d0s6 /data ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80016 1159265796
/dev/dsk/c1t0d0s4 /opt ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80014 1159265796
/dev/dsk/c1t0d0s7 /tmp ufs rw,intr,largefiles,onerror=panic,suid,dev=1d80017 1159265796
/dev/dsk/c1t1d0s7 /export/home ufs rw,intr,largefiles,onerror=panic,suid,dev=1d8002f 1159265796
-hosts /net autofs indirect,nosuid,ignore,nobrowse,dev=4300001 1159265797
auto_home /home autofs indirect,ignore,nobrowse,dev=4300002 1159265797
-xfn /xfn autofs indirect,ignore,dev=4300003 1159265797

how to do mirroring for my 6 harddisk ?

any step by step advices please

thank you

Best Regards,

wu

In your current configuration, you can't mirror all four drives. You could mirror /data2 and /data3 to c1t3 and c1t5 (this is assuming that you aren't using them at this time for anything).

If you wanted to mirror all drives, then you would have to free up one drive to allow 3 empty/unused drives. Since you haven't put the partition tables, it is hard to tell what space is being used by swap.

A possible solution is to move /export/home to c1t0 but even this would cause issues since you have both the OS partitions and /data on the same drive. Performance may be effected in attempting to have so much on c1t0.
There is also an issue with /data2 and /data3 - if they are using all the space on the drive, then you would have nothing left for a metadb (which doesn't require much space, maybe 1 cylinder but it would still cause a possible issue if you have to reformat /data2 and /data3)

Currently:
c1t0d0 - / /var /data /opt 116477898
c1t1d0 - /export/home 49580320
c1t2d0 - /data2 141065220
c1t3d0
c1t4d0 - /data3 141065220
c1t5d0

Possible solution ( Don't assume this will work - it doesn't take into account your swap partition and metadb slices or the effect of /data on c1t0)
c1t0d0 - / /var /data /opt /export/home 128885302
c1t1d0 - mirror c1t0
c1t2d0 - /data2 141065220
c1t3d0 - mirror c1t2
c1t4d0 - /data3 141065220
c1t5d0 - mirror c1t4

All in all, you really need to rethink what this needs and how to set it up. Having /data on the same drive as /, /var, /opt will possibly cause issues with the drive and how many writes will be going to that one drive (and then if it's mirrored, to the mirrored drive). Post the partition table of c1t0.

hi expert,

thank you for your solution, btw how to move /export/home to c1t0 ?

fyi, this server is the new server and dont have any data

thank you

Best Regards,

wu

Post the partition table of c1t0 by going into format, pick disk c1t0, p,p, and copy the output to here.

hi expert,

thank you for you help, i had reinstall the sun solaris 8 os and try to create mirror for the harddisk and work properly now

thank you

Best Regards

wu