{"id":437,"date":"2017-11-30T10:52:12","date_gmt":"2017-11-30T15:52:12","guid":{"rendered":"http:\/\/www.hpux.ws\/?p=437"},"modified":"2017-11-30T11:12:11","modified_gmt":"2017-11-30T16:12:11","slug":"no-downtme-migration-of-mounted-filesystem-toneew-storage-type","status":"publish","type":"post","link":"http:\/\/www.hpux.ws\/?p=437","title":{"rendered":"No downtme migration of mounted filesystem to new storage type"},"content":{"rendered":"<pre>On LVM 1.0 Volume group, the task is no downtime storage migration.\r\n Hitachi to Pure Solid State storage. Mirror\/UX required.\r\n Disks are almostthe same size:\r\n\r\ndbrestore:root &gt; diskinfo \/dev\/rdisk\/disk42\r\n SCSI describe of \/dev\/rdisk\/disk42:\r\n vendor: HITACHI\r\n product id: OPEN-V\r\n type: direct access\r\n size: 16777216 Kbytes\r\n bytes per sector: 512\r\n dbrestore:root &gt; diskinfo \/dev\/rdisk\/disk52\r\n SCSI describe of \/dev\/rdisk\/disk52:\r\n vendor: PURE\r\n product id: FlashArray\r\n type: direct access\r\n size: 10485760 Kbytes\r\n bytes per sector: 512\r\n\r\npvcreate \/dev\/rdisk\/disk52\r\n vgextend \/dev\/vgtest \/dev\/disk\/disk52\r\n\r\nBefore state:\r\n dbrestore:root &gt; vgdisplay -v vgtest\r\n --- Volume groups ---\r\n VG Name \/dev\/vgtest\r\n VG Write Access read\/write\r\n VG Status available\r\n Max LV 255\r\n Cur LV 1\r\n Open LV 1\r\n Max PV 16\r\n Cur PV 2\r\n Act PV 2\r\n Max PE per PV 4095\r\n VGDA 4\r\n PE Size (Mbytes) 4\r\n Total PE 6654\r\n Alloc PE 1024\r\n Free PE 5630\r\n Total PVG 0\r\n Total Spare PVs 0\r\n Total Spare PVs in use 0\r\n VG Version 1.0\r\n VG Max Size 262080m\r\n VG Max Extents 65520\r\n\r\n--- Logical volumes ---\r\n LV Name \/dev\/vgtest\/lvtest\r\n LV Status available\/syncd\r\n LV Size (Mbytes) 4096\r\n Current LE 1024\r\n Allocated PE 1024\r\n Used PV 1\r\n\r\n--- Physical volumes ---\r\n PV Name \/dev\/disk\/disk42\r\n PV Status available\r\n Total PE 4095\r\n Free PE 4095\r\n Autoswitch On\r\n Proactive Polling On\r\n\r\nPV Name \/dev\/disk\/disk52\r\n PV Status available\r\n Total PE 2559\r\n Free PE 1535\r\n Autoswitch On\r\n Proactive Polling On\r\n\r\ndbrestore:root &gt; ioscan -NfnCdisk \/dev\/disk\/disk42\r\n Class I H\/W Path Driver S\/W State H\/W Type Description\r\n ===================================================================\r\n disk 42 64000\/0xfa00\/0x21 esdisk CLAIMED DEVICE HITACHI OPEN-V\r\n \/dev\/disk\/disk42 \/dev\/rdisk\/disk42\r\n dbrestore:root &gt; ioscan -NfnCdisk \/dev\/disk\/disk52\r\n Class I H\/W Path Driver S\/W State H\/W Type Description\r\n ===================================================================\r\n disk 52 64000\/0xfa00\/0x35 esdisk CLAIMED DEVICE PURE FlashArray\r\n \/dev\/disk\/disk52 \/dev\/rdisk\/disk52\r\n dbrestore:root &gt; bdf | grep test\r\n \/dev\/vgtest\/lvtest 4194304 19544 3913845 0% \/test\r\n dbrestore:root &gt; lvdisplay -v \/dev\/vgtest\/lvtest\r\n --- Logical volumes ---\r\n LV Name \/dev\/vgtest\/lvtest\r\n VG Name \/dev\/vgtest\r\n LV Permission read\/write\r\n LV Status available\/syncd\r\n Mirror copies 0\r\n Consistency Recovery MWC\r\n Schedule parallel\r\n LV Size (Mbytes) 4096\r\n Current LE 1024\r\n Allocated PE 1024\r\n Stripes 0\r\n Stripe Size (Kbytes) 0\r\n Bad block on\r\n Allocation strict\r\n IO Timeout (Seconds) default\r\n\r\n--- Distribution of logical volume ---\r\n PV Name LE on PV PE on PV\r\n \/dev\/disk\/disk42 1024 1024\r\n\r\n--- Logical extents ---\r\n LE PV1 PE1 Status 1\r\n 00000 \/dev\/disk\/disk42 00000 current\r\n 00001 \/dev\/disk\/disk42 00001 current\r\n 00002 \/dev\/disk\/disk42 00002 current\r\n ...\r\n 01022 \/dev\/disk\/disk42 01022 current\r\n 01023 \/dev\/disk\/disk42 01023 current\r\n\r\ndbrestore:root &gt; lvextend -m 1 \/dev\/vgtest\/lvtest \/dev\/disk\/disk52\r\n The newly allocated mirrors are now being synchronized.This operation will\r\n take some time. Please wait ....\r\n Logical volume \"\/dev\/vgtest\/lvtest\" has been successfully extended.\r\n Volume Group configuration for \/dev\/vgtest has been saved in \/etc\/lvmconf\/vgtest.conf\r\n dbrestore:root &gt; lvdisplay -v \/dev\/vgtest\/lvtest\r\n --- Logical volumes ---\r\n LV Name \/dev\/vgtest\/lvtest\r\n VG Name \/dev\/vgtest\r\n LV Permission read\/write\r\n LV Status available\/syncd\r\n Mirror copies 1\r\n Consistency Recovery MWC\r\n Schedule parallel\r\n LV Size (Mbytes) 4096\r\n Current LE 1024\r\n Allocated PE 2048\r\n Stripes 0\r\n Stripe Size (Kbytes) 0\r\n Bad block on\r\n Allocation strict\r\n IO Timeout (Seconds) default\r\n\r\n--- Distribution of logical volume ---\r\n PV Name LE on PV PE on PV\r\n \/dev\/disk\/disk42 1024 1024\r\n \/dev\/disk\/disk52 1024 1024\r\n\r\n--- Logical extents ---\r\n LE PV1 PE1 Status 1 PV2 PE2 Status 2\r\n 00000 \/dev\/disk\/disk42 00000 current \/dev\/disk\/disk52 00000 current\r\n 00001 \/dev\/disk\/disk42 00001 current \/dev\/disk\/disk52 00001 current\r\n 00002 \/dev\/disk\/disk42 00002 current \/dev\/disk\/disk52 00002 current\r\n ...\r\n 01023 \/dev\/disk\/disk42 01023 current \/dev\/disk\/disk52 01023 current\r\n\r\ndbrestore:root &gt; bdf | grep test\r\n \/dev\/vgtest\/lvtest 4194304 19544 3913845 0% \/test\r\n dbrestore:root &gt; lvreduce -m 0 \/dev\/vgtest\/lvtest \/dev\/disk\/disk42\r\n Logical volume \"\/dev\/vgtest\/lvtest\" has been successfully reduced.\r\n Volume Group configuration for \/dev\/vgtest has been saved in \/etc\/lvmconf\/vgtest.conf\r\n dbrestore:root &gt; bdf | grep test\r\n \/dev\/vgtest\/lvtest 4194304 19544 3913845 0% \/test\r\n dbrestore:root &gt; lvdisplay -v \/dev\/vgtest\/lvtest\r\n --- Logical volumes ---\r\n LV Name \/dev\/vgtest\/lvtest\r\n VG Name \/dev\/vgtest\r\n LV Permission read\/write\r\n LV Status available\/syncd\r\n Mirror copies 0\r\n Consistency Recovery MWC\r\n Schedule parallel\r\n LV Size (Mbytes) 4096\r\n Current LE 1024\r\n Allocated PE 1024\r\n Stripes 0\r\n Stripe Size (Kbytes) 0\r\n Bad block on\r\n Allocation strict\r\n IO Timeout (Seconds) default\r\n\r\n--- Distribution of logical volume ---\r\n PV Name LE on PV PE on PV\r\n \/dev\/disk\/disk52 1024 1024\r\n\r\n--- Logical extents ---\r\n LE PV1 PE1 Status 1\r\n 00000 \/dev\/disk\/disk52 00000 current\r\n 00001 \/dev\/disk\/disk52 00001 current\r\n\r\n...\r\n 01023 \/dev\/disk\/disk52 01023 current\r\n\r\ndbrestore:root &gt; bdf | grep test\r\n \/dev\/vgtest\/lvtest 4194304 19544 3913845 0% \/test\r\n dbrestore:root &gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On LVM 1.0 Volume group, the task is no downtime storage migration. Hitachi to Pure Solid State storage. Mirror\/UX required. Disks are almostthe same size: dbrestore:root &gt; diskinfo \/dev\/rdisk\/disk42 SCSI describe of \/dev\/rdisk\/disk42: vendor: HITACHI product id: OPEN-V type: direct access size: 16777216 Kbytes bytes per sector: 512 dbrestore:root &gt; diskinfo \/dev\/rdisk\/disk52 SCSI describe of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"footnotes":""},"categories":[28,43,7,12,83,8],"tags":[18,144,159],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-capacity-planning","category-hardware","category-lvm","category-perf","category-storage","category-sysadmin","tag-hp-ux","tag-lvm","tag-no-downtime-hp-ux-storage-migration"],"_links":{"self":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/437"}],"collection":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=437"}],"version-history":[{"count":5,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":442,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=\/wp\/v2\/posts\/437\/revisions\/442"}],"wp:attachment":[{"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hpux.ws\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}