{"id":254,"date":"2011-10-11T09:53:56","date_gmt":"2011-10-11T01:53:56","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=254"},"modified":"2011-10-11T11:16:12","modified_gmt":"2011-10-11T03:16:12","slug":"ufsdump-how-to-backup-solarislinux-root-filesystem","status":"publish","type":"post","link":"http:\/\/www.sysadmindayph.com\/blog\/ufsdump-how-to-backup-solarislinux-root-filesystem\/","title":{"rendered":"ufsdump &#8211; How To Backup Solaris\/Linux Root Filesystem"},"content":{"rendered":"<p>Alright, here&#8217;s how &#8211; usfsdump &#8211; How To Backup Solaris\/Linux Root Filesystem. use ufsdump<\/p>\n<p>Say for example you have this:<\/p>\n<p>$ df -k \/<br \/>\nFilesystem            kbytes    used   avail capacity  Mounted on<br \/>\n\/dev\/dsk\/c0t0d0s0     673951  415497  197799    68%    \/<br \/>\n$ df -k \/CMS<br \/>\nFilesystem            kbytes    used   avail capacity  Mounted on<br \/>\n\/dev\/dsk\/c0t8d0s0    35009161 32305691 2353379    94%    \/CMS<br \/>\n$ <\/p>\n<p>yeah, the \/CMS file system is almost full, but I think it can still accomodate a 674MB root filesystem from the slice \/dev\/dsk\/c0t0d0s0, right?<\/p>\n<p>Anyway, not sure if the <a href=\"http:\/\/clip.dia.fi.upm.es\/~alopez\/solaris\/sun-managers3\/0087.html\">2GM limit<\/a> is applicable to Solaris 8,9 or 10 but since this example is less than 1GB, we are ok to proceed.<\/p>\n<p>myserver# cd \/CMS<br \/>\nmyserver# ufsdump -f dumpfile \/dev\/dsk\/c0t0d0s0<br \/>\nDUMP: Date of this level 0 dump: Tue Jul 20 16:41:50 2004<br \/>\nDUMP: Date of last level 0 dump: the epoch<br \/>\nDUMP: Dumping \/dev\/rdsk\/c0t0d0s0 (myserver:\/) to dumpfile.<br \/>\nDUMP: Mapping (Pass I) [regular files]<br \/>\nDUMP: Mapping (Pass II) [directories]<br \/>\nDUMP: Writing 32 Kilobyte records<br \/>\nDUMP: Estimated 366 blocks (183KB).<br \/>\nDUMP: Dumping (Pass III) [directories]<br \/>\nDUMP: Dumping (Pass IV) [regular files]<br \/>\nDUMP: 318 blocks (159KB) on 1 volume at 963 KB\/sec<br \/>\nDUMP: DUMP IS DONE<br \/>\nkrypton# ls -l<br \/>\ntotal 340<br \/>\n-rw&#8212;&#8212;- 1 root other 163840 Jul 20 16:41 dumpfile<br \/>\n-rw-r&#8211;r&#8211; 1 haefnr2 instrume 11 Jul 20 16:38 test1<br \/>\n-rw-r&#8211;r&#8211; 1 haefnr2 instrume 21 Jul 20 16:38 test2<br \/>\nkrypton# file dumpfile<br \/>\ndumpfile: ufsdump archive file<\/p>\n<p>ufsrestore should do the trick in recovering the system.. hopefully<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alright, here&#8217;s how &#8211; usfsdump &#8211; How To Backup Solaris\/Linux Root Filesystem. use ufsdump Say for example you have this: $ df -k \/ Filesystem kbytes used avail capacity Mounted on \/dev\/dsk\/c0t0d0s0 673951 415497 197799 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[368,96],"class_list":["post-254","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ufsdump","tag-ufsrestore"],"_links":{"self":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=254"}],"version-history":[{"count":4,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":258,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions\/258"}],"wp:attachment":[{"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}