{"id":344,"date":"2011-11-03T11:43:44","date_gmt":"2011-11-03T04:43:44","guid":{"rendered":"http:\/\/blog.trichev.com\/?p=344"},"modified":"2017-08-10T09:38:01","modified_gmt":"2017-08-10T02:38:01","slug":"oracle-solaris-10-solaris-volume-manager","status":"publish","type":"post","link":"https:\/\/trichev.com\/blog\/2011\/11\/03\/oracle-solaris-10-solaris-volume-manager\/","title":{"rendered":"Oracle Solaris 10. Solaris Volume Manager"},"content":{"rendered":"<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f RAID-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Solaris. \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043c\u0435\u043d\u044f \u043b\u0438\u0447\u043d\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 (Configuration Steps For Using SVM \u0438\u0437 EIS Installation Checklist for SunCluster Systems). \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c software RAID-1 (mirror). \u0418\u043c\u0435\u0435\u0442\u0441\u044f 2 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0438\u0441\u043a\u0430, \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u043d\u0438\u0436\u0435&#8230; <\/p>\n<p>\u0424\u0421 \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043d\u043e\u0434\u044b: <\/p>\n<p>\/ c0t0d0s0<br \/>\/var c0t0d0s1<br \/>overlap c0t0d0s2<br \/>swap c0t0d0s3<br \/>\/export c0t0d0s4<br \/>\/opt c0t0d0s5<br \/>                     c0t0d0s6<br \/>                     c0t0d0s7 69MB (for metadb) <\/p>\n<p>\u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432: <\/p>\n<p>prtvtoc \/dev\/dsk\/c0t0d0s2 | fmthard -s &#8211; \/dev\/rdsk\/c0t1d0s2<\/p>\n<p>&quot;Metadevices MUST be unique within the cluster&quot;<br \/>\n&quot;Recommendation: Place replica on slice7&quot;<\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u043b\u044e\u0431\u044b\u0445 RAID-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Solaris \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c State Database (\u0434\u0430\u043b\u0435\u0435 \u2013 SD), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 RAID \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b SVM \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u0431\u0430\u0437\u044b \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b SVM. \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f SD \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b, \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u043e\u0436\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043f\u0438\u0439 SD (\u043a\u043e\u043f\u0438\u0438 \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f State Database Replica). \u041e\u0434\u043d\u0430 replica \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043e\u043a\u043e\u043b\u043e 4 \u041c\u0431\u0430\u0439\u0442. \u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 3 \u0440\u0435\u043f\u043b\u0438\u043a \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u043c \u043d\u043e\u0441\u0438\u0442\u0435\u043b\u0435. 4\u041c\u0431 x 3=12Mb. \u042f \u0440\u0430\u0437\u043c\u0435\u0442\u0438\u043b 7\u043e\u0439 \u0441\u043b\u0430\u0439\u0441 \u0441 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c 64\u041c\u0431 \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439.<\/p>\n<div>vi \/etc\/system<br \/>set md:mirrored_root_flag=1<\/div>\n<p><\/p>\n<div>metadb -afc 3 c0t0d0s7 c0t1d0s7<\/div>\n<p>\nFor root FS:<\/p>\n<p>metainit -f d1 1 1 c0t0d0s0<br \/>metainit d2 1 1 c0t1d0s0<br \/>metainit d0 -m d1<br \/>metaroot d0<br \/>lockfs -fa<br \/>metastat -c d0 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<br \/>\nshutdown -i 6 -g 0 -y<br \/>metattach d0 d2<br \/>metastat -c d0 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<p>For \/var FS: (\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u0430 \u0434\u043b\u044f \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0442\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430)<\/p>\n<p>metainit -f d4 1 1 c0t0d0s1<br \/>metainit d3 -m d4<br \/>vi \/etc\/vfstab<br \/>cat \/etc\/vfstab | grep var<br \/>\/dev\/md\/dsk\/d3 \/dev\/md\/rdsk\/d3 \/var ufs 1 no &#8211;<br \/>lockfs -fa<br \/>metastat -c d3 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<br \/>\nshutdown -i 6 -g 0 -y<br \/>metainit -f d5 1 1 c3t1d0s1<br \/>metattach d3 d5<br \/>metastat -c d3 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<p>For \/var FS (\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0440\u0430\u0437\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d): <\/p>\n<p>umount \/opt<br \/>metainit -f d7 1 1 c0t0d0s5<br \/>metainit d6 -m d7<br \/>vi \/etc\/vfstab<br \/>cat \/etc\/vfstab |grep opt<br \/>#to mount to fsck point type pass at boot options<br \/>\/dev\/md\/dsk\/d6 \/dev\/md\/rdsk\/d6 \/opt ufs 2 yes &#8211;<br \/>mount \/opt<br \/>metainit -f d8 1 1 c0t1d0s5<br \/>metattach d6 d8<br \/>metastat -c d6 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<p>For swap (\u041f\u0440\u0438\u043c\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0437\u0435\u0440\u043a\u0430\u043b\u0430 \u0434\u043b\u044f swap ):<\/p>\n<p>metainit -f d10 1 1 c0t0d0s3<br \/>metainit d11 1 1 c0t1d0s3<br \/>metainit d9 -m d10<br \/>vi \/etc\/vfstab<br \/>cat \/etc\/vfstab |grep opt<br \/>#to mount to fsck point type pass at boot options<br \/>\/dev\/md\/dsk\/9 &#8211; &#8211; swap &#8211; no &#8211;<br \/>metastat -c d9 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<br \/>\nshutdown -i 6 -g 0 -y<br \/>metattach d9 d11<br \/>metastat -c d9 &#8211; \u0436\u0434\u0435\u043c \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<br \/>\nvi \/etc\/dumpadm.conf:<br \/>DUMPADM_DEVICE=\/dev\/md\/dsk\/d9<br \/>\n <br \/>\n\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u0442\u043e\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u0437\u0435\u0440\u043a\u0430\u043b\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c (bootblk) \u0438 \u0432 OpenBoot \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e:<\/p>\n<p>installboot \/usr\/platform\/`uname -i`\/lib\/fs\/ufs\/bootblk \/dev\/rdsk\/c3t1d0s0<\/p>\n<p>OBP:<br \/>\neeprom boot-device<br \/>init 0<br \/>devalias<br \/>setenv boot-device disk0:a disk1:a<br \/>boot-device = disk0:a disk1:a <\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443:<\/p>\n<p>use-nvramrc?=true<br \/>\nboot-device=&quot;boot_disk1 boot_disk2&quot;<br \/>nvramrc=&quot;devalias boot_disk1 <a>\/pci@1c,600000\/scsi@2\/disk@1,0:a<\/a> devalias boot_disk2 <a>\/pci@1c,600000\/scsi@2\/disk@2,0:a<\/a>&quot;<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 metastat -c dN:<br \/>\nd3               m  9.8GB d4 d5 (resync-2%)<br \/>    d4           s  9.8GB c0t0d0s1<br \/>    d5           s  9.8GB c0t1d0s1<\/p>\n<p>\u0421\u0441\u044b\u043b\u043a\u0438:<br \/>\n<a href=\"http:\/\/www.opennet.ru\/docs\/RUS\/svm_raid\/\">http:\/\/www.opennet.ru\/docs\/RUS\/svm_raid\/<\/a><br \/>\n<a href=\"http:\/\/www.unixdoc.ru\/index.php?mode=2&amp;podmode=1&amp;arcicle_id=163&amp;theme=RAID%20Solaris\">http:\/\/www.unixdoc.ru\/index.php?mode=2&amp;podmode=1&amp;arcicle_id=163&amp;theme=RAID%20Solaris<\/a><br \/>\n<a href=\"http:\/\/surgutnet.ru\/page.php?id=12\">http:\/\/surgutnet.ru\/page.php?id=12<\/a><br \/>\n<a href=\"http:\/\/truewaytags.blogspot.com\/2010\/04\/raid-solaris.html\">http:\/\/truewaytags.blogspot.com\/2010\/04\/raid-solaris.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f RAID-\u043c\u0430\u0441\u0441\u0438\u0432\u043e\u0432 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 Solaris. \u041f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043c\u0435\u043d\u044f \u043b\u0438\u0447\u043d\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u0430 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 (Configuration Steps For Using SVM \u0438\u0437 EIS Installation Checklist for SunCluster Systems). \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c software RAID-1 (mirror). \u0418\u043c\u0435\u0435\u0442\u0441\u044f 2 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u0434\u0438\u0441\u043a\u0430, \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u043d\u0438\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0430 \u043d\u0438\u0436\u0435&#8230; \u0424\u0421 \u0434\u043b\u044f \u0431\u0443\u0434\u0443\u0449\u0435\u0439 \u043d\u043e\u0434\u044b: \/ c0t0d0s0\/var c0t0d0s1overlap c0t0d0s2swap c0t0d0s3\/export c0t0d0s4\/opt c0t0d0s5 c0t0d0s6 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[231],"tags":[158,162,160,156,159,161,28,14,11],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/344"}],"collection":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":7,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/posts\/344\/revisions\/530"}],"wp:attachment":[{"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trichev.com\/blog\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}