{"id":3880,"date":"2013-10-17T11:19:40","date_gmt":"2013-10-17T08:19:40","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3880"},"modified":"2013-10-17T11:19:46","modified_gmt":"2013-10-17T08:19:46","slug":"%d0%ba%d0%be%d0%bc%d0%b0%d0%bd%d0%b4%d0%b0-format-%d0%b2-solaris","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3880","title":{"rendered":"\u041a\u043e\u043c\u0430\u043d\u0434\u0430 format \u0432 Solaris"},"content":{"rendered":"<p>\u0414\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u043a\u0438\u043c \u043d\u043e\u0436\u043e\u043c \u0432 <strong>Solaris<\/strong>. \u041d\u0438\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432.<\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 zfs.<\/span><\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/p>\n<p><code>primary label corrupt; using backup<\/code><\/p>\n<p>\u0442\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<p><!--more--><\/p>\n<p><code># format<br \/>\nSearching for disks...done<\/code><\/p>\n<p><code>AVAILABLE DISK SELECTIONS:<br \/>\n0. c0t0d0<br \/>\n\/pci@0,0\/pci1022,7458@1\/pci11ab,11ab@1\/disk@0,0<br \/>\n[...]<\/code><\/p>\n<p><code>Specify disk (enter its number): 0<br \/>\nselecting c0t0d0<br \/>\n[disk formatted]<br \/>\nReading the primary EFI GPT label failed. Using backup label.<br \/>\nUse the 'backup' command to restore the primary label.<\/code><\/p>\n<p><code>format&gt; backup<br \/>\nRestoring primary label.<br \/>\nformat&gt; label<br \/>\nReady to label disk, continue? y<\/code><\/p>\n<p><code>format&gt; quit<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u0438\u0441\u043a\u043e\u0432<\/span><\/strong><\/p>\n<p>\u0412 \u043a\u043e\u043c\u0430\u043d\u0434\u0435 <strong>format<\/strong> \u0435\u0441\u0442\u044c \u043c\u0435\u043d\u044e <strong>analyze<\/strong>, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0434\u0438\u0441\u043a\u0438 \u043d\u0430 \u0441\u0431\u043e\u0439\u043d\u044b\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430.<\/p>\n<pre>format&gt; <b><kbd>analyze<\/kbd><\/b>\r\n\r\nANALYZE MENU:\r\n    read     - read only test   (doesn't harm SunOS)\r\n    refresh  - read then write  (doesn't harm data)\r\n    test     - pattern testing  (doesn't harm data)\r\n    write    - write then read      (corrupts data)\r\n    compare  - write, read, compare (corrupts data)\r\n    purge    - write, read, write   (corrupts data)\r\n    verify   - write entire disk, then verify (corrupts data)\r\n    print    - display data buffer\r\n    setup    - set analysis parameters\r\n    config   - show analysis parameters\r\n    quit\r\nanalyze&gt;<\/pre>\n<p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043d\u0438\u0436\u0435. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u044e \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430, \u0447\u0442\u043e \u0431\u044b \u043d\u0435 \u0442\u0435\u0440\u044f\u043b\u0441\u044f \u0441\u043c\u044b\u0441\u043b.<\/p>\n<table width=\"100%\" border=\"2\" cellspacing=\"0\" cellpadding=\"10\">\n<thead>\n<tr>\n<th scope=\"col\" align=\"left\" valign=\"bottom\">Sub-Command<\/th>\n<th scope=\"col\" align=\"left\" valign=\"bottom\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>read<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Reads each sector on the current disk. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>refresh<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Reads then writes data on the current disk without harming the data. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>test<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Writes a set of patterns to the disk without harming the data. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>write<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Writes a set of patterns to the disk then reads the data on the disk back. Destroys existing data on the disk. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>compare<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Writes a set of patterns to the disk, reads the data back, and then compares it to the data in the write buffer. Destroys existing data on the disk. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>purge<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Removes all data from the disk so that the data can&#8217;t be retrieved by any means. Data is removed by writing three distinct patterns over the entire disk (or a section of the disk). If the verification passes, a hex-bit pattern is written over the entire disk (or a section of the disk).Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>verify<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Writes unique data to each block on the entire disk in the first pass. Reads and verifies the data in the next pass. Destroys existing data on the disk. Repairs defective blocks as a default.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>print<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Displays the data in the read\/write buffer.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>setup<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Lets you specify the following analysis parameters:<\/p>\n<pre>Analyze entire disk? <b><kbd>yes<\/kbd><\/b>\r\nStarting block number: <var>depends on drive<\/var>\r\nEnding block number: <var>depends on drive<\/var>\r\nLoop continuously? <b><kbd>no<\/kbd><\/b>\r\nNumber of passes: <b><kbd>2<\/kbd><\/b>\r\n\tRepair defective blocks? <b><kbd>yes<\/kbd><\/b>\r\nStop after first error? <b><kbd>no<\/kbd><\/b>\r\nUse random bit patterns? <b><kbd>no<\/kbd><\/b>\r\nNumber of blocks per transfer: <b><kbd>126 (0\/<\/kbd><\/b><var>n<\/var><b><kbd>\/<\/kbd><\/b><var>nn<\/var><b><kbd>)<\/kbd><\/b>\r\nVerify media after formatting? <b><kbd>yes<\/kbd><\/b>\r\nEnable extended messages? <b><kbd>no<\/kbd><\/b>\r\nRestore defect list? <b><kbd>yes<\/kbd><\/b>\r\nRestore disk label? <b><kbd>yes<\/kbd><\/b><\/pre>\n<p>Defaults are shown in bold.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>config<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Displays the current analysis parameters.<\/td>\n<\/tr>\n<tr>\n<td align=\"left\" valign=\"top\"><kbd>quit<\/kbd><\/td>\n<td align=\"left\" valign=\"top\">Exits the\u00a0<kbd>analyze<\/kbd>\u00a0menu.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0443\u0442\u0438 \u0448\u0432\u0435\u0439\u0446\u0430\u0440\u0441\u043a\u0438\u043c \u043d\u043e\u0436\u043e\u043c \u0432 Solaris. \u041d\u0438\u0436\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432. 1) \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0442\u043a\u0438 zfs. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 primary label corrupt; using backup \u0442\u043e \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0443 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3880","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3880","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3880"}],"version-history":[{"count":2,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3880\/revisions"}],"predecessor-version":[{"id":3882,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3880\/revisions\/3882"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}