{"id":238,"date":"2011-03-17T14:46:17","date_gmt":"2011-03-17T06:46:17","guid":{"rendered":"http:\/\/www.sysadmindayph.com\/blog\/?p=238"},"modified":"2011-03-17T14:46:17","modified_gmt":"2011-03-17T06:46:17","slug":"veritas-vxvm-creating-filesystem-command-line","status":"publish","type":"post","link":"https:\/\/www.sysadmindayph.com\/blog\/veritas-vxvm-creating-filesystem-command-line\/","title":{"rendered":"Veritas VxVM &#8211; Creating Filesystem Command Line"},"content":{"rendered":"<p><strong>What diskgroups are Available:<\/strong><\/p>\n<p>vxdg list<\/p>\n<p><strong>Finding free space in Veritas diskgroups<\/strong><\/p>\n<p>vxdg -g oradg free<br \/>\nvxassist -g oradg maxsize layout=concat<\/p>\n<p><strong>list the existing filesystem in datagroup<\/strong><\/p>\n<p># vxinfo -g datadg1<br \/>\noracle         raid5    Started<br \/>\ndatabase       raid5    Started<br \/>\nu05            raid5    Started<br \/>\nu07            raid5    Started<br \/>\n# vxinfo -g datadg2<br \/>\ndatabase       raid5    Started<br \/>\nindex          raid5    Started<br \/>\nu06            raid5    Started<br \/>\nu08            raid5    Starte<\/p>\n<p><strong><br \/>\nTo Create a Filesystem<\/strong><br \/>\n &#8211; create volume first (if disk group is there already, that is, just another request for another filesystem from free space)<\/p>\n<p> &#8211; <\/p>\n<p># vxdg init datadg disk01=c1t1d0s2 disk02=c1t2d0s2 disk03=c1t3d0s2 disk04=c1t4d0s2<br \/>\n# vxassist -g datadg make vol01 2g layout=raid5<\/p>\n<p>or<br \/>\n# vxassist -g DG1 make VolS 10m layout=stripe c1t1d0 c1t2d0s2<\/p>\n<p>bash-3.00# mount -F vxfs \/dev\/vx\/dsk\/DG1\/VolS \/stripe\/<br \/>\nbash-3.00# mount -F vxfs \/dev\/vx\/dsk\/DG1\/VolM \/mirror\/<\/p>\n<p>&#8212;<\/p>\n<p>Reason: RFC13585613<br \/>\n# vxdg list<br \/>\nNAME         STATE           ID<br \/>\norapdg       enabled              1140953419.50.nsgct2-ivm01<br \/>\n# vxassist -g orapdg maxsize layout=concat<br \/>\nMaximum volume size: 872189952 (425874Mb)<br \/>\n# vxinfo -g orapdg<br \/>\noralib         fsgen    Started<br \/>\narchive        fsgen    Started<br \/>\nredolog08      fsgen    Started<br \/>\narchivelog     fsgen    Started<br \/>\nusertable      fsgen    Started<br \/>\nindextable     fsgen    Started<\/p>\n<p>&#8212;&#8211;<br \/>\n# create volume for \/DBA01<br \/>\n# vxassist -g orapdg make dba01 350g layout=fsgen  # <<-- fsgen ??\n\n# create filesystem from volume\n# mkfs - F vxfs \/dev\/vx\/rdks\/orapdg\/dba01\n\n# mount point\n# mkdir \/DBA01\n# mount -F vxfs \/dev\/vx\/dsk\/orapdg\/dba01 \/DBA01\n\n# ownership\n# chown -R appdbmnt:appdba \/DBA01\n\n\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What diskgroups are Available: vxdg list Finding free space in Veritas diskgroups vxdg -g oradg free vxassist -g oradg maxsize layout=concat list the existing filesystem in datagroup # vxinfo -g datadg1 oracle raid5 Started database &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[312],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-veritas-volume-manager"],"_links":{"self":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":1,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/posts\/238\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sysadmindayph.com\/blog\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}