{"id":63,"date":"2023-08-24T14:35:40","date_gmt":"2023-08-24T06:35:40","guid":{"rendered":"https:\/\/www.weibone.ltd\/?p=63"},"modified":"2023-08-24T22:19:25","modified_gmt":"2023-08-24T14:19:25","slug":"solaris-zfs-%e5%88%86%e5%8c%ba%e5%bf%ab%e7%85%a7","status":"publish","type":"post","link":"https:\/\/www.weibone.ltd\/?p=63","title":{"rendered":"Solaris zfs \u5206\u533a\u5feb\u7167"},"content":{"rendered":"<h2>Oracle zfs create snapshot<\/h2>\n<pre><code class=\"language-shell\"># \u6302\u8f7dnfs\n# \u67e5\u770bnfs\nroot@database02 # showmount -e 192.168.1.112\nexport list for 192.168.1.112:\n...\n\/nas\/PeopleSoft_Backup (everyone)\n\/nas\/database01      (everyone)\n...\n\n# \u6302\u8f7d\nroot@database02 # mount -F nfs -o vers=3 192.168.1.112:\/nas\/database01 \/backpool\/\n\n# \u67e5\u770b\u73b0\u5728snapshot\nroot@database02 # zfs list -t snapshot -o name,creation\nNAME                                                CREATION\nrpool\/ROOT\/s11.3_EIS_DEC16@install                  Wed Feb 22 21:48 2017\nrpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:41:31      Thu Feb 23  1:41 2017\nrpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:44:09      Thu Feb 23  1:44 2017\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@install              Wed Feb 22 21:48 2017\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:41:31  Thu Feb 23  1:41 2017\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:44:09  Thu Feb 23  1:44 2017\n\n# \u5bf9rpool\u521b\u5efasnapshot(\u5373\u5bf9\u7cfb\u7edf\u76d8\u8fdb\u884c\u5feb\u7167)\nroot@database02 # zfs snapshot -r rpool@backup20220714\n\n# \u67e5\u770b\u5feb\u7167\u5b8c\u6210\u60c5\u51b5\nroot@database02 # zfs list -t snapshot\nNAME                                                 USED  AVAIL  REFER  MOUNTPOINT\nrpool@backup20220714                                    0      -   212K  -\nrpool\/ROOT@backup20220714                               0      -   144K  -\nrpool\/ROOT\/s11.3_EIS_DEC16@install                   110M      -  3.02G  -\nrpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:41:31       189M      -  35.2G  -\nrpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:44:09       641M      -  37.1G  -\nrpool\/ROOT\/s11.3_EIS_DEC16@backup20220714               0      -  27.7G  -\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@install               233M      -   259M  -\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:41:31  63.9M      -   273M  -\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:44:09  88.1M      -   388M  -\nrpool\/ROOT\/s11.3_EIS_DEC16\/var@backup20220714           0      -   632M  -\nrpool\/ROOT\/solaris@backup20220714                       0      -  37.1G  -\nrpool\/ROOT\/solaris-backup-1@backup20220714              0      -  35.3G  -\nrpool\/ROOT\/solaris-backup-1\/var@backup20220714          0      -   273M  -\nrpool\/ROOT\/solaris\/var@backup20220714                   0      -   388M  -\nrpool\/VARSHARE@backup20220714                           0      -  28.1M  -\nrpool\/VARSHARE\/pkg@backup20220714                       0      -   152K  -\nrpool\/VARSHARE\/pkg\/repositories@backup20220714          0      -   144K  -\nrpool\/VARSHARE\/zones@backup20220714                     0      -   144K  -\nrpool\/export@backup20220714                             0      -   152K  -\nrpool\/export\/home@backup20220714                        0      -  6.90G  -\nrpool\/export\/home\/oracle@backup20220714                 0      -   168K  -\nrpool\/export\/home\/oracle01@backup20220714               0      -   244K  -\nrpool\/export\/home\/oracle02@backup20220714               0      -   172K  -\nrpool\/export\/home\/oracle03@backup20220714               0      -   224K  -\nrpool\/export\/home\/pshrdev@backup20220714                0      -   272K  -\nrpool\/export\/home\/psoft01@backup20220714                0      -   192K  -\nrpool\/export\/home\/psoftopr@backup20220714               0      -   192K  -\n\n# \u6253\u5305\u5feb\u7167\u4e3aimg\u6587\u4ef6\uff0c\u5e76\u5b58\u653e\u5230\u6307\u5b9a\u5730\u70b9\nroot@database02 # zfs send -Rv rpool@backup20220714 &gt; \/backpool\/db02_os_backup\/database02_snapshou_20220714.img\nWARNING: could not send rpool\/swap@backup20220714: does not exist\nWARNING: could not send rpool\/dump@backup20220714: does not exist\nsending full stream to rpool@backup20220714\nsending full stream to rpool\/VARSHARE@backup20220714\nsending full stream to rpool\/VARSHARE\/pkg@backup20220714\nsending full stream to rpool\/VARSHARE\/pkg\/repositories@backup20220714\nsending full stream to rpool\/VARSHARE\/zones@backup20220714\nsending full stream to rpool\/export@backup20220714\nsending full stream to rpool\/export\/home@backup20220714\nsending full stream to rpool\/export\/home\/pshrdev@backup20220714\nsending full stream to rpool\/export\/home\/psoft01@backup20220714\nsending full stream to rpool\/export\/home\/psoftopr@backup20220714\nsending full stream to rpool\/export\/home\/oracle03@backup20220714\nsending full stream to rpool\/export\/home\/oracle02@backup20220714\nsending full stream to rpool\/export\/home\/oracle01@backup20220714\nsending full stream to rpool\/export\/home\/oracle@backup20220714\nsending full stream to rpool\/ROOT@backup20220714\nsending full stream to rpool\/ROOT\/s11.3_EIS_DEC16@install\nsending @install to rpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:41:31\nsending @2017-02-22-17:41:31 to rpool\/ROOT\/s11.3_EIS_DEC16@2017-02-22-17:44:09\nsending @2017-02-22-17:44:09 to rpool\/ROOT\/s11.3_EIS_DEC16@backup20220714\nsending full stream to rpool\/ROOT\/s11.3_EIS_DEC16\/var@install\nsending @install to rpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:41:31\nsending @2017-02-22-17:41:31 to rpool\/ROOT\/s11.3_EIS_DEC16\/var@2017-02-22-17:44:09\nsending @2017-02-22-17:44:09 to rpool\/ROOT\/s11.3_EIS_DEC16\/var@backup20220714\nsending full stream to rpool\/ROOT\/solaris-backup-1@backup20220714\nsending full stream to rpool\/ROOT\/solaris-backup-1\/var@backup20220714\nsending full stream to rpool\/ROOT\/solaris@backup20220714\nsending full stream to rpool\/ROOT\/solaris\/var@backup20220714\nestimated stream size: 57.8G<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Oracle zfs crea&hellip;<\/p>\n","protected":false},"author":1,"featured_media":151,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-solaris","category-zfs"],"_links":{"self":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":6,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=\/wp\/v2\/media\/151"}],"wp:attachment":[{"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weibone.ltd\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}