{"id":670,"date":"2015-04-24T15:00:26","date_gmt":"2015-04-24T15:00:26","guid":{"rendered":"http:\/\/vickistan.com\/?p=670"},"modified":"2015-04-24T15:00:26","modified_gmt":"2015-04-24T15:00:26","slug":"create-swap-on-hp-ux","status":"publish","type":"post","link":"https:\/\/vickistan.com\/?p=670","title":{"rendered":"Create swap on HP-UX"},"content":{"rendered":"<p>HP-UX<br \/>\nMBYTE=300<br \/>\nVG=vg00<br \/>\nLV=lv_swap2<br \/>\nLVOL=\/dev\/$VG\/$LV<br \/>\nORG_DSKS=\/dev\/dsk\/c0t12d0<br \/>\nMIRR=1<br \/>\nMIR_DSKS=\/dev\/dsk\/c2t12d0<br \/>\nPRI=1<br \/>\nOption -s only works if physical VGs are defined only in EMC or Clariion disk type<\/p>\n<p>sudo lvcreate -n $LV -s y -r N \/dev\/$VG<\/p>\n<p>If it is not EMC nor Clariion disk type<\/p>\n<p>sudo lvcreate -n $LV -s y -C y \/dev\/$VG<\/p>\n<p>Next steps:<\/p>\n<p>sudo lvextend -l 1       $LVOL $ORG_DSKS<br \/>\nsudo lvextend -m $MIRR   $LVOL $MIR_DSKS<br \/>\nsudo lvextend -L $MBYTE  $LVOL $ORG_DSKS $MIR_DSKS<br \/>\nsudo swapon   -p $PRI -u $LVOL<br \/>\necho $LVOL &#8230;. swap pri=$PRI                 # add to \/etc\/fstab<br \/>\nChecks:<\/p>\n<p>sudo swapinfo -tm<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HP-UX MBYTE=300 VG=vg00 LV=lv_swap2 LVOL=\/dev\/$VG\/$LV ORG_DSKS=\/dev\/dsk\/c0t12d0 MIRR=1 MIR_DSKS=\/dev\/dsk\/c2t12d0 PRI=1 Option -s only works if physical VGs are defined only in EMC or Clariion disk type sudo lvcreate -n $LV -s y -r N \/dev\/$VG If it is not EMC nor &hellip; <a href=\"https:\/\/vickistan.com\/?p=670\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-670","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=670"}],"version-history":[{"count":1,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions"}],"predecessor-version":[{"id":671,"href":"https:\/\/vickistan.com\/index.php?rest_route=\/wp\/v2\/posts\/670\/revisions\/671"}],"wp:attachment":[{"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vickistan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}