{"id":5468,"date":"2018-03-29T12:18:01","date_gmt":"2018-03-29T09:18:01","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5468"},"modified":"2018-03-29T12:18:01","modified_gmt":"2018-03-29T09:18:01","slug":"solaris-%d0%98%d1%81%d1%82%d0%be%d1%80%d0%b8%d1%8f-%d0%be-%d1%81%d0%bb%d0%b5%d1%82%d0%b5%d0%b2%d1%88%d0%b5%d0%bc-%d0%b7%d0%b0%d0%b3%d1%80%d1%83%d0%b7%d1%87%d0%b8%d0%ba%d0%b5","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5468","title":{"rendered":"[solaris] \u0418\u0441\u0442\u043e\u0440\u0438\u044f \u043e \u0441\u043b\u0435\u0442\u0435\u0432\u0448\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0435"},"content":{"rendered":"<p>\u0411\u044b\u043b \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043d\u0430 \u043d\u0451\u043c, \u0432 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0443\u043b\u0435 \u0432\u044b\u0432\u0430\u043b\u0438\u043b\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0438\u0441\u043a\u043e\u0432. \u0412 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u043c\u0435\u043d\u044b \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0432\u044b\u043b\u0435\u0442\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0438\u0441\u043a. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0448\u0442\u0430\u0442\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043d\u043e \u044f \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f, \u0443\u0434\u0430\u043b\u0438\u043b \u0444\u0430\u0439\u043b\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0443\u0433\u0430\u043b\u0441\u044f \u043f\u0443\u043b, \u0441\u0434\u0435\u043b\u0430\u043b \u0435\u043c\u0443 <strong>scrub<\/strong>, \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u0434\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u043f\u0430\u043b\u0438, \u043d\u043e \u043f\u0443\u043b \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 <strong>degraded<\/strong> (\u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0438\u0441\u043a \u0432\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u043b\u0435\u0442\u0435\u043b). \u0412\u044b\u043a\u043b\u044e\u0447\u0430\u044e \u0441\u0435\u0440\u0432\u0435\u0440, \u043c\u0435\u043d\u044f\u044e \u0434\u0438\u0441\u043a \u0438 \u0442\u0443\u0442 \u043d\u0430 \u0442\u0435\u0431\u0435: \u043d\u0435 \u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f (\u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0434\u0438\u0441\u043a).<\/p>\n<p><!--more--><\/p>\n<p>\u0413\u0440\u0443\u0436\u0443\u0441\u044c \u0441 <strong>LiveCD<\/strong>, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u044e \u043f\u0443\u043b \u0438 \u0441\u0442\u0430\u0432\u043b\u044e \u043d\u0430 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a:<\/p>\n<p><code>root@solaris:\/# bootadm install-bootloader -P rpool<br \/>\nbootadm: GRUB2 installation failed<br \/>\nroot@solaris:\/# bootadm install-bootloader -f -P rpool<br \/>\nbootadm: GRUB2 installation failed<br \/>\nroot@solaris:\/# bootadm install-bootloader -f -P rpool c3t0d0<br \/>\nbootadm: Device node is not a slice: \/dev\/rdsk\/c3t0d0<br \/>\nroot@solaris:\/# bootadm install-bootloader -f -P rpool c3t0d0s0<br \/>\nbootadm: GRUB2 installation failed<\/code><\/p>\n<p>\u041f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0447\u0435\u0440\u0435\u0437 <strong>fdisk<\/strong> \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c <strong>label<\/strong> &#8211; \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u043e. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0441\u043f\u0430\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435, \u0442\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u041e\u0421 \u043d\u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0438\u0441\u043a\u0438 \u0438 \u0441 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 (\u043a\u0430\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0437\u0436\u0435, \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c, \u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c <strong>label<\/strong> \u0447\u0435\u0440\u0435\u0437 <strong>prtvtoc<\/strong> \u0441 \u043b\u044e\u0431\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430). \u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438, <strong>zpool import<\/strong> \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u0441\u0442\u0430\u0440\u044b\u0439 \u043f\u0443\u043b. \u041f\u0440\u043e\u0431\u0443\u044e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u043f\u0443\u043b\u044b \u0438 &#8230; \u0432\u0438\u0436\u0443 \u0435\u0433\u043e. \u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435, \u043f\u0440\u0430\u0432\u0434\u0430, \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435: <strong>ONLINE (DESTROYED)<\/strong>.<\/p>\n<pre>root@solaris:\/# zpool import -D\r\n  pool: rpool\r\n    id: 241361632505110857\r\n state: ONLINE (DESTROYED)\r\naction: The pool can be imported using its name or numeric identifier.\r\nconfig:\r\n\r\n        rpool     ONLINE\r\n          c3t0d0  ONLINE\r\n<\/pre>\n<p>\u0414\u0435\u043b\u0430\u044e <strong>import<\/strong>:<\/p>\n<pre>root@solaris:\/# zpool import -D -o readonly=on 241361632505110857 old\r\ncannot import 'rpool': pool may be in use from other system,\r\nit was last accessed by solaris (hostid: 0x4bad1c) on Thu Mar 22 15:47:07 2018\r\n: pool may already be in use\r\n\r\n\r\nroot@solaris:\/# zpool import -D -f -o readonly=on -R \/a 241361632505110857 old\r\n<\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 <strong>export&#8217;a<\/strong> \u043e\u043d \u0441\u0442\u0430\u043b \u043e\u043f\u044f\u0442\u044c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u0432\u0438\u0434\u0438\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 <strong>zpool import<\/strong>. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043e \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u0430 \u0432 \u0433\u043e\u043b\u043e\u0432\u0443 \u0438\u0434\u0435\u044f, \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c <strong>label&#8217;\u044b<\/strong> \u043d\u0430 \u043e\u0431\u043e\u0438\u0445 \u0434\u0438\u0441\u043a\u0430 \u0438&#8230; \u043e\u043d\u0438 \u043e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c!!!<\/p>\n<pre>root@solaris:\/# prtvtoc \/dev\/rdsk\/c3t0d0s2\r\n* \/dev\/rdsk\/c3t0d0s2 partition map\r\n*\r\n* Dimensions:   \r\n*     512 bytes\/sector\r\n* 976773168 sectors\r\n* 976773101 accessible sectors\r\n*\r\n* Flags:\r\n*   1: unmountable\r\n*  10: read-only\r\n*\r\n* Unallocated space:\r\n*       First     Sector    Last\r\n*       Sector     Count    Sector\r\n*          34       222       255\r\n*\r\n*                          First     Sector    Last\r\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\r\n       0     12    00        256    524288    524543\r\n       1      4    00     524544 976232207 976756750\r\n       8     11    00  976756751     16384 976773134\r\nroot@solaris:\/# prtvtoc \/dev\/rdsk\/c3t1d0s2\r\n* \/dev\/rdsk\/c3t1d0s2 partition map\r\n*\r\n* Dimensions:   \r\n*     512 bytes\/sector\r\n* 976773168 sectors\r\n* 976773101 accessible sectors\r\n*\r\n* Flags:\r\n*   1: unmountable\r\n*  10: read-only\r\n*\r\n* Unallocated space:\r\n*       First     Sector    Last\r\n*       Sector     Count    Sector\r\n*          34       222       255\r\n*\r\n*                          First     Sector    Last\r\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\r\n       0     24    00        256    524288    524543\r\n       1      4    00     524544 976232207 976756750\r\n       8     11    00  976756751     16384 976773134\r\n<\/pre>\n<p>\u041e\u0442\u043b\u0438\u0447\u0430\u043b\u0438\u0441\u044c <strong>tag&#8217;\u043e\u043c<\/strong> \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0440\u0430\u0437\u0434\u0435\u043b\u0435 (\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 <strong>tag=24<\/strong>!!!). \u0427\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u043e\u043d\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442, \u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0447\u0442\u043e <strong>tag&#8217;\u0438<\/strong> \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e <strong>0xb<\/strong>, \u0447\u0442\u043e \u044f\u0432\u043d\u043e \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c <strong>24<\/strong> \u0438\u043b\u0438 <strong>12<\/strong> (\u0434\u0430\u0436\u0435 \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u044f \u0432 <strong>hex<\/strong>).<br \/>\n\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u043c\u0435\u0442\u043a\u0438 \u0441\u043e \u0441\u0432\u0435\u0436\u0435\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u041e\u0421 \u043d\u0430<\/p>\n<p><code>root@solaris:\/# prtvtoc \/dev\/rdsk\/c3t1d0s2 | fmthard -s - \/dev\/rdsk\/c3t0d0s2<\/code><\/p>\n<p>\u043f\u0440\u043e\u0431\u0443\u044e \u0435\u0449\u0451 \u0440\u0430\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 \u043f\u0443\u043b <strong>old<\/strong>, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 <strong>c3t0d0<\/strong>:<\/p>\n<p><code>root@solaris:\/# bootadm install-bootloader -P old<\/code><\/p>\n<p>\u0438 \u043e\u043d \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0441\u044f \u0431\u0435\u0437 \u0440\u0443\u0433\u0430\u043d\u0438. \u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u0441\u0451 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043b\u043e\u0441\u044c. \u041d\u043e \u043a\u043e\u0435-\u0447\u0442\u043e \u043c\u043d\u0435 \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f &#8211; \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u043f\u0443\u043b \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong>old<\/strong>. \u0417\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e: \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0441 <strong>LiveCD<\/strong>, \u0441\u0434\u0435\u043b\u0430\u0442\u044c <strong>import\/export<\/strong> \u0441 \u0438\u043c\u0435\u043d\u0435\u043c <strong>rpool<\/strong> \u0438 \u0432\u0441\u0451. \u041d\u043e, \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0448\u0438\u0431\u043a\u0443, \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d \u043f\u0443\u043b \u0441 <strong>ID<\/strong> &#8230; \u0412\u0441\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c, \u0447\u0442\u043e \u0431\u044b \u043c\u044b \u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 \u043f\u0443\u043b <strong>old<\/strong>, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044f\u0442\u044c \u0441 <strong>LiveCD<\/strong> \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0449\u0451 \u0440\u0430\u0437 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043d\u0430 \u043f\u0443\u043b <strong>rpool<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0411\u044b\u043b \u043e\u0434\u0438\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043d\u0430 \u043d\u0451\u043c, \u0432 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0443\u043b\u0435 \u0432\u044b\u0432\u0430\u043b\u0438\u043b\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0438\u0441\u043a\u043e\u0432. \u0412 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u043c\u0435\u043d\u044b \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0432\u044b\u043b\u0435\u0442\u0430\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0434\u0438\u0441\u043a. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435 \u0448\u0442\u0430\u0442\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u043d\u043e \u044f \u0434\u043e\u0436\u0434\u0430\u043b\u0441\u044f \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f, \u0443\u0434\u0430\u043b\u0438\u043b \u0444\u0430\u0439\u043b\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0443\u0433\u0430\u043b\u0441\u044f \u043f\u0443\u043b, \u0441\u0434\u0435\u043b\u0430\u043b \u0435\u043c\u0443 scrub, \u043e\u0448\u0438\u0431\u043a\u0438 \u0441 \u0434\u0438\u0441\u043a\u0430 \u043f\u0440\u043e\u043f\u0430\u043b\u0438, \u043d\u043e \u043f\u0443\u043b \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 degraded (\u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0438\u0441\u043a \u0432\u0442\u043e\u0440\u043e\u0439 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-5468","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5468","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=5468"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5468\/revisions"}],"predecessor-version":[{"id":5469,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5468\/revisions\/5469"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}