-
-
Save pavoldomin/28f883bc35f40ee9e03a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> ls -l /dev/disk/by-id | |
total 0 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 cciss-3600508b1001fffffa004e8d59768000c -> ../../dm-14 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 cciss-3600508b1001fffffa004e8d59768000c-part1 -> ../../dm-27 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 cciss-3600508b1001fffffa004e8d59768000c-part2 -> ../../dm-29 | |
lrwxrwxrwx 1 root root 16 Oct 2 19:22 cciss-3600508b1001fffffa004f7b3f209000b -> ../../cciss/c0d0 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 cciss-3600508b1001fffffa004f7b3f209000b-part1 -> ../../cciss/c0d0p1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 cciss-3600508b1001fffffa004f7b3f209000b-part2 -> ../../cciss/c0d0p2 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-3600508b1001fffffa004e8d59768000c -> ../../dm-14 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-3600508b1001fffffa004e8d59768000c_part1 -> ../../dm-27 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-3600508b1001fffffa004e8d59768000c_part2 -> ../../dm-29 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600805f3001030c0acdc91d48ce30012 -> ../../dm-48 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600805f3001030c0acdc91e1f7e30013 -> ../../dm-50 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600805f3001030c0acdc91e627960014 -> ../../dm-49 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600805f3001030c0acdc920b9c0c0014 -> ../../dm-40 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600805f3001030c0acdc9219681e0016 -> ../../dm-41 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600c0ff000da84954c063f4c01000000 -> ../../dm-17 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600c0ff000da8ff252063f4c01000000 -> ../../dm-18 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-3600c0ff000da8ff2f9043f4c01000000 -> ../../dm-16 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3ascs -> ../../dm-47 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3data_1 -> ../../dm-38 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-msa1_NA3data_2 -> ../../dm-43 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-msa1_NA3data_2_part1 -> ../../dm-51 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-name-msa1_NA3data_2_part2 -> ../../dm-52 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3log -> ../../dm-39 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3nfs -> ../../dm-45 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3ora -> ../../dm-44 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa1_NA3scs -> ../../dm-46 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 dm-name-msa1_sbd1 -> ../../dm-42 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_HP2bin_1 -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_HP2bin_2 -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3ascs -> ../../dm-36 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3data_1 -> ../../dm-33 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3data_2 -> ../../dm-20 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3log -> ../../dm-15 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3nfs -> ../../dm-34 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3ora -> ../../dm-35 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_NA3scs -> ../../dm-37 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 dm-name-msa2_sbd1 -> ../../dm-19 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybbackup_1 -> ../../dm-28 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybbackup_2 -> ../../dm-30 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybbin_1 -> ../../dm-25 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybbin_2 -> ../../dm-26 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybdata_1 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_sybdata_2 -> ../../dm-22 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_syblog_1 -> ../../dm-23 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-name-msa2_syblog_2 -> ../../dm-24 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00-lv_crash -> ../../dm-13 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00-lv_depot -> ../../dm-11 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_home -> ../../dm-0 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_opt -> ../../dm-1 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_ora -> ../../dm-2 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_root -> ../../dm-3 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_swap -> ../../dm-4 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_tmp -> ../../dm-5 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_usr -> ../../dm-6 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00-lvusrsap -> ../../dm-12 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_usr_sap -> ../../dm-7 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_var -> ../../dm-8 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-name-vg00-lv_var_log -> ../../dm-9 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00-lv_var_op -> ../../dm-10 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_home -> ../../dm-59 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_opt -> ../../dm-54 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_root -> ../../dm-61 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_swap -> ../../dm-62 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_tmp -> ../../dm-55 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_usr -> ../../dm-60 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_usr_sap -> ../../dm-53 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_var -> ../../dm-58 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_var_crash -> ../../dm-63 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_var_log -> ../../dm-56 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vg00_SAN-lv_var_opt -> ../../dm-57 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vgP12ora02-lvP12ora -> ../../dm-68 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vgP12ora02-lvP12ora-missing_0_0 -> ../../dm-66 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vgP12ora02-lvP12ora-missing_1_0 -> ../../dm-67 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vgP12ora-lvP12ora -> ../../dm-65 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-name-vgT00data-lvsapdata1 -> ../../dm-64 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-183PxFyXc4jsH3AMMcEvo6buni0VQuNDoCvyqezni0kTnhU9Dzc0zbXDNSHODgLP -> ../../dm-64 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW31H4T1EvFpIBzpA7FnQ2Ihh0HYiKoRTgN -> ../../dm-60 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW32hV8Anpff2qeeY0obPllI5IPgaLOc3Ma -> ../../dm-59 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3d9SSuoNLwuGjhxkbHjhu5i8b6HydfY14 -> ../../dm-56 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3i7nrW2ke3NbDocQt4qbPjCk2pDUghUaF -> ../../dm-62 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3kcmSN9rCue4I5lgzfytEk8Qey8ps40gr -> ../../dm-54 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3onG1kKUI8h27UljUeYPseX9ToVSOyK8d -> ../../dm-55 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3RwyvPFWzqNt88XGphnjHfRNBYfbkf7MD -> ../../dm-63 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3tGRSyRWNLllK1Mhv6ImmY7RbmaHGfJe0 -> ../../dm-57 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3VxSbCwZBuM4hM2WdEU9qgP0GYMLKJfEi -> ../../dm-58 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3wioctMmbhnCvA0tyavQOxDLdjZe0g2rW -> ../../dm-61 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3Yg0C4n8sNbEcEQzhsQ1Qhzma0TtXhkwd -> ../../dm-53 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-82N1AWKQ6qCxjxGKhDBAXfsHMfkVwcPlTpaJlFBEIeh1rKNoEM36e2OXcyK02OgM -> ../../dm-65 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU2oRN1haWdDVuPw4dvhLF05U23dwi3UOO -> ../../dm-2 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU4jcAOGIaRQWJNFKMcu0jUXzxT2h3KH6d -> ../../dm-0 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU6tvjj3bHMl6nnRfdoG7vx8S6I3ej3ICE -> ../../dm-10 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUAK3BJUaNyyMBoUee5TSn6DsgF29BTYXh -> ../../dm-11 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUdENneBLsF5YguOLwRrUt0muFtg1eHKSz -> ../../dm-12 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUe5xvQ1cL19KBZe1TdnZy5PGD10IOtZhH -> ../../dm-8 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUHcpHzA2Nws5j1DSQKdbaH88yAB9b1dKH -> ../../dm-4 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUJWKi0Z2peJMinb30PP3L5CperdW9r4Pd -> ../../dm-1 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUKJLMOl4UjRnForBLmzt4PRNr3rJWo3LX -> ../../dm-5 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUKRmpXh8uWeOnWNmMMiz5BQwP7DXHAMxS -> ../../dm-7 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUl0rlsY7nlW7X3A9laN0YNfIUACnMeG9d -> ../../dm-3 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUlM09qdlfkvkL9CC2FrzCQ3e8L4CDOgD4 -> ../../dm-13 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUs5KjHyUq8k2rScxe32B4BcIIuJfNMIeM -> ../../dm-6 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUZBMSbWAsJ5YvU5WZaXXCmps2k8NRd7de -> ../../dm-9 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc -> ../../dm-68 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc-missing_0_0 -> ../../dm-66 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc-missing_1_0 -> ../../dm-67 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-mpath-3600508b1001fffffa004e8d59768000c -> ../../dm-14 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc918b17e0000f -> ../../dm-38 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91a1a8c10010 -> ../../dm-44 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-mpath-3600805f3001030c0acdc91abab380011 -> ../../dm-43 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91b2f8820012 -> ../../dm-45 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91c9bf1c0011 -> ../../dm-46 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91d48ce30012 -> ../../dm-48 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91d660920013 -> ../../dm-47 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91e1f7e30013 -> ../../dm-50 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91e627960014 -> ../../dm-49 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc91ed4c080015 -> ../../dm-39 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc920b9c0c0014 -> ../../dm-40 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 dm-uuid-mpath-3600805f3001030c0acdc920d8c4f0015 -> ../../dm-42 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600805f3001030c0acdc9219681e0016 -> ../../dm-41 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da849504fd3e4c01000000 -> ../../dm-20 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8495262ccf4e01000000 -> ../../dm-23 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da84954c063f4c01000000 -> ../../dm-17 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da84955988d54e01000000 -> ../../dm-28 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da84956149cb4e01000000 -> ../../dm-25 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da84958d033f4c01000000 -> ../../dm-34 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da849596043f4c01000000 -> ../../dm-36 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 dm-uuid-mpath-3600c0ff000da8495b5063f4c01000000 -> ../../dm-19 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8495c7353e4f01000000 -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8495e530cf4e01000000 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8495ea043f4c01000000 -> ../../dm-15 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff20afd3e4c01000000 -> ../../dm-33 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff22131cf4e01000000 -> ../../dm-22 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff22b2ccf4e01000000 -> ../../dm-24 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff252063f4c01000000 -> ../../dm-18 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff25e88d54e01000000 -> ../../dm-30 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff26749cb4e01000000 -> ../../dm-26 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff294033f4c01000000 -> ../../dm-35 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff29c043f4c01000000 -> ../../dm-37 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff2d6353e4f01000000 -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 dm-uuid-mpath-3600c0ff000da8ff2f9043f4c01000000 -> ../../dm-16 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-part1-mpath-3600508b1001fffffa004e8d59768000c -> ../../dm-27 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-part1-mpath-3600805f3001030c0acdc91abab380011 -> ../../dm-51 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-part2-mpath-3600508b1001fffffa004e8d59768000c -> ../../dm-29 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 dm-uuid-part2-mpath-3600805f3001030c0acdc91abab380011 -> ../../dm-52 | |
lrwxrwxrwx 1 root root 16 Oct 2 19:22 edd-int13_dev80 -> ../../cciss/c0d0 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 edd-int13_dev80-part1 -> ../../cciss/c0d0p1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 edd-int13_dev80-part2 -> ../../cciss/c0d0p2 | |
lrwxrwxrwx 1 root root 16 Oct 2 19:22 edd-int13_dev81 -> ../../cciss/c0d1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 edd-int13_dev81-part1 -> ../../cciss/c0d1p1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 edd-int13_dev81-part2 -> ../../cciss/c0d1p2 | |
lrwxrwxrwx 1 root root 10 Oct 2 19:22 edd-int13_dev82 -> ../../sdbe | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 edd-int13_dev82-part1 -> ../../sdbe1 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 edd-int13_dev82-part2 -> ../../sdbe2 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 lvm2-pvuuid-05OqEm-sOPb-5Xrd-rStM-vFEg-fHA4-kfCyWO -> ../../dm-52 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-25m9F5-CptV-ji5A-R4hU-dErP-hshX-Lp3SeG -> ../../dm-48 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-9yse7L-4jhI-5OvI-Z790-xMCc-WrKx-afM0Ve -> ../../dm-17 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-D82TwL-MgK0-AGwW-Uiqq-8Do6-w3ii-ue0oTC -> ../../dm-16 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-dG57X0-FNZP-gwxV-uFIL-4zH5-Fir2-iaTSfv -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-Ej0Il8-ALmv-eaFW-v2Q7-pWqe-6LSU-2foYu6 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-Euh4Tb-1eis-SXLw-OlEy-E2Hv-x3fw-shw9XD -> ../../dm-18 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-fzyXrv-gHoy-NIv3-ac4D-HFM8-8xb8-0hkZkf -> ../../dm-50 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-gGFamb-ClcN-qGL9-0l62-9UL4-cDUI-tE10rI -> ../../dm-49 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-HOaFnN-dQWb-eor2-CNxh-fubN-DmTO-Wielut -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-Nzpq6B-vxDj-oJpg-DAbt-HPiu-uTrB-pvYjeI -> ../../dm-40 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 lvm2-pvuuid-RMREJz-oU22-9tnM-KZzP-aoW7-P9Zd-hjcr3G -> ../../dm-41 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc918b17e0000f -> ../../dm-38 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91a1a8c10010 -> ../../dm-44 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-3600805f3001030c0acdc91abab380011 -> ../../dm-43 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-3600805f3001030c0acdc91abab380011-part1 -> ../../dm-51 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-3600805f3001030c0acdc91abab380011-part2 -> ../../dm-52 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91b2f8820012 -> ../../dm-45 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91c9bf1c0011 -> ../../dm-46 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91d48ce30012 -> ../../dm-48 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91d660920013 -> ../../dm-47 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91e1f7e30013 -> ../../dm-50 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91e627960014 -> ../../dm-49 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc91ed4c080015 -> ../../dm-39 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc920b9c0c0014 -> ../../dm-40 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 scsi-3600805f3001030c0acdc920d8c4f0015 -> ../../dm-42 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600805f3001030c0acdc9219681e0016 -> ../../dm-41 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da849504fd3e4c01000000 -> ../../dm-20 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8495262ccf4e01000000 -> ../../dm-23 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da84954c063f4c01000000 -> ../../dm-17 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da84955988d54e01000000 -> ../../dm-28 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da84956149cb4e01000000 -> ../../dm-25 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da84958d033f4c01000000 -> ../../dm-34 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da849596043f4c01000000 -> ../../dm-36 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 scsi-3600c0ff000da8495b5063f4c01000000 -> ../../dm-19 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8495c7353e4f01000000 -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8495e530cf4e01000000 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8495ea043f4c01000000 -> ../../dm-15 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff20afd3e4c01000000 -> ../../dm-33 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff22131cf4e01000000 -> ../../dm-22 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff22b2ccf4e01000000 -> ../../dm-24 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff252063f4c01000000 -> ../../dm-18 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff25e88d54e01000000 -> ../../dm-30 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff26749cb4e01000000 -> ../../dm-26 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff294033f4c01000000 -> ../../dm-35 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff29c043f4c01000000 -> ../../dm-37 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff2d6353e4f01000000 -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-3600c0ff000da8ff2f9043f4c01000000 -> ../../dm-16 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3ascs -> ../../dm-47 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3data_1 -> ../../dm-38 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-msa1_NA3data_2 -> ../../dm-43 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-msa1_NA3data_2-part1 -> ../../dm-51 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 scsi-msa1_NA3data_2-part2 -> ../../dm-52 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3log -> ../../dm-39 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3nfs -> ../../dm-45 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3ora -> ../../dm-44 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa1_NA3scs -> ../../dm-46 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 scsi-msa1_sbd1 -> ../../dm-42 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_HP2bin_1 -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_HP2bin_2 -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3ascs -> ../../dm-36 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3data_1 -> ../../dm-33 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3data_2 -> ../../dm-20 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3log -> ../../dm-15 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3nfs -> ../../dm-34 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3ora -> ../../dm-35 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_NA3scs -> ../../dm-37 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 scsi-msa2_sbd1 -> ../../dm-19 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybbackup_1 -> ../../dm-28 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybbackup_2 -> ../../dm-30 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybbin_1 -> ../../dm-25 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybbin_2 -> ../../dm-26 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybdata_1 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_sybdata_2 -> ../../dm-22 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_syblog_1 -> ../../dm-23 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 scsi-msa2_syblog_2 -> ../../dm-24 | |
lrwxrwxrwx 1 root root 16 Oct 2 19:22 wwn-0x600508b1001fffffa004e8d59768000c -> ../../cciss/c0d1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 wwn-0x600508b1001fffffa004e8d59768000c-part1 -> ../../cciss/c0d1p1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 wwn-0x600508b1001fffffa004e8d59768000c-part2 -> ../../cciss/c0d1p2 | |
lrwxrwxrwx 1 root root 16 Oct 2 19:22 wwn-0x600508b1001fffffa004f7b3f209000b -> ../../cciss/c0d0 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 wwn-0x600508b1001fffffa004f7b3f209000b-part1 -> ../../cciss/c0d0p1 | |
lrwxrwxrwx 1 root root 18 Oct 2 19:22 wwn-0x600508b1001fffffa004f7b3f209000b-part2 -> ../../cciss/c0d0p2 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc918b17e0000f -> ../../dm-38 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91a1a8c10010 -> ../../dm-44 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 wwn-0x600805f3001030c0acdc91abab380011 -> ../../dm-43 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 wwn-0x600805f3001030c0acdc91abab380011-part1 -> ../../sdbe1 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:22 wwn-0x600805f3001030c0acdc91abab380011-part2 -> ../../sdbe2 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91b2f8820012 -> ../../dm-45 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91c9bf1c0011 -> ../../dm-46 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91d48ce30012 -> ../../dm-48 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91d660920013 -> ../../dm-47 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91e1f7e30013 -> ../../dm-50 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91e627960014 -> ../../dm-49 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc91ed4c080015 -> ../../dm-39 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc920b9c0c0014 -> ../../dm-40 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 wwn-0x600805f3001030c0acdc920d8c4f0015 -> ../../dm-42 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600805f3001030c0acdc9219681e0016 -> ../../dm-41 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da849504fd3e4c01000000 -> ../../dm-20 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8495262ccf4e01000000 -> ../../dm-23 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da84954c063f4c01000000 -> ../../dm-17 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da84955988d54e01000000 -> ../../dm-28 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da84956149cb4e01000000 -> ../../dm-25 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da84958d033f4c01000000 -> ../../dm-34 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da849596043f4c01000000 -> ../../dm-36 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:25 wwn-0x600c0ff000da8495b5063f4c01000000 -> ../../dm-19 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8495c7353e4f01000000 -> ../../dm-31 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8495e530cf4e01000000 -> ../../dm-21 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8495ea043f4c01000000 -> ../../dm-15 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff20afd3e4c01000000 -> ../../dm-33 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff22131cf4e01000000 -> ../../dm-22 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff22b2ccf4e01000000 -> ../../dm-24 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff252063f4c01000000 -> ../../dm-18 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff25e88d54e01000000 -> ../../dm-30 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff26749cb4e01000000 -> ../../dm-26 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff294033f4c01000000 -> ../../dm-35 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff29c043f4c01000000 -> ../../dm-37 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff2d6353e4f01000000 -> ../../dm-32 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:23 wwn-0x600c0ff000da8ff2f9043f4c01000000 -> ../../dm-16 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 wwn-0xsa1_NA3data_2-part1 -> ../../dm-51 | |
lrwxrwxrwx 1 root root 11 Oct 2 19:40 wwn-0xsa1_NA3data_2-part2 -> ../../dm-52 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cat /var/lib/rear/recovery/diskbyid_mappings | |
cciss-3600508b1001fffffa004e8d59768000c dm-14 | |
cciss-3600508b1001fffffa004e8d59768000c-part1 dm-27 | |
cciss-3600508b1001fffffa004e8d59768000c-part2 dm-29 | |
cciss-3600508b1001fffffa004f7b3f209000b cciss/c0d0 | |
cciss-3600508b1001fffffa004f7b3f209000b-part1 cciss/c0d0p1 | |
cciss-3600508b1001fffffa004f7b3f209000b-part2 cciss/c0d0p2 | |
dm-name-3600508b1001fffffa004e8d59768000c dm-14 | |
dm-name-3600508b1001fffffa004e8d59768000c_part1 dm-27 | |
dm-name-3600508b1001fffffa004e8d59768000c_part2 dm-29 | |
dm-name-3600805f3001030c0acdc91d48ce30012 dm-48 | |
dm-name-3600805f3001030c0acdc91e1f7e30013 dm-50 | |
dm-name-3600805f3001030c0acdc91e627960014 dm-49 | |
dm-name-3600805f3001030c0acdc920b9c0c0014 dm-40 | |
dm-name-3600805f3001030c0acdc9219681e0016 dm-41 | |
dm-name-3600c0ff000da84954c063f4c01000000 dm-17 | |
dm-name-3600c0ff000da8ff252063f4c01000000 dm-18 | |
dm-name-3600c0ff000da8ff2f9043f4c01000000 dm-16 | |
dm-name-msa1_NA3ascs dm-47 | |
dm-name-msa1_NA3data_1 dm-38 | |
dm-name-msa1_NA3data_2 dm-43 | |
dm-name-msa1_NA3data_2_part1 dm-51 | |
dm-name-msa1_NA3data_2_part2 dm-52 | |
dm-name-msa1_NA3log dm-39 | |
dm-name-msa1_NA3nfs dm-45 | |
dm-name-msa1_NA3ora dm-44 | |
dm-name-msa1_NA3scs dm-46 | |
dm-name-msa1_sbd1 dm-42 | |
dm-name-msa2_HP2bin_1 dm-31 | |
dm-name-msa2_HP2bin_2 dm-32 | |
dm-name-msa2_NA3ascs dm-36 | |
dm-name-msa2_NA3data_1 dm-33 | |
dm-name-msa2_NA3data_2 dm-20 | |
dm-name-msa2_NA3log dm-15 | |
dm-name-msa2_NA3nfs dm-34 | |
dm-name-msa2_NA3ora dm-35 | |
dm-name-msa2_NA3scs dm-37 | |
dm-name-msa2_sbd1 dm-19 | |
dm-name-msa2_sybbackup_1 dm-28 | |
dm-name-msa2_sybbackup_2 dm-30 | |
dm-name-msa2_sybbin_1 dm-25 | |
dm-name-msa2_sybbin_2 dm-26 | |
dm-name-msa2_sybdata_1 dm-21 | |
dm-name-msa2_sybdata_2 dm-22 | |
dm-name-msa2_syblog_1 dm-23 | |
dm-name-msa2_syblog_2 dm-24 | |
dm-name-vg00-lv_crash dm-13 | |
dm-name-vg00-lv_depot dm-11 | |
dm-name-vg00-lv_home dm-0 | |
dm-name-vg00-lv_opt dm-1 | |
dm-name-vg00-lv_ora dm-2 | |
dm-name-vg00-lv_root dm-3 | |
dm-name-vg00-lv_swap dm-4 | |
dm-name-vg00-lv_tmp dm-5 | |
dm-name-vg00-lv_usr dm-6 | |
dm-name-vg00-lv_usr_sap dm-7 | |
dm-name-vg00-lv_var dm-8 | |
dm-name-vg00-lv_var_log dm-9 | |
dm-name-vg00-lv_var_op dm-10 | |
dm-name-vg00-lvusrsap dm-12 | |
dm-name-vg00_SAN-lv_home dm-59 | |
dm-name-vg00_SAN-lv_opt dm-54 | |
dm-name-vg00_SAN-lv_root dm-61 | |
dm-name-vg00_SAN-lv_swap dm-62 | |
dm-name-vg00_SAN-lv_tmp dm-55 | |
dm-name-vg00_SAN-lv_usr dm-60 | |
dm-name-vg00_SAN-lv_usr_sap dm-53 | |
dm-name-vg00_SAN-lv_var dm-58 | |
dm-name-vg00_SAN-lv_var_crash dm-63 | |
dm-name-vg00_SAN-lv_var_log dm-56 | |
dm-name-vg00_SAN-lv_var_opt dm-57 | |
dm-name-vgP12ora-lvP12ora dm-65 | |
dm-name-vgP12ora02-lvP12ora dm-68 | |
dm-name-vgP12ora02-lvP12ora-missing_0_0 dm-66 | |
dm-name-vgP12ora02-lvP12ora-missing_1_0 dm-67 | |
dm-name-vgT00data-lvsapdata1 dm-64 | |
dm-uuid-LVM-183PxFyXc4jsH3AMMcEvo6buni0VQuNDoCvyqezni0kTnhU9Dzc0zbXDNSHODgLP dm-64 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW31H4T1EvFpIBzpA7FnQ2Ihh0HYiKoRTgN dm-60 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW32hV8Anpff2qeeY0obPllI5IPgaLOc3Ma dm-59 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3RwyvPFWzqNt88XGphnjHfRNBYfbkf7MD dm-63 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3VxSbCwZBuM4hM2WdEU9qgP0GYMLKJfEi dm-58 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3Yg0C4n8sNbEcEQzhsQ1Qhzma0TtXhkwd dm-53 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3d9SSuoNLwuGjhxkbHjhu5i8b6HydfY14 dm-56 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3i7nrW2ke3NbDocQt4qbPjCk2pDUghUaF dm-62 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3kcmSN9rCue4I5lgzfytEk8Qey8ps40gr dm-54 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3onG1kKUI8h27UljUeYPseX9ToVSOyK8d dm-55 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3tGRSyRWNLllK1Mhv6ImmY7RbmaHGfJe0 dm-57 | |
dm-uuid-LVM-3O8FeD3CM3WRh52IFe975TvNzSr9BAW3wioctMmbhnCvA0tyavQOxDLdjZe0g2rW dm-61 | |
dm-uuid-LVM-82N1AWKQ6qCxjxGKhDBAXfsHMfkVwcPlTpaJlFBEIeh1rKNoEM36e2OXcyK02OgM dm-65 | |
dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc dm-68 | |
dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc-missing_0_0 dm-66 | |
dm-uuid-LVM-TmJ0MIs9BODZ9SaJ14wAyidikGalfKl90C3xasN1u9affgreHbrigiUNlZLtvWrc-missing_1_0 dm-67 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU2oRN1haWdDVuPw4dvhLF05U23dwi3UOO dm-2 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU4jcAOGIaRQWJNFKMcu0jUXzxT2h3KH6d dm-0 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VU6tvjj3bHMl6nnRfdoG7vx8S6I3ej3ICE dm-10 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUAK3BJUaNyyMBoUee5TSn6DsgF29BTYXh dm-11 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUHcpHzA2Nws5j1DSQKdbaH88yAB9b1dKH dm-4 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUJWKi0Z2peJMinb30PP3L5CperdW9r4Pd dm-1 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUKJLMOl4UjRnForBLmzt4PRNr3rJWo3LX dm-5 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUKRmpXh8uWeOnWNmMMiz5BQwP7DXHAMxS dm-7 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUZBMSbWAsJ5YvU5WZaXXCmps2k8NRd7de dm-9 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUdENneBLsF5YguOLwRrUt0muFtg1eHKSz dm-12 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUe5xvQ1cL19KBZe1TdnZy5PGD10IOtZhH dm-8 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUl0rlsY7nlW7X3A9laN0YNfIUACnMeG9d dm-3 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUlM09qdlfkvkL9CC2FrzCQ3e8L4CDOgD4 dm-13 | |
dm-uuid-LVM-lZ2CPwrpOcM07I74PnaDnYoeZ6pYX0VUs5KjHyUq8k2rScxe32B4BcIIuJfNMIeM dm-6 | |
dm-uuid-mpath-3600508b1001fffffa004e8d59768000c dm-14 | |
dm-uuid-mpath-3600805f3001030c0acdc918b17e0000f dm-38 | |
dm-uuid-mpath-3600805f3001030c0acdc91a1a8c10010 dm-44 | |
dm-uuid-mpath-3600805f3001030c0acdc91abab380011 dm-43 | |
dm-uuid-mpath-3600805f3001030c0acdc91b2f8820012 dm-45 | |
dm-uuid-mpath-3600805f3001030c0acdc91c9bf1c0011 dm-46 | |
dm-uuid-mpath-3600805f3001030c0acdc91d48ce30012 dm-48 | |
dm-uuid-mpath-3600805f3001030c0acdc91d660920013 dm-47 | |
dm-uuid-mpath-3600805f3001030c0acdc91e1f7e30013 dm-50 | |
dm-uuid-mpath-3600805f3001030c0acdc91e627960014 dm-49 | |
dm-uuid-mpath-3600805f3001030c0acdc91ed4c080015 dm-39 | |
dm-uuid-mpath-3600805f3001030c0acdc920b9c0c0014 dm-40 | |
dm-uuid-mpath-3600805f3001030c0acdc920d8c4f0015 dm-42 | |
dm-uuid-mpath-3600805f3001030c0acdc9219681e0016 dm-41 | |
dm-uuid-mpath-3600c0ff000da849504fd3e4c01000000 dm-20 | |
dm-uuid-mpath-3600c0ff000da8495262ccf4e01000000 dm-23 | |
dm-uuid-mpath-3600c0ff000da84954c063f4c01000000 dm-17 | |
dm-uuid-mpath-3600c0ff000da84955988d54e01000000 dm-28 | |
dm-uuid-mpath-3600c0ff000da84956149cb4e01000000 dm-25 | |
dm-uuid-mpath-3600c0ff000da84958d033f4c01000000 dm-34 | |
dm-uuid-mpath-3600c0ff000da849596043f4c01000000 dm-36 | |
dm-uuid-mpath-3600c0ff000da8495b5063f4c01000000 dm-19 | |
dm-uuid-mpath-3600c0ff000da8495c7353e4f01000000 dm-31 | |
dm-uuid-mpath-3600c0ff000da8495e530cf4e01000000 dm-21 | |
dm-uuid-mpath-3600c0ff000da8495ea043f4c01000000 dm-15 | |
dm-uuid-mpath-3600c0ff000da8ff20afd3e4c01000000 dm-33 | |
dm-uuid-mpath-3600c0ff000da8ff22131cf4e01000000 dm-22 | |
dm-uuid-mpath-3600c0ff000da8ff22b2ccf4e01000000 dm-24 | |
dm-uuid-mpath-3600c0ff000da8ff252063f4c01000000 dm-18 | |
dm-uuid-mpath-3600c0ff000da8ff25e88d54e01000000 dm-30 | |
dm-uuid-mpath-3600c0ff000da8ff26749cb4e01000000 dm-26 | |
dm-uuid-mpath-3600c0ff000da8ff294033f4c01000000 dm-35 | |
dm-uuid-mpath-3600c0ff000da8ff29c043f4c01000000 dm-37 | |
dm-uuid-mpath-3600c0ff000da8ff2d6353e4f01000000 dm-32 | |
dm-uuid-mpath-3600c0ff000da8ff2f9043f4c01000000 dm-16 | |
dm-uuid-part1-mpath-3600508b1001fffffa004e8d59768000c dm-27 | |
dm-uuid-part1-mpath-3600805f3001030c0acdc91abab380011 dm-51 | |
dm-uuid-part2-mpath-3600508b1001fffffa004e8d59768000c dm-29 | |
dm-uuid-part2-mpath-3600805f3001030c0acdc91abab380011 dm-52 | |
edd-int13_dev80 cciss/c0d0 | |
edd-int13_dev80-part1 cciss/c0d0p1 | |
edd-int13_dev80-part2 cciss/c0d0p2 | |
edd-int13_dev81 cciss/c0d1 | |
edd-int13_dev81-part1 cciss/c0d1p1 | |
edd-int13_dev81-part2 cciss/c0d1p2 | |
edd-int13_dev82 sdbe | |
edd-int13_dev82-part1 sdbe1 | |
edd-int13_dev82-part2 sdbe2 | |
lvm2-pvuuid-05OqEm-sOPb-5Xrd-rStM-vFEg-fHA4-kfCyWO dm-52 | |
lvm2-pvuuid-25m9F5-CptV-ji5A-R4hU-dErP-hshX-Lp3SeG dm-48 | |
lvm2-pvuuid-9yse7L-4jhI-5OvI-Z790-xMCc-WrKx-afM0Ve dm-17 | |
lvm2-pvuuid-D82TwL-MgK0-AGwW-Uiqq-8Do6-w3ii-ue0oTC dm-16 | |
lvm2-pvuuid-Ej0Il8-ALmv-eaFW-v2Q7-pWqe-6LSU-2foYu6 dm-21 | |
lvm2-pvuuid-Euh4Tb-1eis-SXLw-OlEy-E2Hv-x3fw-shw9XD dm-18 | |
lvm2-pvuuid-HOaFnN-dQWb-eor2-CNxh-fubN-DmTO-Wielut dm-31 | |
lvm2-pvuuid-Nzpq6B-vxDj-oJpg-DAbt-HPiu-uTrB-pvYjeI dm-40 | |
lvm2-pvuuid-RMREJz-oU22-9tnM-KZzP-aoW7-P9Zd-hjcr3G dm-41 | |
lvm2-pvuuid-dG57X0-FNZP-gwxV-uFIL-4zH5-Fir2-iaTSfv dm-32 | |
lvm2-pvuuid-fzyXrv-gHoy-NIv3-ac4D-HFM8-8xb8-0hkZkf dm-50 | |
lvm2-pvuuid-gGFamb-ClcN-qGL9-0l62-9UL4-cDUI-tE10rI dm-49 | |
scsi-3600805f3001030c0acdc918b17e0000f dm-38 | |
scsi-3600805f3001030c0acdc91a1a8c10010 dm-44 | |
scsi-3600805f3001030c0acdc91abab380011 dm-43 | |
scsi-3600805f3001030c0acdc91abab380011-part1 dm-51 | |
scsi-3600805f3001030c0acdc91abab380011-part2 dm-52 | |
scsi-3600805f3001030c0acdc91b2f8820012 dm-45 | |
scsi-3600805f3001030c0acdc91c9bf1c0011 dm-46 | |
scsi-3600805f3001030c0acdc91d48ce30012 dm-48 | |
scsi-3600805f3001030c0acdc91d660920013 dm-47 | |
scsi-3600805f3001030c0acdc91e1f7e30013 dm-50 | |
scsi-3600805f3001030c0acdc91e627960014 dm-49 | |
scsi-3600805f3001030c0acdc91ed4c080015 dm-39 | |
scsi-3600805f3001030c0acdc920b9c0c0014 dm-40 | |
scsi-3600805f3001030c0acdc920d8c4f0015 dm-42 | |
scsi-3600805f3001030c0acdc9219681e0016 dm-41 | |
scsi-3600c0ff000da849504fd3e4c01000000 dm-20 | |
scsi-3600c0ff000da8495262ccf4e01000000 dm-23 | |
scsi-3600c0ff000da84954c063f4c01000000 dm-17 | |
scsi-3600c0ff000da84955988d54e01000000 dm-28 | |
scsi-3600c0ff000da84956149cb4e01000000 dm-25 | |
scsi-3600c0ff000da84958d033f4c01000000 dm-34 | |
scsi-3600c0ff000da849596043f4c01000000 dm-36 | |
scsi-3600c0ff000da8495b5063f4c01000000 dm-19 | |
scsi-3600c0ff000da8495c7353e4f01000000 dm-31 | |
scsi-3600c0ff000da8495e530cf4e01000000 dm-21 | |
scsi-3600c0ff000da8495ea043f4c01000000 dm-15 | |
scsi-3600c0ff000da8ff20afd3e4c01000000 dm-33 | |
scsi-3600c0ff000da8ff22131cf4e01000000 dm-22 | |
scsi-3600c0ff000da8ff22b2ccf4e01000000 dm-24 | |
scsi-3600c0ff000da8ff252063f4c01000000 dm-18 | |
scsi-3600c0ff000da8ff25e88d54e01000000 dm-30 | |
scsi-3600c0ff000da8ff26749cb4e01000000 dm-26 | |
scsi-3600c0ff000da8ff294033f4c01000000 dm-35 | |
scsi-3600c0ff000da8ff29c043f4c01000000 dm-37 | |
scsi-3600c0ff000da8ff2d6353e4f01000000 dm-32 | |
scsi-3600c0ff000da8ff2f9043f4c01000000 dm-16 | |
scsi-msa1_NA3ascs dm-47 | |
scsi-msa1_NA3data_1 dm-38 | |
scsi-msa1_NA3data_2 dm-43 | |
scsi-msa1_NA3data_2-part1 dm-51 | |
scsi-msa1_NA3data_2-part2 dm-52 | |
scsi-msa1_NA3log dm-39 | |
scsi-msa1_NA3nfs dm-45 | |
scsi-msa1_NA3ora dm-44 | |
scsi-msa1_NA3scs dm-46 | |
scsi-msa1_sbd1 dm-42 | |
scsi-msa2_HP2bin_1 dm-31 | |
scsi-msa2_HP2bin_2 dm-32 | |
scsi-msa2_NA3ascs dm-36 | |
scsi-msa2_NA3data_1 dm-33 | |
scsi-msa2_NA3data_2 dm-20 | |
scsi-msa2_NA3log dm-15 | |
scsi-msa2_NA3nfs dm-34 | |
scsi-msa2_NA3ora dm-35 | |
scsi-msa2_NA3scs dm-37 | |
scsi-msa2_sbd1 dm-19 | |
scsi-msa2_sybbackup_1 dm-28 | |
scsi-msa2_sybbackup_2 dm-30 | |
scsi-msa2_sybbin_1 dm-25 | |
scsi-msa2_sybbin_2 dm-26 | |
scsi-msa2_sybdata_1 dm-21 | |
scsi-msa2_sybdata_2 dm-22 | |
scsi-msa2_syblog_1 dm-23 | |
scsi-msa2_syblog_2 dm-24 | |
wwn-0x600508b1001fffffa004e8d59768000c cciss/c0d1 | |
wwn-0x600508b1001fffffa004e8d59768000c-part1 cciss/c0d1p1 | |
wwn-0x600508b1001fffffa004e8d59768000c-part2 cciss/c0d1p2 | |
wwn-0x600508b1001fffffa004f7b3f209000b cciss/c0d0 | |
wwn-0x600508b1001fffffa004f7b3f209000b-part1 cciss/c0d0p1 | |
wwn-0x600508b1001fffffa004f7b3f209000b-part2 cciss/c0d0p2 | |
wwn-0x600805f3001030c0acdc918b17e0000f dm-38 | |
wwn-0x600805f3001030c0acdc91a1a8c10010 dm-44 | |
wwn-0x600805f3001030c0acdc91abab380011 dm-43 | |
wwn-0x600805f3001030c0acdc91abab380011-part1 sdbe1 | |
wwn-0x600805f3001030c0acdc91abab380011-part2 sdbe2 | |
wwn-0x600805f3001030c0acdc91b2f8820012 dm-45 | |
wwn-0x600805f3001030c0acdc91c9bf1c0011 dm-46 | |
wwn-0x600805f3001030c0acdc91d48ce30012 dm-48 | |
wwn-0x600805f3001030c0acdc91d660920013 dm-47 | |
wwn-0x600805f3001030c0acdc91e1f7e30013 dm-50 | |
wwn-0x600805f3001030c0acdc91e627960014 dm-49 | |
wwn-0x600805f3001030c0acdc91ed4c080015 dm-39 | |
wwn-0x600805f3001030c0acdc920b9c0c0014 dm-40 | |
wwn-0x600805f3001030c0acdc920d8c4f0015 dm-42 | |
wwn-0x600805f3001030c0acdc9219681e0016 dm-41 | |
wwn-0x600c0ff000da849504fd3e4c01000000 dm-20 | |
wwn-0x600c0ff000da8495262ccf4e01000000 dm-23 | |
wwn-0x600c0ff000da84954c063f4c01000000 dm-17 | |
wwn-0x600c0ff000da84955988d54e01000000 dm-28 | |
wwn-0x600c0ff000da84956149cb4e01000000 dm-25 | |
wwn-0x600c0ff000da84958d033f4c01000000 dm-34 | |
wwn-0x600c0ff000da849596043f4c01000000 dm-36 | |
wwn-0x600c0ff000da8495b5063f4c01000000 dm-19 | |
wwn-0x600c0ff000da8495c7353e4f01000000 dm-31 | |
wwn-0x600c0ff000da8495e530cf4e01000000 dm-21 | |
wwn-0x600c0ff000da8495ea043f4c01000000 dm-15 | |
wwn-0x600c0ff000da8ff20afd3e4c01000000 dm-33 | |
wwn-0x600c0ff000da8ff22131cf4e01000000 dm-22 | |
wwn-0x600c0ff000da8ff22b2ccf4e01000000 dm-24 | |
wwn-0x600c0ff000da8ff252063f4c01000000 dm-18 | |
wwn-0x600c0ff000da8ff25e88d54e01000000 dm-30 | |
wwn-0x600c0ff000da8ff26749cb4e01000000 dm-26 | |
wwn-0x600c0ff000da8ff294033f4c01000000 dm-35 | |
wwn-0x600c0ff000da8ff29c043f4c01000000 dm-37 | |
wwn-0x600c0ff000da8ff2d6353e4f01000000 dm-32 | |
wwn-0x600c0ff000da8ff2f9043f4c01000000 dm-16 | |
wwn-0xsa1_NA3data_2-part1 dm-51 | |
wwn-0xsa1_NA3data_2-part2 dm-52 |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2013-10-02 19:39:27 Relax-and-Recover 1.15 / Git | |
2013-10-02 19:39:27 Command line options: /usr/sbin/rear -vD savelayout | |
2013-10-02 19:39:27 Using log file: /var/log/rear/rear-eahlx01.log | |
2013-10-02 19:39:27 Including /etc/rear/os.conf | |
+ . /etc/rear/os.conf | |
++ OS_VENDOR=SUSE_LINUX | |
++ OS_VERSION=11 | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including conf/Linux-i386.conf | |
+ . /usr/share/rear/conf/Linux-i386.conf | |
++ REQUIRED_PROGS=("${REQUIRED_PROGS[@]}" parted sfdisk) | |
++ PROGS=("${PROGS[@]}" grub partprobe lilo fdisk cfdisk) | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including conf/GNU/Linux.conf | |
+ . /usr/share/rear/conf/GNU/Linux.conf | |
++ PROGS=(${PROGS[@]} rpc.statd rpcbind bash mknod blkid vol_id udev_volume_id portmap readlink rpcinfo grep cat tac tr reboot halt shutdown killall5 killall chroot tee awk ip ifconfig nslookup route ifenslave ifrename nameif klogd syslog-ng syslogd rsyslogd echo cp date wc cut rm rmdir test init telinit ethtool expand sed mount umount insmod modprobe lsmod true false mingetty rmmod hostname uname sleep logger ps ln dirname basename mkdir tty ping netstat free traceroute less vi pico nano rmmod df ls dmesg du tar gzip netcat top iptraf joe pico getent id ldd strace rsync tail head find md5sum mkfs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev mkfs.jfs mkfs.xfs mkfs.reiserfs mkfs.vfat mkfs.btrfs mkreiserfs fsck fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev fsck.xfs fsck.reiserfs reiserfsck fsck.btrfs btrfsck tune2fs tune4fs xfs_admin xfs_db btrfs jfs_tune reiserfstune expr egrep grep fgrep df chmod chown stat mkswap swapon swapoff mknod touch scsi_id lsscsi logd initctl lspci usleep mktemp /bin/true strace which mkfifo seq openvt poweroff chacl getfacl setfacl attr getfattr setfattr mpath_wait strings xargs) | |
++ LIBS=(${LIBS[@]} /lib*/libnss_dns* /lib*/libnss_files* /lib/*/libnss_dns* /lib/*/libnss_files* /lib*/libgcc_s* /lib*/libresolv* /usr/lib*/rsyslog/*so /lib*/rsyslog/*so /usr/lib*/syslog-ng/*) | |
++ MODULES=(${MODULES[@]} vfat nls_iso8859_1 nls_utf8 nls_cp437 af_packet unix nfs nfsv4 nfsv3 lockd sunrpc cifs usbcore usb_storage usbhid sr_mod ide_cd cdrom uhci_hcd ehci_hcd ohci_hcd zlib zlib-inflate zlib-deflate libcrc32c crc32c crc32c-intel) | |
++ COPY_AS_IS=(${COPY_AS_IS[@]} /dev /etc/inputr[c] /etc/protocols /etc/services /etc/rpc /etc/termcap /etc/terminfo /lib*/terminfo /usr/share/terminfo /etc/netconfig /etc/mke2fs.conf /etc/*-release /lib*/firmware /etc/localtime /etc/magic /usr/share/misc/magic /etc/dracut.conf /etc/dracut.conf.d /usr/lib/dracut) | |
++ COPY_AS_IS_EXCLUDE=(${COPY_AS_IS_EXCLUDE[@]} dev/shm/\*) | |
++ KERNEL_CMDLINE=' selinux=0' | |
++ CLONE_USERS=("${CLONE_USERS[@]}" daemon rpc usbmuxd usbmux vcsa nobody) | |
++ CLONE_GROUPS=("${CLONE_GROUPS[@]}" tty usbmuxd usbmux fuse) | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including conf/SUSE_LINUX.conf | |
+ . /usr/share/rear/conf/SUSE_LINUX.conf | |
++ COPY_AS_IS=("${COPY_AS_IS[@]}" /etc/sysconfig/network/config /etc/sysconfig/network/scripts/functions) | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including /etc/rear/site.conf | |
+ . /etc/rear/site.conf | |
++ BACKUP=NETFS | |
++ OUTPUT=ISO | |
++ BACKUP_URL=nfs://eahlx-rear/rear-test/backup | |
++ NETFS_PREFIX=eahlx01-NETFS | |
++ NETFS_KEEP_OLD_BACKUP_COPY=1 | |
++ OUTPUT_URL=nfs://eahlx-rear/rear-test/iso | |
++ OUTPUT_PREFIX=eahlx01-NETFS | |
++ KEEP_OLD_OUTPUT_COPY=1 | |
++ EXCLUDE_MD=($(grep -o -E '^md[0-9]+' /proc/mdstat)) | |
+++ grep -o -E '^md[0-9]+' /proc/mdstat | |
++ ONLY_INCLUDE_VG=("vg00") | |
++ GRUB_RESCUE=y | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including /etc/rear/local.conf | |
+ . /etc/rear/local.conf | |
++ OUTPUT=ISO | |
++ MODULES_LOAD=(vmxnet) | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Using build area '/tmp/rear.VZOWI6DKsm45UgS' | |
mkdir: created directory `/tmp/rear.VZOWI6DKsm45UgS/rootfs' | |
mkdir: created directory `/tmp/rear.VZOWI6DKsm45UgS/tmp' | |
2013-10-02 19:39:27 Running savelayout workflow | |
2013-10-02 19:39:27 Running 'layout/save' stage | |
2013-10-02 19:39:27 Including layout/save/GNU/Linux/10_create_layout_file.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/10_create_layout_file.sh | |
++ LogPrint 'Creating disk layout' | |
++ Log 'Creating disk layout' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2013-10-02 19:39:27 Creating disk layout' | |
2013-10-02 19:39:27 Creating disk layout | |
++ Print 'Creating disk layout' | |
++ test 1 | |
++ echo -e 'Creating disk layout' | |
++ Log 'Preparing layout directory.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2013-10-02 19:39:27 Preparing layout directory.' | |
2013-10-02 19:39:27 Preparing layout directory. | |
++ mkdir -p -v /var/lib/rear/layout | |
++ mkdir -p -v /var/lib/rear/recovery | |
++ mkdir -p -v /var/lib/rear/layout/config | |
++ DISKLAYOUT_FILE=/var/lib/rear/layout/disklayout.conf | |
++ '[' -e /var/lib/rear/layout/disklayout.conf ']' | |
++ Log 'Removing old layout file.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2013-10-02 19:39:27 Removing old layout file.' | |
2013-10-02 19:39:27 Removing old layout file. | |
++ : | |
++ LAYOUT_FILE=/var/lib/rear/layout/disklayout.conf | |
++ LAYOUT_DEPS=/var/lib/rear/layout/diskdeps.conf | |
++ LAYOUT_TODO=/var/lib/rear/layout/disktodo.conf | |
++ : | |
++ : | |
+ test 1 | |
+ set +x | |
2013-10-02 19:39:27 Including layout/save/GNU/Linux/20_partition_layout.sh | |
+ . /usr/share/rear/layout/save/GNU/Linux/20_partition_layout.sh | |
++ FEATURE_PARTED_MACHINEREADABLE= | |
++ FEATURE_PARTED_OLDNAMING= | |
+++ get_version parted -v | |
+++ parted -v | |
+++ sed -rn 's/^[^0-9\.]*([0-9]+\.[-0-9a-z\.]+).*$/\1/p' | |
+++ head -1 | |
++ parted_version=2.3 | |
++ [[ -n 2.3 ]] | |
++ BugIfError 'Function get_version could not detect parted version.' | |
++ (( 0 != 0 )) | |
++ version_newer 2.3 1.8.2 | |
++ v1list=(${1//[-.]/ }) | |
++ local v1list | |
++ v2list=(${2//[-.]/ }) | |
++ local v2list | |
++ local max=2 | |
++ (( 2 < 3 )) | |
++ max=3 | |
++ local pos | |
+++ seq 0 2 | |
++ for pos in '$(seq 0 $(( max -1 )))' | |
++ (( 10#02 < 10#01 )) | |
++ (( 10#02 > 10#01 )) | |
++ return 0 | |
++ FEATURE_PARTED_MACHINEREADABLE=y | |
++ version_newer 2.3 1.6.23 | |
++ v1list=(${1//[-.]/ }) | |
++ local v1list | |
++ v2list=(${2//[-.]/ }) | |
++ local v2list | |
++ local max=2 | |
++ (( 2 < 3 )) | |
++ max=3 | |
++ local pos | |
+++ seq 0 2 | |
++ for pos in '$(seq 0 $(( max -1 )))' | |
++ (( 10#02 < 10#01 )) | |
++ (( 10#02 > 10#01 )) | |
++ return 0 | |
++ Log 'Saving disk partitions.' | |
++ test 1 -gt 0 | |
+++ Stamp | |
+++ date '+%Y-%m-%d %H:%M:%S ' | |
++ echo '2013-10-02 19:39:27 Saving disk partitions.' | |
2013-10-02 19:39:27 Saving disk partitions. | |
++ for disk in '/sys/block/*' | |
++ [[ cciss!c0d0 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name '/sys/block/cciss!c0d0' | |
+++ local 'name=/sys/block/cciss!c0d0' | |
+++ name='cciss!c0d0' | |
+++ [[ -n cciss!c0d0 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d0 ]] | |
+++ [[ -r /sys/block/cciss!c0d0/dm/name ]] | |
+++ dev_number=104:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 104:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 104:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 104:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 104:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 104:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 104:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 104:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 104:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 104:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 104:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 104:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 104:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 104:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 104:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 104:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 104:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 104:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 104:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 104:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 104:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 104:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 104:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 104:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 104:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 104:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 104:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 104:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 104:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 104:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 104:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 104:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 104:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 104:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 104:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 104:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 104:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 104:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 104:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 104:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 104:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 104:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 104:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 104:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 104:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 104:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 104:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 104:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 104:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 104:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 104:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 104:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 104:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 104:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 104:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 104:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 104:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 104:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 104:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 104:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 104:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 104:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 104:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 104:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 104:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 104:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 104:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 104:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 104:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 104:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 104:0 = 253:64 ']' | |
+++ name=cciss/c0d0 | |
+++ echo /dev/cciss/c0d0 | |
+++ return 1 | |
++ devname=/dev/cciss/c0d0 | |
+++ get_disk_size 'cciss!c0d0' | |
+++ local 'disk_name=cciss!c0d0' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=142253280 | |
+++ local disk_size=72833679360 | |
+++ echo 72833679360 | |
++ devsize=72833679360 | |
+++ parted -s /dev/cciss/c0d0 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c0d0 72833679360 msdos' | |
++ extract_partitions /dev/cciss/c0d0 | |
++ declare device=/dev/cciss/c0d0 | |
+++ get_sysfs_name /dev/cciss/c0d0 | |
+++ local name=cciss/c0d0 | |
+++ name=cciss/c0d0 | |
+++ [[ -e /sys/block/cciss!c0d0 ]] | |
+++ echo 'cciss!c0d0' | |
+++ return 0 | |
++ declare 'sysfs_name=cciss!c0d0' | |
+++ get_block_size 'cciss!c0d0' | |
+++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 2 -eq 0 ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name 'cciss!c0d0p1' | |
+++ local 'name=cciss!c0d0p1' | |
+++ name='cciss!c0d0p1' | |
+++ [[ -n cciss!c0d0p1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d0p1 ]] | |
+++ name=cciss/c0d0p1 | |
+++ echo /dev/cciss/c0d0p1 | |
+++ return 1 | |
++ partition_name=/dev/cciss/c0d0p1 | |
++ partition_name=cciss/c0d0p1 | |
++ partition_name=cciss/c0d0p1 | |
+++ get_partition_number cciss/c0d0p1 | |
+++ local partition=cciss/c0d0p1 | |
++++ echo cciss/c0d0p1 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=1 | |
+++ '[' 1 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''1'\'' of partition cciss/c0d0p1 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 1 <= 128 )) | |
+++ StopIfError 'Partition cciss/c0d0p1 is numbered '\''1'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 1 | |
++ partition_nr=1 | |
++ partition_prefix=cciss/c0d0p | |
+++ get_disk_size 'cciss!c0d0/cciss!c0d0p1' | |
+++ local 'disk_name=cciss!c0d0/cciss!c0d0p1' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/cciss!c0d0p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0/cciss!c0d0p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=401562 | |
+++ local disk_size=205599744 | |
+++ echo 205599744 | |
++ size=205599744 | |
++ [[ -r /sys/block/cciss!c0d0/cciss!c0d0p1/start ]] | |
++ start_block=63 | |
++ start=32256 | |
++ echo '1 205599744 32256' | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name 'cciss!c0d0p2' | |
+++ local 'name=cciss!c0d0p2' | |
+++ name='cciss!c0d0p2' | |
+++ [[ -n cciss!c0d0p2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d0p2 ]] | |
+++ name=cciss/c0d0p2 | |
+++ echo /dev/cciss/c0d0p2 | |
+++ return 1 | |
++ partition_name=/dev/cciss/c0d0p2 | |
++ partition_name=cciss/c0d0p2 | |
++ partition_name=cciss/c0d0p2 | |
+++ get_partition_number cciss/c0d0p2 | |
+++ local partition=cciss/c0d0p2 | |
++++ echo cciss/c0d0p2 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=2 | |
+++ '[' 2 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''2'\'' of partition cciss/c0d0p2 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 2 <= 128 )) | |
+++ StopIfError 'Partition cciss/c0d0p2 is numbered '\''2'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 2 | |
++ partition_nr=2 | |
++ partition_prefix=cciss/c0d0p | |
+++ get_disk_size 'cciss!c0d0/cciss!c0d0p2' | |
+++ local 'disk_name=cciss!c0d0/cciss!c0d0p2' | |
++++ get_block_size 'cciss!c0d0' | |
++++ '[' -r '/sys/block/cciss!c0d0/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d0/cciss!c0d0p2/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d0/cciss!c0d0p2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=141837885 | |
+++ local disk_size=72620997120 | |
+++ echo 72620997120 | |
++ size=72620997120 | |
++ [[ -r /sys/block/cciss!c0d0/cciss!c0d0p2/start ]] | |
++ start_block=401625 | |
++ start=205632000 | |
++ echo '2 72620997120 205632000' | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ declare disk_label | |
++ [[ -n y ]] | |
++ parted -m -s /dev/cciss/c0d0 print | |
+++ grep '^/' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 6 | |
++ disk_label=msdos | |
++ cp /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions-data | |
++ declare type | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ declare -i has_logical | |
++ read partition_nr size start junk | |
++ (( 1 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^1 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ (( 2 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^2 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \g\p\t ]] | |
++ declare flags flaglist | |
++ [[ -n y ]] | |
++ read partition_nr size start junk | |
+++ grep '^1:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='boot type=83' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ boot = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=boot, | |
++ for flag in '$flaglist' | |
++ [[ type=83 = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z boot, ]] | |
++ sed -i '/^1 /s/$/ boot/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
+++ grep '^2:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='lvm type=8e' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ lvm = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=lvm, | |
++ for flag in '$flaglist' | |
++ [[ type=8e = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z lvm, ]] | |
++ sed -i '/^2 /s/$/ lvm/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ [[ -n '' ]] | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/cciss/c0d0p1 | |
+++ get_device_name /dev/cciss/c0d0p1 | |
+++ local name=cciss/c0d0p1 | |
+++ name=cciss/c0d0p1 | |
+++ [[ -n cciss/c0d0p1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss/c0d0p1 ]] | |
+++ name=cciss/c0d0p1 | |
+++ echo /dev/cciss/c0d0p1 | |
+++ return 1 | |
++ echo 'part /dev/cciss/c0d0 205599744 32256 primary boot /dev/cciss/c0d0p1' | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/cciss/c0d0p2 | |
+++ get_device_name /dev/cciss/c0d0p2 | |
+++ local name=cciss/c0d0p2 | |
+++ name=cciss/c0d0p2 | |
+++ [[ -n cciss/c0d0p2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss/c0d0p2 ]] | |
+++ name=cciss/c0d0p2 | |
+++ echo /dev/cciss/c0d0p2 | |
+++ return 1 | |
++ echo 'part /dev/cciss/c0d0 72620997120 205632000 primary lvm /dev/cciss/c0d0p2' | |
++ read partition_nr size start type flags junk | |
++ for disk in '/sys/block/*' | |
++ [[ cciss!c0d1 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name '/sys/block/cciss!c0d1' | |
+++ local 'name=/sys/block/cciss!c0d1' | |
+++ name='cciss!c0d1' | |
+++ [[ -n cciss!c0d1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d1 ]] | |
+++ [[ -r /sys/block/cciss!c0d1/dm/name ]] | |
+++ dev_number=104:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 104:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 104:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 104:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 104:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 104:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 104:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 104:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 104:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 104:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 104:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 104:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 104:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 104:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 104:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 104:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 104:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 104:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 104:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 104:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 104:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 104:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 104:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 104:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 104:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 104:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 104:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 104:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 104:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 104:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 104:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 104:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 104:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 104:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 104:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 104:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 104:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 104:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 104:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 104:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 104:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 104:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 104:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 104:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 104:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 104:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 104:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 104:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 104:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 104:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 104:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 104:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 104:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 104:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 104:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 104:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 104:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 104:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 104:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 104:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 104:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 104:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 104:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 104:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 104:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 104:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 104:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 104:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 104:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 104:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 104:16 = 253:64 ']' | |
+++ name=cciss/c0d1 | |
+++ echo /dev/cciss/c0d1 | |
+++ return 1 | |
++ devname=/dev/cciss/c0d1 | |
+++ get_disk_size 'cciss!c0d1' | |
+++ local 'disk_name=cciss!c0d1' | |
++++ get_block_size 'cciss!c0d1' | |
++++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=286734240 | |
+++ local disk_size=146807930880 | |
+++ echo 146807930880 | |
++ devsize=146807930880 | |
+++ parted -s /dev/cciss/c0d1 print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/cciss/c0d1 146807930880 msdos' | |
++ extract_partitions /dev/cciss/c0d1 | |
++ declare device=/dev/cciss/c0d1 | |
+++ get_sysfs_name /dev/cciss/c0d1 | |
+++ local name=cciss/c0d1 | |
+++ name=cciss/c0d1 | |
+++ [[ -e /sys/block/cciss!c0d1 ]] | |
+++ echo 'cciss!c0d1' | |
+++ return 0 | |
++ declare 'sysfs_name=cciss!c0d1' | |
+++ get_block_size 'cciss!c0d1' | |
+++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 2 -eq 0 ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name 'cciss!c0d1p1' | |
+++ local 'name=cciss!c0d1p1' | |
+++ name='cciss!c0d1p1' | |
+++ [[ -n cciss!c0d1p1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d1p1 ]] | |
+++ name=cciss/c0d1p1 | |
+++ echo /dev/cciss/c0d1p1 | |
+++ return 1 | |
++ partition_name=/dev/cciss/c0d1p1 | |
++ partition_name=cciss/c0d1p1 | |
++ partition_name=cciss/c0d1p1 | |
+++ get_partition_number cciss/c0d1p1 | |
+++ local partition=cciss/c0d1p1 | |
++++ echo cciss/c0d1p1 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=1 | |
+++ '[' 1 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''1'\'' of partition cciss/c0d1p1 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 1 <= 128 )) | |
+++ StopIfError 'Partition cciss/c0d1p1 is numbered '\''1'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 1 | |
++ partition_nr=1 | |
++ partition_prefix=cciss/c0d1p | |
+++ get_disk_size 'cciss!c0d1/cciss!c0d1p1' | |
+++ local 'disk_name=cciss!c0d1/cciss!c0d1p1' | |
++++ get_block_size 'cciss!c0d1' | |
++++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d1/cciss!c0d1p1/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d1/cciss!c0d1p1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=401562 | |
+++ local disk_size=205599744 | |
+++ echo 205599744 | |
++ size=205599744 | |
++ [[ -r /sys/block/cciss!c0d1/cciss!c0d1p1/start ]] | |
++ start_block=64 | |
++ start=32768 | |
++ echo '1 205599744 32768' | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name 'cciss!c0d1p2' | |
+++ local 'name=cciss!c0d1p2' | |
+++ name='cciss!c0d1p2' | |
+++ [[ -n cciss!c0d1p2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss!c0d1p2 ]] | |
+++ name=cciss/c0d1p2 | |
+++ echo /dev/cciss/c0d1p2 | |
+++ return 1 | |
++ partition_name=/dev/cciss/c0d1p2 | |
++ partition_name=cciss/c0d1p2 | |
++ partition_name=cciss/c0d1p2 | |
+++ get_partition_number cciss/c0d1p2 | |
+++ local partition=cciss/c0d1p2 | |
++++ echo cciss/c0d1p2 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=2 | |
+++ '[' 2 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''2'\'' of partition cciss/c0d1p2 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 2 <= 128 )) | |
+++ StopIfError 'Partition cciss/c0d1p2 is numbered '\''2'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 2 | |
++ partition_nr=2 | |
++ partition_prefix=cciss/c0d1p | |
+++ get_disk_size 'cciss!c0d1/cciss!c0d1p2' | |
+++ local 'disk_name=cciss!c0d1/cciss!c0d1p2' | |
++++ get_block_size 'cciss!c0d1' | |
++++ '[' -r '/sys/block/cciss!c0d1/queue/logical_block_size' ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r '/sys/block/cciss!c0d1/cciss!c0d1p2/size' ']' | |
+++ BugIfError 'Could not determine size of disk cciss!c0d1/cciss!c0d1p2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=286332608 | |
+++ local disk_size=146602295296 | |
+++ echo 146602295296 | |
++ size=146602295296 | |
++ [[ -r /sys/block/cciss!c0d1/cciss!c0d1p2/start ]] | |
++ start_block=401632 | |
++ start=205635584 | |
++ echo '2 146602295296 205635584' | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ declare disk_label | |
++ [[ -n y ]] | |
++ parted -m -s /dev/cciss/c0d1 print | |
+++ grep '^/' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 6 | |
++ disk_label=msdos | |
++ cp /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions-data | |
++ declare type | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ declare -i has_logical | |
++ read partition_nr size start junk | |
++ (( 1 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^1 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ (( 2 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^2 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \g\p\t ]] | |
++ declare flags flaglist | |
++ [[ -n y ]] | |
++ read partition_nr size start junk | |
+++ grep '^1:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='boot type=83' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ boot = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=boot, | |
++ for flag in '$flaglist' | |
++ [[ type=83 = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z boot, ]] | |
++ sed -i '/^1 /s/$/ boot/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
+++ grep '^2:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='lvm type=8e' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ lvm = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=lvm, | |
++ for flag in '$flaglist' | |
++ [[ type=8e = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z lvm, ]] | |
++ sed -i '/^2 /s/$/ lvm/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ [[ -n '' ]] | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/cciss/c0d1p1 | |
+++ get_device_name /dev/cciss/c0d1p1 | |
+++ local name=cciss/c0d1p1 | |
+++ name=cciss/c0d1p1 | |
+++ [[ -n cciss/c0d1p1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss/c0d1p1 ]] | |
+++ name=cciss/c0d1p1 | |
+++ echo /dev/cciss/c0d1p1 | |
+++ return 1 | |
++ echo 'part /dev/cciss/c0d1 205599744 32768 primary boot /dev/cciss/c0d1p1' | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/cciss/c0d1p2 | |
+++ get_device_name /dev/cciss/c0d1p2 | |
+++ local name=cciss/c0d1p2 | |
+++ name=cciss/c0d1p2 | |
+++ [[ -n cciss/c0d1p2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/cciss/c0d1p2 ]] | |
+++ name=cciss/c0d1p2 | |
+++ echo /dev/cciss/c0d1p2 | |
+++ return 1 | |
++ echo 'part /dev/cciss/c0d1 146602295296 205635584 primary lvm /dev/cciss/c0d1p2' | |
++ read partition_nr size start type flags junk | |
++ for disk in '/sys/block/*' | |
++ [[ dm-0 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-1 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-10 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-11 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-12 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-13 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-14 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-15 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-16 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-17 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-18 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-19 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-2 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-20 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-21 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-22 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-23 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-24 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-25 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-26 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-27 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-28 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-29 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-3 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-30 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-31 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-32 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-33 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-34 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-35 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-36 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-37 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-38 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-39 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-4 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-40 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-41 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-42 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-43 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-44 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-45 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-46 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-47 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-48 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-49 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-5 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-50 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-51 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-52 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-53 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-54 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-55 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-56 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-57 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-58 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-59 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-6 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-60 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-61 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-62 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-63 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-64 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-65 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-66 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-67 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-68 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-7 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-8 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ dm-9 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ fd0 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop0 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop1 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop2 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop3 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop4 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop5 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop6 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ loop7 = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
++ for disk in '/sys/block/*' | |
++ [[ sda = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sda | |
+++ local name=/sys/block/sda | |
+++ name=sda | |
+++ [[ -n sda ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sda ]] | |
+++ [[ -r /sys/block/sda/dm/name ]] | |
+++ dev_number=8:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:0 = 253:64 ']' | |
+++ name=sda | |
+++ echo /dev/sda | |
+++ return 1 | |
++ devname=/dev/sda | |
+++ get_disk_size sda | |
+++ local disk_name=sda | |
++++ get_block_size sda | |
++++ '[' -r /sys/block/sda/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sda/size ']' | |
+++ BugIfError 'Could not determine size of disk sda, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104857600 | |
+++ local disk_size=53687091200 | |
+++ echo 53687091200 | |
++ devsize=53687091200 | |
+++ parted -s /dev/sda print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sda 53687091200 ' | |
++ extract_partitions /dev/sda | |
++ declare device=/dev/sda | |
+++ get_sysfs_name /dev/sda | |
+++ local name=sda | |
+++ name=sda | |
+++ [[ -e /sys/block/sda ]] | |
+++ echo sda | |
+++ return 0 | |
++ declare sysfs_name=sda | |
+++ get_block_size sda | |
+++ '[' -r /sys/block/sda/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sda != /dev/sda ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sda.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaa = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaa | |
+++ local name=/sys/block/sdaa | |
+++ name=sdaa | |
+++ [[ -n sdaa ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaa ]] | |
+++ [[ -r /sys/block/sdaa/dm/name ]] | |
+++ dev_number=65:160 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:160 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:160 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:160 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:160 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:160 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:160 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:160 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:160 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:160 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:160 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:160 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:160 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:160 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:160 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:160 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:160 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:160 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:160 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:160 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:160 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:160 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:160 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:160 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:160 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:160 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:160 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:160 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:160 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:160 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:160 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:160 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:160 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:160 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:160 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:160 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:160 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:160 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:160 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:160 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:160 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:160 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:160 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:160 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:160 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:160 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:160 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:160 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:160 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:160 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:160 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:160 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:160 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:160 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:160 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:160 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:160 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:160 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:160 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:160 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:160 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:160 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:160 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:160 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:160 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:160 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:160 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:160 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:160 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:160 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:160 = 253:64 ']' | |
+++ name=sdaa | |
+++ echo /dev/sdaa | |
+++ return 1 | |
++ devname=/dev/sdaa | |
+++ get_disk_size sdaa | |
+++ local disk_name=sdaa | |
++++ get_block_size sdaa | |
++++ '[' -r /sys/block/sdaa/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaa/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaa, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=20971200 | |
+++ local disk_size=10737254400 | |
+++ echo 10737254400 | |
++ devsize=10737254400 | |
+++ parted -s /dev/sdaa print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdaa 10737254400 ' | |
++ extract_partitions /dev/sdaa | |
++ declare device=/dev/sdaa | |
+++ get_sysfs_name /dev/sdaa | |
+++ local name=sdaa | |
+++ name=sdaa | |
+++ [[ -e /sys/block/sdaa ]] | |
+++ echo sdaa | |
+++ return 0 | |
++ declare sysfs_name=sdaa | |
+++ get_block_size sdaa | |
+++ '[' -r /sys/block/sdaa/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaa != /dev/sdaa ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaa.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdab = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdab | |
+++ local name=/sys/block/sdab | |
+++ name=sdab | |
+++ [[ -n sdab ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdab ]] | |
+++ [[ -r /sys/block/sdab/dm/name ]] | |
+++ dev_number=65:176 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:176 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:176 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:176 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:176 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:176 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:176 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:176 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:176 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:176 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:176 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:176 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:176 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:176 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:176 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:176 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:176 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:176 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:176 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:176 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:176 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:176 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:176 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:176 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:176 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:176 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:176 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:176 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:176 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:176 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:176 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:176 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:176 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:176 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:176 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:176 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:176 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:176 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:176 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:176 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:176 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:176 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:176 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:176 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:176 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:176 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:176 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:176 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:176 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:176 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:176 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:176 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:176 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:176 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:176 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:176 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:176 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:176 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:176 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:176 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:176 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:176 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:176 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:176 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:176 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:176 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:176 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:176 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:176 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:176 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:176 = 253:64 ']' | |
+++ name=sdab | |
+++ echo /dev/sdab | |
+++ return 1 | |
++ devname=/dev/sdab | |
+++ get_disk_size sdab | |
+++ local disk_name=sdab | |
++++ get_block_size sdab | |
++++ '[' -r /sys/block/sdab/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdab/size ']' | |
+++ BugIfError 'Could not determine size of disk sdab, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485600 | |
+++ local disk_size=5368627200 | |
+++ echo 5368627200 | |
++ devsize=5368627200 | |
+++ parted -s /dev/sdab print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdab 5368627200 ' | |
++ extract_partitions /dev/sdab | |
++ declare device=/dev/sdab | |
+++ get_sysfs_name /dev/sdab | |
+++ local name=sdab | |
+++ name=sdab | |
+++ [[ -e /sys/block/sdab ]] | |
+++ echo sdab | |
+++ return 0 | |
++ declare sysfs_name=sdab | |
+++ get_block_size sdab | |
+++ '[' -r /sys/block/sdab/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdab != /dev/sdab ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdab.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdac = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdac | |
+++ local name=/sys/block/sdac | |
+++ name=sdac | |
+++ [[ -n sdac ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdac ]] | |
+++ [[ -r /sys/block/sdac/dm/name ]] | |
+++ dev_number=65:192 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:192 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:192 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:192 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:192 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:192 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:192 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:192 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:192 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:192 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:192 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:192 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:192 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:192 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:192 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:192 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:192 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:192 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:192 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:192 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:192 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:192 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:192 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:192 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:192 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:192 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:192 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:192 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:192 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:192 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:192 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:192 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:192 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:192 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:192 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:192 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:192 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:192 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:192 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:192 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:192 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:192 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:192 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:192 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:192 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:192 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:192 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:192 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:192 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:192 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:192 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:192 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:192 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:192 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:192 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:192 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:192 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:192 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:192 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:192 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:192 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:192 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:192 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:192 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:192 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:192 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:192 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:192 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:192 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:192 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:192 = 253:64 ']' | |
+++ name=sdac | |
+++ echo /dev/sdac | |
+++ return 1 | |
++ devname=/dev/sdac | |
+++ get_disk_size sdac | |
+++ local disk_name=sdac | |
++++ get_block_size sdac | |
++++ '[' -r /sys/block/sdac/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdac/size ']' | |
+++ BugIfError 'Could not determine size of disk sdac, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485600 | |
+++ local disk_size=5368627200 | |
+++ echo 5368627200 | |
++ devsize=5368627200 | |
+++ parted -s /dev/sdac print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdac 5368627200 ' | |
++ extract_partitions /dev/sdac | |
++ declare device=/dev/sdac | |
+++ get_sysfs_name /dev/sdac | |
+++ local name=sdac | |
+++ name=sdac | |
+++ [[ -e /sys/block/sdac ]] | |
+++ echo sdac | |
+++ return 0 | |
++ declare sysfs_name=sdac | |
+++ get_block_size sdac | |
+++ '[' -r /sys/block/sdac/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdac != /dev/sdac ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdac.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdad = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdad | |
+++ local name=/sys/block/sdad | |
+++ name=sdad | |
+++ [[ -n sdad ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdad ]] | |
+++ [[ -r /sys/block/sdad/dm/name ]] | |
+++ dev_number=65:208 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:208 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:208 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:208 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:208 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:208 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:208 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:208 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:208 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:208 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:208 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:208 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:208 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:208 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:208 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:208 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:208 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:208 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:208 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:208 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:208 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:208 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:208 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:208 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:208 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:208 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:208 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:208 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:208 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:208 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:208 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:208 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:208 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:208 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:208 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:208 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:208 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:208 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:208 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:208 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:208 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:208 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:208 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:208 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:208 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:208 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:208 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:208 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:208 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:208 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:208 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:208 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:208 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:208 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:208 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:208 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:208 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:208 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:208 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:208 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:208 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:208 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:208 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:208 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:208 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:208 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:208 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:208 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:208 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:208 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:208 = 253:64 ']' | |
+++ name=sdad | |
+++ echo /dev/sdad | |
+++ return 1 | |
++ devname=/dev/sdad | |
+++ get_disk_size sdad | |
+++ local disk_name=sdad | |
++++ get_block_size sdad | |
++++ '[' -r /sys/block/sdad/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdad/size ']' | |
+++ BugIfError 'Could not determine size of disk sdad, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdad print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdad 1073725440 ' | |
++ extract_partitions /dev/sdad | |
++ declare device=/dev/sdad | |
+++ get_sysfs_name /dev/sdad | |
+++ local name=sdad | |
+++ name=sdad | |
+++ [[ -e /sys/block/sdad ]] | |
+++ echo sdad | |
+++ return 0 | |
++ declare sysfs_name=sdad | |
+++ get_block_size sdad | |
+++ '[' -r /sys/block/sdad/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdad != /dev/sdad ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdad.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdae = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdae | |
+++ local name=/sys/block/sdae | |
+++ name=sdae | |
+++ [[ -n sdae ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdae ]] | |
+++ [[ -r /sys/block/sdae/dm/name ]] | |
+++ dev_number=65:224 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:224 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:224 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:224 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:224 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:224 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:224 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:224 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:224 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:224 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:224 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:224 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:224 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:224 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:224 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:224 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:224 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:224 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:224 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:224 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:224 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:224 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:224 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:224 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:224 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:224 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:224 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:224 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:224 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:224 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:224 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:224 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:224 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:224 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:224 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:224 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:224 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:224 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:224 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:224 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:224 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:224 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:224 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:224 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:224 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:224 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:224 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:224 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:224 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:224 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:224 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:224 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:224 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:224 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:224 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:224 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:224 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:224 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:224 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:224 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:224 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:224 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:224 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:224 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:224 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:224 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:224 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:224 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:224 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:224 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:224 = 253:64 ']' | |
+++ name=sdae | |
+++ echo /dev/sdae | |
+++ return 1 | |
++ devname=/dev/sdae | |
+++ get_disk_size sdae | |
+++ local disk_name=sdae | |
++++ get_block_size sdae | |
++++ '[' -r /sys/block/sdae/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdae/size ']' | |
+++ BugIfError 'Could not determine size of disk sdae, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdae print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdae 1073725440 ' | |
++ extract_partitions /dev/sdae | |
++ declare device=/dev/sdae | |
+++ get_sysfs_name /dev/sdae | |
+++ local name=sdae | |
+++ name=sdae | |
+++ [[ -e /sys/block/sdae ]] | |
+++ echo sdae | |
+++ return 0 | |
++ declare sysfs_name=sdae | |
+++ get_block_size sdae | |
+++ '[' -r /sys/block/sdae/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdae != /dev/sdae ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdae.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaf = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaf | |
+++ local name=/sys/block/sdaf | |
+++ name=sdaf | |
+++ [[ -n sdaf ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaf ]] | |
+++ [[ -r /sys/block/sdaf/dm/name ]] | |
+++ dev_number=65:240 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:240 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:240 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:240 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:240 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:240 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:240 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:240 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:240 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:240 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:240 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:240 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:240 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:240 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:240 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:240 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:240 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:240 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:240 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:240 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:240 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:240 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:240 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:240 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:240 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:240 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:240 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:240 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:240 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:240 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:240 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:240 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:240 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:240 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:240 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:240 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:240 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:240 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:240 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:240 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:240 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:240 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:240 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:240 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:240 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:240 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:240 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:240 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:240 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:240 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:240 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:240 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:240 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:240 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:240 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:240 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:240 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:240 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:240 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:240 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:240 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:240 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:240 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:240 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:240 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:240 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:240 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:240 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:240 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:240 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:240 = 253:64 ']' | |
+++ name=sdaf | |
+++ echo /dev/sdaf | |
+++ return 1 | |
++ devname=/dev/sdaf | |
+++ get_disk_size sdaf | |
+++ local disk_name=sdaf | |
++++ get_block_size sdaf | |
++++ '[' -r /sys/block/sdaf/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaf/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaf, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdaf print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdaf 1073725440 ' | |
++ extract_partitions /dev/sdaf | |
++ declare device=/dev/sdaf | |
+++ get_sysfs_name /dev/sdaf | |
+++ local name=sdaf | |
+++ name=sdaf | |
+++ [[ -e /sys/block/sdaf ]] | |
+++ echo sdaf | |
+++ return 0 | |
++ declare sysfs_name=sdaf | |
+++ get_block_size sdaf | |
+++ '[' -r /sys/block/sdaf/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaf != /dev/sdaf ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaf.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdag = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdag | |
+++ local name=/sys/block/sdag | |
+++ name=sdag | |
+++ [[ -n sdag ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdag ]] | |
+++ [[ -r /sys/block/sdag/dm/name ]] | |
+++ dev_number=66:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:0 = 253:64 ']' | |
+++ name=sdag | |
+++ echo /dev/sdag | |
+++ return 1 | |
++ devname=/dev/sdag | |
+++ get_disk_size sdag | |
+++ local disk_name=sdag | |
++++ get_block_size sdag | |
++++ '[' -r /sys/block/sdag/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdag/size ']' | |
+++ BugIfError 'Could not determine size of disk sdag, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdag print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdag 1073725440 ' | |
++ extract_partitions /dev/sdag | |
++ declare device=/dev/sdag | |
+++ get_sysfs_name /dev/sdag | |
+++ local name=sdag | |
+++ name=sdag | |
+++ [[ -e /sys/block/sdag ]] | |
+++ echo sdag | |
+++ return 0 | |
++ declare sysfs_name=sdag | |
+++ get_block_size sdag | |
+++ '[' -r /sys/block/sdag/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdag != /dev/sdag ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdag.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdah = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdah | |
+++ local name=/sys/block/sdah | |
+++ name=sdah | |
+++ [[ -n sdah ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdah ]] | |
+++ [[ -r /sys/block/sdah/dm/name ]] | |
+++ dev_number=66:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:16 = 253:64 ']' | |
+++ name=sdah | |
+++ echo /dev/sdah | |
+++ return 1 | |
++ devname=/dev/sdah | |
+++ get_disk_size sdah | |
+++ local disk_name=sdah | |
++++ get_block_size sdah | |
++++ '[' -r /sys/block/sdah/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdah/size ']' | |
+++ BugIfError 'Could not determine size of disk sdah, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=204000 | |
+++ local disk_size=104448000 | |
+++ echo 104448000 | |
++ devsize=104448000 | |
+++ parted -s /dev/sdah print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdah 104448000 ' | |
++ extract_partitions /dev/sdah | |
++ declare device=/dev/sdah | |
+++ get_sysfs_name /dev/sdah | |
+++ local name=sdah | |
+++ name=sdah | |
+++ [[ -e /sys/block/sdah ]] | |
+++ echo sdah | |
+++ return 0 | |
++ declare sysfs_name=sdah | |
+++ get_block_size sdah | |
+++ '[' -r /sys/block/sdah/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdah != /dev/sdah ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdah.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdai = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdai | |
+++ local name=/sys/block/sdai | |
+++ name=sdai | |
+++ [[ -n sdai ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdai ]] | |
+++ [[ -r /sys/block/sdai/dm/name ]] | |
+++ dev_number=66:32 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:32 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:32 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:32 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:32 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:32 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:32 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:32 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:32 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:32 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:32 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:32 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:32 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:32 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:32 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:32 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:32 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:32 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:32 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:32 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:32 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:32 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:32 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:32 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:32 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:32 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:32 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:32 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:32 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:32 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:32 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:32 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:32 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:32 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:32 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:32 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:32 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:32 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:32 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:32 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:32 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:32 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:32 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:32 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:32 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:32 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:32 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:32 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:32 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:32 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:32 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:32 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:32 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:32 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:32 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:32 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:32 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:32 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:32 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:32 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:32 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:32 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:32 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:32 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:32 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:32 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:32 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:32 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:32 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:32 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:32 = 253:64 ']' | |
+++ name=sdai | |
+++ echo /dev/sdai | |
+++ return 1 | |
++ devname=/dev/sdai | |
+++ get_disk_size sdai | |
+++ local disk_name=sdai | |
++++ get_block_size sdai | |
++++ '[' -r /sys/block/sdai/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdai/size ']' | |
+++ BugIfError 'Could not determine size of disk sdai, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104857600 | |
+++ local disk_size=53687091200 | |
+++ echo 53687091200 | |
++ devsize=53687091200 | |
+++ parted -s /dev/sdai print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdai 53687091200 ' | |
++ extract_partitions /dev/sdai | |
++ declare device=/dev/sdai | |
+++ get_sysfs_name /dev/sdai | |
+++ local name=sdai | |
+++ name=sdai | |
+++ [[ -e /sys/block/sdai ]] | |
+++ echo sdai | |
+++ return 0 | |
++ declare sysfs_name=sdai | |
+++ get_block_size sdai | |
+++ '[' -r /sys/block/sdai/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdai != /dev/sdai ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdai.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaj = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaj | |
+++ local name=/sys/block/sdaj | |
+++ name=sdaj | |
+++ [[ -n sdaj ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaj ]] | |
+++ [[ -r /sys/block/sdaj/dm/name ]] | |
+++ dev_number=66:48 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:48 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:48 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:48 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:48 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:48 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:48 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:48 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:48 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:48 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:48 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:48 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:48 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:48 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:48 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:48 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:48 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:48 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:48 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:48 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:48 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:48 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:48 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:48 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:48 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:48 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:48 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:48 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:48 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:48 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:48 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:48 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:48 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:48 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:48 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:48 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:48 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:48 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:48 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:48 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:48 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:48 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:48 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:48 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:48 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:48 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:48 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:48 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:48 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:48 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:48 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:48 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:48 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:48 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:48 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:48 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:48 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:48 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:48 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:48 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:48 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:48 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:48 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:48 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:48 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:48 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:48 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:48 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:48 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:48 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:48 = 253:64 ']' | |
+++ name=sdaj | |
+++ echo /dev/sdaj | |
+++ return 1 | |
++ devname=/dev/sdaj | |
+++ get_disk_size sdaj | |
+++ local disk_name=sdaj | |
++++ get_block_size sdaj | |
++++ '[' -r /sys/block/sdaj/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaj/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaj, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104857600 | |
+++ local disk_size=53687091200 | |
+++ echo 53687091200 | |
++ devsize=53687091200 | |
+++ parted -s /dev/sdaj print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ disktype= | |
++ echo 'disk /dev/sdaj 53687091200 ' | |
++ extract_partitions /dev/sdaj | |
++ declare device=/dev/sdaj | |
+++ get_sysfs_name /dev/sdaj | |
+++ local name=sdaj | |
+++ name=sdaj | |
+++ [[ -e /sys/block/sdaj ]] | |
+++ echo sdaj | |
+++ return 0 | |
++ declare sysfs_name=sdaj | |
+++ get_block_size sdaj | |
+++ '[' -r /sys/block/sdaj/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaj != /dev/sdaj ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaj.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdak = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdak | |
+++ local name=/sys/block/sdak | |
+++ name=sdak | |
+++ [[ -n sdak ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdak ]] | |
+++ [[ -r /sys/block/sdak/dm/name ]] | |
+++ dev_number=66:64 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:64 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:64 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:64 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:64 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:64 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:64 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:64 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:64 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:64 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:64 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:64 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:64 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:64 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:64 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:64 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:64 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:64 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:64 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:64 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:64 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:64 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:64 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:64 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:64 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:64 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:64 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:64 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:64 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:64 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:64 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:64 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:64 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:64 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:64 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:64 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:64 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:64 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:64 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:64 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:64 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:64 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:64 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:64 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:64 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:64 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:64 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:64 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:64 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:64 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:64 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:64 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:64 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:64 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:64 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:64 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:64 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:64 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:64 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:64 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:64 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:64 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:64 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:64 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:64 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:64 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:64 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:64 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:64 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:64 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:64 = 253:64 ']' | |
+++ name=sdak | |
+++ echo /dev/sdak | |
+++ return 1 | |
++ devname=/dev/sdak | |
+++ get_disk_size sdak | |
+++ local disk_name=sdak | |
++++ get_block_size sdak | |
++++ '[' -r /sys/block/sdak/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdak/size ']' | |
+++ BugIfError 'Could not determine size of disk sdak, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdak print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdak 16106127360 ' | |
++ extract_partitions /dev/sdak | |
++ declare device=/dev/sdak | |
+++ get_sysfs_name /dev/sdak | |
+++ local name=sdak | |
+++ name=sdak | |
+++ [[ -e /sys/block/sdak ]] | |
+++ echo sdak | |
+++ return 0 | |
++ declare sysfs_name=sdak | |
+++ get_block_size sdak | |
+++ '[' -r /sys/block/sdak/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdak != /dev/sdak ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdak.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdal = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdal | |
+++ local name=/sys/block/sdal | |
+++ name=sdal | |
+++ [[ -n sdal ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdal ]] | |
+++ [[ -r /sys/block/sdal/dm/name ]] | |
+++ dev_number=66:80 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:80 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:80 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:80 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:80 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:80 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:80 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:80 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:80 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:80 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:80 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:80 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:80 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:80 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:80 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:80 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:80 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:80 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:80 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:80 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:80 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:80 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:80 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:80 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:80 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:80 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:80 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:80 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:80 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:80 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:80 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:80 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:80 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:80 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:80 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:80 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:80 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:80 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:80 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:80 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:80 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:80 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:80 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:80 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:80 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:80 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:80 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:80 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:80 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:80 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:80 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:80 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:80 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:80 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:80 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:80 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:80 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:80 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:80 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:80 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:80 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:80 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:80 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:80 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:80 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:80 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:80 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:80 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:80 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:80 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:80 = 253:64 ']' | |
+++ name=sdal | |
+++ echo /dev/sdal | |
+++ return 1 | |
++ devname=/dev/sdal | |
+++ get_disk_size sdal | |
+++ local disk_name=sdal | |
++++ get_block_size sdal | |
++++ '[' -r /sys/block/sdal/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdal/size ']' | |
+++ BugIfError 'Could not determine size of disk sdal, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdal print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdal 16106127360 ' | |
++ extract_partitions /dev/sdal | |
++ declare device=/dev/sdal | |
+++ get_sysfs_name /dev/sdal | |
+++ local name=sdal | |
+++ name=sdal | |
+++ [[ -e /sys/block/sdal ]] | |
+++ echo sdal | |
+++ return 0 | |
++ declare sysfs_name=sdal | |
+++ get_block_size sdal | |
+++ '[' -r /sys/block/sdal/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdal != /dev/sdal ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdal.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdam = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdam | |
+++ local name=/sys/block/sdam | |
+++ name=sdam | |
+++ [[ -n sdam ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdam ]] | |
+++ [[ -r /sys/block/sdam/dm/name ]] | |
+++ dev_number=66:96 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:96 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:96 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:96 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:96 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:96 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:96 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:96 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:96 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:96 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:96 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:96 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:96 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:96 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:96 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:96 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:96 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:96 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:96 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:96 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:96 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:96 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:96 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:96 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:96 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:96 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:96 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:96 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:96 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:96 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:96 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:96 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:96 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:96 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:96 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:96 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:96 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:96 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:96 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:96 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:96 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:96 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:96 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:96 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:96 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:96 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:96 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:96 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:96 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:96 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:96 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:96 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:96 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:96 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:96 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:96 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:96 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:96 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:96 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:96 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:96 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:96 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:96 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:96 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:96 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:96 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:96 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:96 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:96 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:96 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:96 = 253:64 ']' | |
+++ name=sdam | |
+++ echo /dev/sdam | |
+++ return 1 | |
++ devname=/dev/sdam | |
+++ get_disk_size sdam | |
+++ local disk_name=sdam | |
++++ get_block_size sdam | |
++++ '[' -r /sys/block/sdam/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdam/size ']' | |
+++ BugIfError 'Could not determine size of disk sdam, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485760 | |
+++ local disk_size=5368709120 | |
+++ echo 5368709120 | |
++ devsize=5368709120 | |
+++ parted -s /dev/sdam print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdam 5368709120 ' | |
++ extract_partitions /dev/sdam | |
++ declare device=/dev/sdam | |
+++ get_sysfs_name /dev/sdam | |
+++ local name=sdam | |
+++ name=sdam | |
+++ [[ -e /sys/block/sdam ]] | |
+++ echo sdam | |
+++ return 0 | |
++ declare sysfs_name=sdam | |
+++ get_block_size sdam | |
+++ '[' -r /sys/block/sdam/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdam != /dev/sdam ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdam.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdan = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdan | |
+++ local name=/sys/block/sdan | |
+++ name=sdan | |
+++ [[ -n sdan ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdan ]] | |
+++ [[ -r /sys/block/sdan/dm/name ]] | |
+++ dev_number=66:112 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:112 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:112 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:112 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:112 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:112 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:112 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:112 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:112 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:112 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:112 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:112 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:112 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:112 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:112 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:112 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:112 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:112 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:112 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:112 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:112 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:112 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:112 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:112 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:112 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:112 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:112 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:112 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:112 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:112 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:112 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:112 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:112 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:112 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:112 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:112 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:112 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:112 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:112 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:112 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:112 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:112 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:112 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:112 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:112 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:112 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:112 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:112 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:112 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:112 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:112 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:112 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:112 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:112 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:112 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:112 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:112 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:112 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:112 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:112 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:112 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:112 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:112 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:112 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:112 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:112 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:112 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:112 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:112 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:112 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:112 = 253:64 ']' | |
+++ name=sdan | |
+++ echo /dev/sdan | |
+++ return 1 | |
++ devname=/dev/sdan | |
+++ get_disk_size sdan | |
+++ local disk_name=sdan | |
++++ get_block_size sdan | |
++++ '[' -r /sys/block/sdan/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdan/size ']' | |
+++ BugIfError 'Could not determine size of disk sdan, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485760 | |
+++ local disk_size=5368709120 | |
+++ echo 5368709120 | |
++ devsize=5368709120 | |
+++ parted -s /dev/sdan print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdan 5368709120 ' | |
++ extract_partitions /dev/sdan | |
++ declare device=/dev/sdan | |
+++ get_sysfs_name /dev/sdan | |
+++ local name=sdan | |
+++ name=sdan | |
+++ [[ -e /sys/block/sdan ]] | |
+++ echo sdan | |
+++ return 0 | |
++ declare sysfs_name=sdan | |
+++ get_block_size sdan | |
+++ '[' -r /sys/block/sdan/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdan != /dev/sdan ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdan.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdao = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdao | |
+++ local name=/sys/block/sdao | |
+++ name=sdao | |
+++ [[ -n sdao ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdao ]] | |
+++ [[ -r /sys/block/sdao/dm/name ]] | |
+++ dev_number=66:128 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:128 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:128 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:128 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:128 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:128 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:128 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:128 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:128 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:128 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:128 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:128 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:128 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:128 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:128 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:128 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:128 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:128 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:128 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:128 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:128 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:128 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:128 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:128 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:128 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:128 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:128 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:128 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:128 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:128 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:128 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:128 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:128 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:128 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:128 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:128 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:128 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:128 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:128 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:128 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:128 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:128 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:128 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:128 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:128 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:128 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:128 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:128 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:128 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:128 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:128 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:128 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:128 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:128 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:128 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:128 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:128 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:128 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:128 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:128 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:128 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:128 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:128 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:128 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:128 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:128 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:128 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:128 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:128 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:128 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:128 = 253:64 ']' | |
+++ name=sdao | |
+++ echo /dev/sdao | |
+++ return 1 | |
++ devname=/dev/sdao | |
+++ get_disk_size sdao | |
+++ local disk_name=sdao | |
++++ get_block_size sdao | |
++++ '[' -r /sys/block/sdao/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdao/size ']' | |
+++ BugIfError 'Could not determine size of disk sdao, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdao print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdao 1073741824 ' | |
++ extract_partitions /dev/sdao | |
++ declare device=/dev/sdao | |
+++ get_sysfs_name /dev/sdao | |
+++ local name=sdao | |
+++ name=sdao | |
+++ [[ -e /sys/block/sdao ]] | |
+++ echo sdao | |
+++ return 0 | |
++ declare sysfs_name=sdao | |
+++ get_block_size sdao | |
+++ '[' -r /sys/block/sdao/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdao != /dev/sdao ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdao.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdap = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdap | |
+++ local name=/sys/block/sdap | |
+++ name=sdap | |
+++ [[ -n sdap ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdap ]] | |
+++ [[ -r /sys/block/sdap/dm/name ]] | |
+++ dev_number=66:144 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:144 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:144 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:144 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:144 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:144 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:144 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:144 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:144 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:144 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:144 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:144 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:144 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:144 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:144 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:144 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:144 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:144 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:144 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:144 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:144 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:144 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:144 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:144 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:144 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:144 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:144 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:144 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:144 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:144 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:144 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:144 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:144 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:144 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:144 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:144 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:144 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:144 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:144 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:144 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:144 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:144 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:144 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:144 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:144 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:144 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:144 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:144 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:144 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:144 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:144 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:144 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:144 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:144 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:144 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:144 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:144 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:144 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:144 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:144 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:144 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:144 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:144 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:144 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:144 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:144 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:144 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:144 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:144 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:144 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:144 = 253:64 ']' | |
+++ name=sdap | |
+++ echo /dev/sdap | |
+++ return 1 | |
++ devname=/dev/sdap | |
+++ get_disk_size sdap | |
+++ local disk_name=sdap | |
++++ get_block_size sdap | |
++++ '[' -r /sys/block/sdap/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdap/size ']' | |
+++ BugIfError 'Could not determine size of disk sdap, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdap print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdap 1073741824 ' | |
++ extract_partitions /dev/sdap | |
++ declare device=/dev/sdap | |
+++ get_sysfs_name /dev/sdap | |
+++ local name=sdap | |
+++ name=sdap | |
+++ [[ -e /sys/block/sdap ]] | |
+++ echo sdap | |
+++ return 0 | |
++ declare sysfs_name=sdap | |
+++ get_block_size sdap | |
+++ '[' -r /sys/block/sdap/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdap != /dev/sdap ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdap.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaq = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaq | |
+++ local name=/sys/block/sdaq | |
+++ name=sdaq | |
+++ [[ -n sdaq ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaq ]] | |
+++ [[ -r /sys/block/sdaq/dm/name ]] | |
+++ dev_number=66:160 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:160 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:160 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:160 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:160 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:160 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:160 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:160 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:160 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:160 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:160 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:160 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:160 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:160 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:160 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:160 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:160 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:160 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:160 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:160 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:160 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:160 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:160 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:160 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:160 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:160 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:160 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:160 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:160 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:160 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:160 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:160 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:160 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:160 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:160 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:160 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:160 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:160 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:160 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:160 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:160 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:160 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:160 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:160 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:160 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:160 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:160 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:160 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:160 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:160 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:160 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:160 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:160 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:160 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:160 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:160 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:160 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:160 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:160 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:160 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:160 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:160 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:160 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:160 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:160 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:160 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:160 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:160 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:160 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:160 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:160 = 253:64 ']' | |
+++ name=sdaq | |
+++ echo /dev/sdaq | |
+++ return 1 | |
++ devname=/dev/sdaq | |
+++ get_disk_size sdaq | |
+++ local disk_name=sdaq | |
++++ get_block_size sdaq | |
++++ '[' -r /sys/block/sdaq/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaq/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaq, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdaq print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdaq 1073741824 ' | |
++ extract_partitions /dev/sdaq | |
++ declare device=/dev/sdaq | |
+++ get_sysfs_name /dev/sdaq | |
+++ local name=sdaq | |
+++ name=sdaq | |
+++ [[ -e /sys/block/sdaq ]] | |
+++ echo sdaq | |
+++ return 0 | |
++ declare sysfs_name=sdaq | |
+++ get_block_size sdaq | |
+++ '[' -r /sys/block/sdaq/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaq != /dev/sdaq ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaq.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdar = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdar | |
+++ local name=/sys/block/sdar | |
+++ name=sdar | |
+++ [[ -n sdar ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdar ]] | |
+++ [[ -r /sys/block/sdar/dm/name ]] | |
+++ dev_number=66:176 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:176 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:176 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:176 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:176 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:176 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:176 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:176 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:176 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:176 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:176 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:176 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:176 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:176 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:176 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:176 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:176 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:176 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:176 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:176 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:176 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:176 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:176 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:176 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:176 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:176 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:176 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:176 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:176 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:176 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:176 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:176 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:176 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:176 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:176 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:176 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:176 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:176 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:176 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:176 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:176 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:176 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:176 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:176 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:176 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:176 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:176 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:176 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:176 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:176 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:176 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:176 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:176 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:176 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:176 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:176 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:176 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:176 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:176 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:176 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:176 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:176 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:176 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:176 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:176 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:176 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:176 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:176 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:176 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:176 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:176 = 253:64 ']' | |
+++ name=sdar | |
+++ echo /dev/sdar | |
+++ return 1 | |
++ devname=/dev/sdar | |
+++ get_disk_size sdar | |
+++ local disk_name=sdar | |
++++ get_block_size sdar | |
++++ '[' -r /sys/block/sdar/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdar/size ']' | |
+++ BugIfError 'Could not determine size of disk sdar, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdar print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ disktype= | |
++ echo 'disk /dev/sdar 1073741824 ' | |
++ extract_partitions /dev/sdar | |
++ declare device=/dev/sdar | |
+++ get_sysfs_name /dev/sdar | |
+++ local name=sdar | |
+++ name=sdar | |
+++ [[ -e /sys/block/sdar ]] | |
+++ echo sdar | |
+++ return 0 | |
++ declare sysfs_name=sdar | |
+++ get_block_size sdar | |
+++ '[' -r /sys/block/sdar/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdar != /dev/sdar ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdar.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdas = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdas | |
+++ local name=/sys/block/sdas | |
+++ name=sdas | |
+++ [[ -n sdas ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdas ]] | |
+++ [[ -r /sys/block/sdas/dm/name ]] | |
+++ dev_number=66:192 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:192 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:192 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:192 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:192 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:192 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:192 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:192 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:192 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:192 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:192 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:192 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:192 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:192 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:192 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:192 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:192 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:192 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:192 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:192 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:192 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:192 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:192 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:192 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:192 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:192 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:192 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:192 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:192 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:192 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:192 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:192 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:192 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:192 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:192 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:192 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:192 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:192 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:192 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:192 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:192 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:192 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:192 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:192 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:192 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:192 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:192 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:192 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:192 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:192 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:192 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:192 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:192 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:192 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:192 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:192 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:192 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:192 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:192 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:192 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:192 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:192 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:192 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:192 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:192 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:192 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:192 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:192 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:192 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:192 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:192 = 253:64 ']' | |
+++ name=sdas | |
+++ echo /dev/sdas | |
+++ return 1 | |
++ devname=/dev/sdas | |
+++ get_disk_size sdas | |
+++ local disk_name=sdas | |
++++ get_block_size sdas | |
++++ '[' -r /sys/block/sdas/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdas/size ']' | |
+++ BugIfError 'Could not determine size of disk sdas, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=204800 | |
+++ local disk_size=104857600 | |
+++ echo 104857600 | |
++ devsize=104857600 | |
+++ parted -s /dev/sdas print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdas 104857600 ' | |
++ extract_partitions /dev/sdas | |
++ declare device=/dev/sdas | |
+++ get_sysfs_name /dev/sdas | |
+++ local name=sdas | |
+++ name=sdas | |
+++ [[ -e /sys/block/sdas ]] | |
+++ echo sdas | |
+++ return 0 | |
++ declare sysfs_name=sdas | |
+++ get_block_size sdas | |
+++ '[' -r /sys/block/sdas/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdas != /dev/sdas ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdas.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdat = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdat | |
+++ local name=/sys/block/sdat | |
+++ name=sdat | |
+++ [[ -n sdat ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdat ]] | |
+++ [[ -r /sys/block/sdat/dm/name ]] | |
+++ dev_number=66:208 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:208 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:208 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:208 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:208 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:208 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:208 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:208 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:208 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:208 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:208 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:208 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:208 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:208 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:208 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:208 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:208 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:208 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:208 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:208 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:208 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:208 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:208 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:208 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:208 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:208 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:208 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:208 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:208 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:208 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:208 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:208 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:208 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:208 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:208 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:208 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:208 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:208 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:208 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:208 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:208 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:208 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:208 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:208 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:208 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:208 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:208 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:208 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:208 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:208 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:208 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:208 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:208 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:208 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:208 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:208 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:208 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:208 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:208 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:208 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:208 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:208 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:208 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:208 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:208 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:208 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:208 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:208 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:208 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:208 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:208 = 253:64 ']' | |
+++ name=sdat | |
+++ echo /dev/sdat | |
+++ return 1 | |
++ devname=/dev/sdat | |
+++ get_disk_size sdat | |
+++ local disk_name=sdat | |
++++ get_block_size sdat | |
++++ '[' -r /sys/block/sdat/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdat/size ']' | |
+++ BugIfError 'Could not determine size of disk sdat, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=115343360 | |
+++ local disk_size=59055800320 | |
+++ echo 59055800320 | |
++ devsize=59055800320 | |
+++ parted -s /dev/sdat print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdat 59055800320 ' | |
++ extract_partitions /dev/sdat | |
++ declare device=/dev/sdat | |
+++ get_sysfs_name /dev/sdat | |
+++ local name=sdat | |
+++ name=sdat | |
+++ [[ -e /sys/block/sdat ]] | |
+++ echo sdat | |
+++ return 0 | |
++ declare sysfs_name=sdat | |
+++ get_block_size sdat | |
+++ '[' -r /sys/block/sdat/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdat != /dev/sdat ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdat.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdau = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdau | |
+++ local name=/sys/block/sdau | |
+++ name=sdau | |
+++ [[ -n sdau ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdau ]] | |
+++ [[ -r /sys/block/sdau/dm/name ]] | |
+++ dev_number=66:224 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:224 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:224 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:224 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:224 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:224 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:224 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:224 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:224 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:224 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:224 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:224 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:224 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:224 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:224 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:224 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:224 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:224 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:224 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:224 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:224 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:224 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:224 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:224 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:224 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:224 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:224 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:224 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:224 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:224 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:224 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:224 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:224 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:224 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:224 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:224 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:224 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:224 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:224 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:224 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:224 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:224 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:224 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:224 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:224 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:224 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:224 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:224 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:224 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:224 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:224 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:224 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:224 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:224 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:224 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:224 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:224 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:224 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:224 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:224 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:224 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:224 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:224 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:224 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:224 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:224 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:224 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:224 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:224 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:224 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:224 = 253:64 ']' | |
+++ name=sdau | |
+++ echo /dev/sdau | |
+++ return 1 | |
++ devname=/dev/sdau | |
+++ get_disk_size sdau | |
+++ local disk_name=sdau | |
++++ get_block_size sdau | |
++++ '[' -r /sys/block/sdau/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdau/size ']' | |
+++ BugIfError 'Could not determine size of disk sdau, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=115343360 | |
+++ local disk_size=59055800320 | |
+++ echo 59055800320 | |
++ devsize=59055800320 | |
+++ parted -s /dev/sdau print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdau 59055800320 ' | |
++ extract_partitions /dev/sdau | |
++ declare device=/dev/sdau | |
+++ get_sysfs_name /dev/sdau | |
+++ local name=sdau | |
+++ name=sdau | |
+++ [[ -e /sys/block/sdau ]] | |
+++ echo sdau | |
+++ return 0 | |
++ declare sysfs_name=sdau | |
+++ get_block_size sdau | |
+++ '[' -r /sys/block/sdau/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdau != /dev/sdau ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdau.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdav = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdav | |
+++ local name=/sys/block/sdav | |
+++ name=sdav | |
+++ [[ -n sdav ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdav ]] | |
+++ [[ -r /sys/block/sdav/dm/name ]] | |
+++ dev_number=66:240 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 66:240 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 66:240 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 66:240 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 66:240 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 66:240 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 66:240 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 66:240 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 66:240 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 66:240 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 66:240 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 66:240 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 66:240 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 66:240 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 66:240 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 66:240 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 66:240 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 66:240 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 66:240 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 66:240 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 66:240 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 66:240 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 66:240 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 66:240 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 66:240 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 66:240 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 66:240 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 66:240 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 66:240 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 66:240 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 66:240 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 66:240 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 66:240 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 66:240 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 66:240 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 66:240 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 66:240 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 66:240 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 66:240 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 66:240 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 66:240 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 66:240 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 66:240 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 66:240 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 66:240 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 66:240 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 66:240 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 66:240 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 66:240 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 66:240 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 66:240 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 66:240 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 66:240 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 66:240 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 66:240 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 66:240 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 66:240 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 66:240 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 66:240 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 66:240 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 66:240 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 66:240 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 66:240 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 66:240 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 66:240 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 66:240 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 66:240 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 66:240 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 66:240 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 66:240 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 66:240 = 253:64 ']' | |
+++ name=sdav | |
+++ echo /dev/sdav | |
+++ return 1 | |
++ devname=/dev/sdav | |
+++ get_disk_size sdav | |
+++ local disk_name=sdav | |
++++ get_block_size sdav | |
++++ '[' -r /sys/block/sdav/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdav/size ']' | |
+++ BugIfError 'Could not determine size of disk sdav, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=14680064 | |
+++ local disk_size=7516192768 | |
+++ echo 7516192768 | |
++ devsize=7516192768 | |
+++ parted -s /dev/sdav print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdav 7516192768 ' | |
++ extract_partitions /dev/sdav | |
++ declare device=/dev/sdav | |
+++ get_sysfs_name /dev/sdav | |
+++ local name=sdav | |
+++ name=sdav | |
+++ [[ -e /sys/block/sdav ]] | |
+++ echo sdav | |
+++ return 0 | |
++ declare sysfs_name=sdav | |
+++ get_block_size sdav | |
+++ '[' -r /sys/block/sdav/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdav != /dev/sdav ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdav.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaw = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaw | |
+++ local name=/sys/block/sdaw | |
+++ name=sdaw | |
+++ [[ -n sdaw ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaw ]] | |
+++ [[ -r /sys/block/sdaw/dm/name ]] | |
+++ dev_number=67:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:0 = 253:64 ']' | |
+++ name=sdaw | |
+++ echo /dev/sdaw | |
+++ return 1 | |
++ devname=/dev/sdaw | |
+++ get_disk_size sdaw | |
+++ local disk_name=sdaw | |
++++ get_block_size sdaw | |
++++ '[' -r /sys/block/sdaw/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaw/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaw, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=14680064 | |
+++ local disk_size=7516192768 | |
+++ echo 7516192768 | |
++ devsize=7516192768 | |
+++ parted -s /dev/sdaw print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdaw 7516192768 ' | |
++ extract_partitions /dev/sdaw | |
++ declare device=/dev/sdaw | |
+++ get_sysfs_name /dev/sdaw | |
+++ local name=sdaw | |
+++ name=sdaw | |
+++ [[ -e /sys/block/sdaw ]] | |
+++ echo sdaw | |
+++ return 0 | |
++ declare sysfs_name=sdaw | |
+++ get_block_size sdaw | |
+++ '[' -r /sys/block/sdaw/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaw != /dev/sdaw ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaw.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdax = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdax | |
+++ local name=/sys/block/sdax | |
+++ name=sdax | |
+++ [[ -n sdax ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdax ]] | |
+++ [[ -r /sys/block/sdax/dm/name ]] | |
+++ dev_number=67:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:16 = 253:64 ']' | |
+++ name=sdax | |
+++ echo /dev/sdax | |
+++ return 1 | |
++ devname=/dev/sdax | |
+++ get_disk_size sdax | |
+++ local disk_name=sdax | |
++++ get_block_size sdax | |
++++ '[' -r /sys/block/sdax/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdax/size ']' | |
+++ BugIfError 'Could not determine size of disk sdax, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdax print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdax 16106127360 ' | |
++ extract_partitions /dev/sdax | |
++ declare device=/dev/sdax | |
+++ get_sysfs_name /dev/sdax | |
+++ local name=sdax | |
+++ name=sdax | |
+++ [[ -e /sys/block/sdax ]] | |
+++ echo sdax | |
+++ return 0 | |
++ declare sysfs_name=sdax | |
+++ get_block_size sdax | |
+++ '[' -r /sys/block/sdax/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdax != /dev/sdax ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdax.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sday = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sday | |
+++ local name=/sys/block/sday | |
+++ name=sday | |
+++ [[ -n sday ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sday ]] | |
+++ [[ -r /sys/block/sday/dm/name ]] | |
+++ dev_number=67:32 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:32 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:32 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:32 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:32 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:32 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:32 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:32 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:32 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:32 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:32 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:32 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:32 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:32 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:32 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:32 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:32 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:32 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:32 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:32 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:32 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:32 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:32 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:32 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:32 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:32 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:32 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:32 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:32 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:32 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:32 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:32 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:32 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:32 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:32 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:32 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:32 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:32 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:32 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:32 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:32 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:32 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:32 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:32 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:32 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:32 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:32 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:32 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:32 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:32 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:32 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:32 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:32 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:32 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:32 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:32 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:32 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:32 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:32 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:32 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:32 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:32 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:32 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:32 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:32 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:32 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:32 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:32 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:32 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:32 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:32 = 253:64 ']' | |
+++ name=sday | |
+++ echo /dev/sday | |
+++ return 1 | |
++ devname=/dev/sday | |
+++ get_disk_size sday | |
+++ local disk_name=sday | |
++++ get_block_size sday | |
++++ '[' -r /sys/block/sday/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sday/size ']' | |
+++ BugIfError 'Could not determine size of disk sday, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sday print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sday 16106127360 ' | |
++ extract_partitions /dev/sday | |
++ declare device=/dev/sday | |
+++ get_sysfs_name /dev/sday | |
+++ local name=sday | |
+++ name=sday | |
+++ [[ -e /sys/block/sday ]] | |
+++ echo sday | |
+++ return 0 | |
++ declare sysfs_name=sday | |
+++ get_block_size sday | |
+++ '[' -r /sys/block/sday/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sday != /dev/sday ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sday.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdaz = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdaz | |
+++ local name=/sys/block/sdaz | |
+++ name=sdaz | |
+++ [[ -n sdaz ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdaz ]] | |
+++ [[ -r /sys/block/sdaz/dm/name ]] | |
+++ dev_number=67:48 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:48 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:48 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:48 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:48 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:48 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:48 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:48 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:48 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:48 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:48 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:48 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:48 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:48 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:48 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:48 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:48 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:48 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:48 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:48 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:48 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:48 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:48 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:48 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:48 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:48 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:48 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:48 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:48 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:48 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:48 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:48 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:48 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:48 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:48 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:48 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:48 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:48 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:48 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:48 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:48 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:48 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:48 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:48 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:48 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:48 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:48 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:48 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:48 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:48 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:48 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:48 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:48 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:48 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:48 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:48 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:48 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:48 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:48 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:48 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:48 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:48 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:48 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:48 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:48 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:48 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:48 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:48 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:48 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:48 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:48 = 253:64 ']' | |
+++ name=sdaz | |
+++ echo /dev/sdaz | |
+++ return 1 | |
++ devname=/dev/sdaz | |
+++ get_disk_size sdaz | |
+++ local disk_name=sdaz | |
++++ get_block_size sdaz | |
++++ '[' -r /sys/block/sdaz/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdaz/size ']' | |
+++ BugIfError 'Could not determine size of disk sdaz, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=255852544 | |
+++ local disk_size=130996502528 | |
+++ echo 130996502528 | |
++ devsize=130996502528 | |
+++ parted -s /dev/sdaz print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdaz 130996502528 ' | |
++ extract_partitions /dev/sdaz | |
++ declare device=/dev/sdaz | |
+++ get_sysfs_name /dev/sdaz | |
+++ local name=sdaz | |
+++ name=sdaz | |
+++ [[ -e /sys/block/sdaz ]] | |
+++ echo sdaz | |
+++ return 0 | |
++ declare sysfs_name=sdaz | |
+++ get_block_size sdaz | |
+++ '[' -r /sys/block/sdaz/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdaz != /dev/sdaz ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdaz.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdb = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdb | |
+++ local name=/sys/block/sdb | |
+++ name=sdb | |
+++ [[ -n sdb ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdb ]] | |
+++ [[ -r /sys/block/sdb/dm/name ]] | |
+++ dev_number=8:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:16 = 253:64 ']' | |
+++ name=sdb | |
+++ echo /dev/sdb | |
+++ return 1 | |
++ devname=/dev/sdb | |
+++ get_disk_size sdb | |
+++ local disk_name=sdb | |
++++ get_block_size sdb | |
++++ '[' -r /sys/block/sdb/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdb/size ']' | |
+++ BugIfError 'Could not determine size of disk sdb, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104857600 | |
+++ local disk_size=53687091200 | |
+++ echo 53687091200 | |
++ devsize=53687091200 | |
+++ parted -s /dev/sdb print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdb 53687091200 ' | |
++ extract_partitions /dev/sdb | |
++ declare device=/dev/sdb | |
+++ get_sysfs_name /dev/sdb | |
+++ local name=sdb | |
+++ name=sdb | |
+++ [[ -e /sys/block/sdb ]] | |
+++ echo sdb | |
+++ return 0 | |
++ declare sysfs_name=sdb | |
+++ get_block_size sdb | |
+++ '[' -r /sys/block/sdb/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdb != /dev/sdb ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdb.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdba = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdba | |
+++ local name=/sys/block/sdba | |
+++ name=sdba | |
+++ [[ -n sdba ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdba ]] | |
+++ [[ -r /sys/block/sdba/dm/name ]] | |
+++ dev_number=67:64 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:64 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:64 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:64 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:64 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:64 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:64 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:64 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:64 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:64 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:64 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:64 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:64 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:64 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:64 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:64 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:64 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:64 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:64 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:64 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:64 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:64 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:64 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:64 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:64 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:64 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:64 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:64 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:64 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:64 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:64 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:64 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:64 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:64 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:64 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:64 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:64 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:64 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:64 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:64 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:64 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:64 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:64 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:64 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:64 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:64 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:64 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:64 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:64 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:64 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:64 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:64 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:64 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:64 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:64 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:64 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:64 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:64 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:64 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:64 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:64 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:64 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:64 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:64 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:64 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:64 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:64 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:64 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:64 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:64 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:64 = 253:64 ']' | |
+++ name=sdba | |
+++ echo /dev/sdba | |
+++ return 1 | |
++ devname=/dev/sdba | |
+++ get_disk_size sdba | |
+++ local disk_name=sdba | |
++++ get_block_size sdba | |
++++ '[' -r /sys/block/sdba/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdba/size ']' | |
+++ BugIfError 'Could not determine size of disk sdba, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=255852544 | |
+++ local disk_size=130996502528 | |
+++ echo 130996502528 | |
++ devsize=130996502528 | |
+++ parted -s /dev/sdba print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdba 130996502528 ' | |
++ extract_partitions /dev/sdba | |
++ declare device=/dev/sdba | |
+++ get_sysfs_name /dev/sdba | |
+++ local name=sdba | |
+++ name=sdba | |
+++ [[ -e /sys/block/sdba ]] | |
+++ echo sdba | |
+++ return 0 | |
++ declare sysfs_name=sdba | |
+++ get_block_size sdba | |
+++ '[' -r /sys/block/sdba/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdba != /dev/sdba ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdba.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbb = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbb | |
+++ local name=/sys/block/sdbb | |
+++ name=sdbb | |
+++ [[ -n sdbb ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbb ]] | |
+++ [[ -r /sys/block/sdbb/dm/name ]] | |
+++ dev_number=67:80 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:80 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:80 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:80 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:80 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:80 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:80 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:80 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:80 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:80 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:80 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:80 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:80 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:80 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:80 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:80 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:80 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:80 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:80 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:80 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:80 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:80 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:80 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:80 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:80 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:80 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:80 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:80 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:80 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:80 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:80 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:80 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:80 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:80 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:80 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:80 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:80 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:80 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:80 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:80 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:80 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:80 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:80 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:80 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:80 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:80 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:80 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:80 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:80 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:80 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:80 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:80 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:80 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:80 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:80 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:80 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:80 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:80 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:80 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:80 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:80 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:80 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:80 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:80 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:80 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:80 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:80 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:80 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:80 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:80 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:80 = 253:64 ']' | |
+++ name=sdbb | |
+++ echo /dev/sdbb | |
+++ return 1 | |
++ devname=/dev/sdbb | |
+++ get_disk_size sdbb | |
+++ local disk_name=sdbb | |
++++ get_block_size sdbb | |
++++ '[' -r /sys/block/sdbb/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbb/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbb, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=22460864 | |
+++ local disk_size=11499962368 | |
+++ echo 11499962368 | |
++ devsize=11499962368 | |
+++ parted -s /dev/sdbb print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbb 11499962368 ' | |
++ extract_partitions /dev/sdbb | |
++ declare device=/dev/sdbb | |
+++ get_sysfs_name /dev/sdbb | |
+++ local name=sdbb | |
+++ name=sdbb | |
+++ [[ -e /sys/block/sdbb ]] | |
+++ echo sdbb | |
+++ return 0 | |
++ declare sysfs_name=sdbb | |
+++ get_block_size sdbb | |
+++ '[' -r /sys/block/sdbb/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbb != /dev/sdbb ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbb.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbc = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbc | |
+++ local name=/sys/block/sdbc | |
+++ name=sdbc | |
+++ [[ -n sdbc ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbc ]] | |
+++ [[ -r /sys/block/sdbc/dm/name ]] | |
+++ dev_number=67:96 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:96 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:96 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:96 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:96 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:96 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:96 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:96 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:96 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:96 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:96 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:96 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:96 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:96 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:96 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:96 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:96 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:96 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:96 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:96 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:96 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:96 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:96 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:96 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:96 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:96 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:96 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:96 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:96 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:96 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:96 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:96 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:96 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:96 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:96 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:96 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:96 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:96 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:96 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:96 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:96 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:96 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:96 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:96 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:96 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:96 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:96 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:96 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:96 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:96 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:96 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:96 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:96 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:96 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:96 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:96 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:96 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:96 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:96 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:96 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:96 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:96 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:96 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:96 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:96 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:96 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:96 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:96 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:96 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:96 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:96 = 253:64 ']' | |
+++ name=sdbc | |
+++ echo /dev/sdbc | |
+++ return 1 | |
++ devname=/dev/sdbc | |
+++ get_disk_size sdbc | |
+++ local disk_name=sdbc | |
++++ get_block_size sdbc | |
++++ '[' -r /sys/block/sdbc/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbc/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbc, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=22460864 | |
+++ local disk_size=11499962368 | |
+++ echo 11499962368 | |
++ devsize=11499962368 | |
+++ parted -s /dev/sdbc print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ disktype= | |
++ echo 'disk /dev/sdbc 11499962368 ' | |
++ extract_partitions /dev/sdbc | |
++ declare device=/dev/sdbc | |
+++ get_sysfs_name /dev/sdbc | |
+++ local name=sdbc | |
+++ name=sdbc | |
+++ [[ -e /sys/block/sdbc ]] | |
+++ echo sdbc | |
+++ return 0 | |
++ declare sysfs_name=sdbc | |
+++ get_block_size sdbc | |
+++ '[' -r /sys/block/sdbc/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbc != /dev/sdbc ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbc.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbd = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbd | |
+++ local name=/sys/block/sdbd | |
+++ name=sdbd | |
+++ [[ -n sdbd ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbd ]] | |
+++ [[ -r /sys/block/sdbd/dm/name ]] | |
+++ dev_number=67:112 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:112 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:112 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:112 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:112 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:112 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:112 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:112 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:112 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:112 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:112 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:112 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:112 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:112 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:112 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:112 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:112 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:112 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:112 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:112 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:112 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:112 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:112 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:112 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:112 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:112 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:112 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:112 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:112 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:112 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:112 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:112 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:112 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:112 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:112 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:112 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:112 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:112 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:112 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:112 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:112 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:112 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:112 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:112 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:112 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:112 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:112 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:112 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:112 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:112 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:112 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:112 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:112 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:112 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:112 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:112 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:112 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:112 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:112 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:112 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:112 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:112 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:112 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:112 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:112 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:112 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:112 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:112 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:112 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:112 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:112 = 253:64 ']' | |
+++ name=sdbd | |
+++ echo /dev/sdbd | |
+++ return 1 | |
++ devname=/dev/sdbd | |
+++ get_disk_size sdbd | |
+++ local disk_name=sdbd | |
++++ get_block_size sdbd | |
++++ '[' -r /sys/block/sdbd/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbd/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbd, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104856000 | |
+++ local disk_size=53686272000 | |
+++ echo 53686272000 | |
++ devsize=53686272000 | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
+++ grep -E 'Partition Table|Disk label' | |
+++ parted -s /dev/sdbd print | |
++ disktype= | |
++ echo 'disk /dev/sdbd 53686272000 ' | |
++ extract_partitions /dev/sdbd | |
++ declare device=/dev/sdbd | |
+++ get_sysfs_name /dev/sdbd | |
+++ local name=sdbd | |
+++ name=sdbd | |
+++ [[ -e /sys/block/sdbd ]] | |
+++ echo sdbd | |
+++ return 0 | |
++ declare sysfs_name=sdbd | |
+++ get_block_size sdbd | |
+++ '[' -r /sys/block/sdbd/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbd != /dev/sdbd ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbd.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbe = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbe | |
+++ local name=/sys/block/sdbe | |
+++ name=sdbe | |
+++ [[ -n sdbe ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbe ]] | |
+++ [[ -r /sys/block/sdbe/dm/name ]] | |
+++ dev_number=67:128 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:128 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:128 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:128 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:128 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:128 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:128 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:128 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:128 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:128 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:128 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:128 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:128 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:128 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:128 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:128 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:128 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:128 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:128 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:128 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:128 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:128 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:128 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:128 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:128 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:128 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:128 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:128 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:128 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:128 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:128 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:128 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:128 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:128 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:128 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:128 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:128 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:128 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:128 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:128 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:128 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:128 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:128 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:128 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:128 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:128 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:128 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:128 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:128 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:128 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:128 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:128 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:128 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:128 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:128 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:128 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:128 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:128 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:128 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:128 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:128 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:128 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:128 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:128 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:128 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:128 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:128 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:128 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:128 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:128 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:128 = 253:64 ']' | |
+++ name=sdbe | |
+++ echo /dev/sdbe | |
+++ return 1 | |
++ devname=/dev/sdbe | |
+++ get_disk_size sdbe | |
+++ local disk_name=sdbe | |
++++ get_block_size sdbe | |
++++ '[' -r /sys/block/sdbe/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbe/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbe, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104856000 | |
+++ local disk_size=53686272000 | |
+++ echo 53686272000 | |
++ devsize=53686272000 | |
+++ parted -s /dev/sdbe print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/sdbe 53686272000 msdos' | |
++ extract_partitions /dev/sdbe | |
++ declare device=/dev/sdbe | |
+++ get_sysfs_name /dev/sdbe | |
+++ local name=sdbe | |
+++ name=sdbe | |
+++ [[ -e /sys/block/sdbe ]] | |
+++ echo sdbe | |
+++ return 0 | |
++ declare sysfs_name=sdbe | |
+++ get_block_size sdbe | |
+++ '[' -r /sys/block/sdbe/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 2 -eq 0 ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name sdbe1 | |
+++ local name=sdbe1 | |
+++ name=sdbe1 | |
+++ [[ -n sdbe1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbe1 ]] | |
+++ name=sdbe1 | |
+++ echo /dev/sdbe1 | |
+++ return 1 | |
++ partition_name=/dev/sdbe1 | |
++ partition_name=sdbe1 | |
++ partition_name=sdbe1 | |
+++ get_partition_number sdbe1 | |
+++ local partition=sdbe1 | |
++++ echo sdbe1 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=1 | |
+++ '[' 1 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''1'\'' of partition sdbe1 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 1 <= 128 )) | |
+++ StopIfError 'Partition sdbe1 is numbered '\''1'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 1 | |
++ partition_nr=1 | |
++ partition_prefix=sdbe | |
+++ get_disk_size sdbe/sdbe1 | |
+++ local disk_name=sdbe/sdbe1 | |
++++ get_block_size sdbe | |
++++ '[' -r /sys/block/sdbe/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbe/sdbe1/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbe/sdbe1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=1024008 | |
+++ local disk_size=524292096 | |
+++ echo 524292096 | |
++ size=524292096 | |
++ [[ -r /sys/block/sdbe/sdbe1/start ]] | |
++ start_block=2048 | |
++ start=1048576 | |
++ echo '1 524292096 1048576' | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name sdbe2 | |
+++ local name=sdbe2 | |
+++ name=sdbe2 | |
+++ [[ -n sdbe2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbe2 ]] | |
+++ name=sdbe2 | |
+++ echo /dev/sdbe2 | |
+++ return 1 | |
++ partition_name=/dev/sdbe2 | |
++ partition_name=sdbe2 | |
++ partition_name=sdbe2 | |
+++ get_partition_number sdbe2 | |
+++ local partition=sdbe2 | |
++++ echo sdbe2 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=2 | |
+++ '[' 2 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''2'\'' of partition sdbe2 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 2 <= 128 )) | |
+++ StopIfError 'Partition sdbe2 is numbered '\''2'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 2 | |
++ partition_nr=2 | |
++ partition_prefix=sdbe | |
+++ get_disk_size sdbe/sdbe2 | |
+++ local disk_name=sdbe/sdbe2 | |
++++ get_block_size sdbe | |
++++ '[' -r /sys/block/sdbe/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbe/sdbe2/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbe/sdbe2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=103814134 | |
+++ local disk_size=53152836608 | |
+++ echo 53152836608 | |
++ size=53152836608 | |
++ [[ -r /sys/block/sdbe/sdbe2/start ]] | |
++ start_block=1026056 | |
++ start=525340672 | |
++ echo '2 53152836608 525340672' | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ declare disk_label | |
++ [[ -n y ]] | |
++ parted -m -s /dev/sdbe print | |
+++ grep '^/' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 6 | |
++ disk_label=msdos | |
++ cp /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions-data | |
++ declare type | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ declare -i has_logical | |
++ read partition_nr size start junk | |
++ (( 1 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^1 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ (( 2 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^2 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \g\p\t ]] | |
++ declare flags flaglist | |
++ [[ -n y ]] | |
++ read partition_nr size start junk | |
+++ grep '^1:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='boot type=83' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ boot = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=boot, | |
++ for flag in '$flaglist' | |
++ [[ type=83 = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z boot, ]] | |
++ sed -i '/^1 /s/$/ boot/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
+++ grep '^2:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='lvm type=8e' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ lvm = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=lvm, | |
++ for flag in '$flaglist' | |
++ [[ type=8e = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z lvm, ]] | |
++ sed -i '/^2 /s/$/ lvm/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ [[ -n '' ]] | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/sdbe1 | |
+++ get_device_name /dev/sdbe1 | |
+++ local name=sdbe1 | |
+++ name=sdbe1 | |
+++ [[ -n sdbe1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbe1 ]] | |
+++ name=sdbe1 | |
+++ echo /dev/sdbe1 | |
+++ return 1 | |
++ echo 'part /dev/sdbe 524292096 1048576 primary boot /dev/sdbe1' | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/sdbe2 | |
+++ get_device_name /dev/sdbe2 | |
+++ local name=sdbe2 | |
+++ name=sdbe2 | |
+++ [[ -n sdbe2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbe2 ]] | |
+++ name=sdbe2 | |
+++ echo /dev/sdbe2 | |
+++ return 1 | |
++ echo 'part /dev/sdbe 53152836608 525340672 primary lvm /dev/sdbe2' | |
++ read partition_nr size start type flags junk | |
++ for disk in '/sys/block/*' | |
++ [[ sdbf = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbf | |
+++ local name=/sys/block/sdbf | |
+++ name=sdbf | |
+++ [[ -n sdbf ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbf ]] | |
+++ [[ -r /sys/block/sdbf/dm/name ]] | |
+++ dev_number=67:144 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:144 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:144 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:144 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:144 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:144 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:144 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:144 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:144 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:144 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:144 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:144 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:144 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:144 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:144 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:144 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:144 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:144 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:144 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:144 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:144 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:144 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:144 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:144 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:144 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:144 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:144 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:144 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:144 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:144 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:144 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:144 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:144 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:144 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:144 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:144 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:144 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:144 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:144 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:144 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:144 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:144 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:144 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:144 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:144 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:144 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:144 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:144 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:144 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:144 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:144 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:144 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:144 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:144 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:144 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:144 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:144 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:144 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:144 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:144 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:144 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:144 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:144 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:144 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:144 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:144 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:144 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:144 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:144 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:144 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:144 = 253:64 ']' | |
+++ name=sdbf | |
+++ echo /dev/sdbf | |
+++ return 1 | |
++ devname=/dev/sdbf | |
+++ get_disk_size sdbf | |
+++ local disk_name=sdbf | |
++++ get_block_size sdbf | |
++++ '[' -r /sys/block/sdbf/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbf/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbf, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31456800 | |
+++ local disk_size=16105881600 | |
+++ echo 16105881600 | |
++ devsize=16105881600 | |
+++ parted -s /dev/sdbf print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbf 16105881600 ' | |
++ extract_partitions /dev/sdbf | |
++ declare device=/dev/sdbf | |
+++ get_sysfs_name /dev/sdbf | |
+++ local name=sdbf | |
+++ name=sdbf | |
+++ [[ -e /sys/block/sdbf ]] | |
+++ echo sdbf | |
+++ return 0 | |
++ declare sysfs_name=sdbf | |
+++ get_block_size sdbf | |
+++ '[' -r /sys/block/sdbf/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbf != /dev/sdbf ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbf.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbg = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbg | |
+++ local name=/sys/block/sdbg | |
+++ name=sdbg | |
+++ [[ -n sdbg ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbg ]] | |
+++ [[ -r /sys/block/sdbg/dm/name ]] | |
+++ dev_number=67:160 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:160 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:160 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:160 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:160 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:160 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:160 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:160 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:160 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:160 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:160 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:160 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:160 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:160 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:160 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:160 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:160 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:160 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:160 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:160 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:160 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:160 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:160 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:160 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:160 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:160 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:160 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:160 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:160 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:160 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:160 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:160 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:160 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:160 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:160 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:160 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:160 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:160 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:160 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:160 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:160 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:160 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:160 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:160 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:160 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:160 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:160 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:160 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:160 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:160 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:160 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:160 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:160 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:160 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:160 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:160 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:160 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:160 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:160 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:160 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:160 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:160 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:160 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:160 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:160 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:160 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:160 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:160 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:160 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:160 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:160 = 253:64 ']' | |
+++ name=sdbg | |
+++ echo /dev/sdbg | |
+++ return 1 | |
++ devname=/dev/sdbg | |
+++ get_disk_size sdbg | |
+++ local disk_name=sdbg | |
++++ get_block_size sdbg | |
++++ '[' -r /sys/block/sdbg/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbg/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbg, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31456800 | |
+++ local disk_size=16105881600 | |
+++ echo 16105881600 | |
++ devsize=16105881600 | |
+++ parted -s /dev/sdbg print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbg 16105881600 ' | |
++ extract_partitions /dev/sdbg | |
++ declare device=/dev/sdbg | |
+++ get_sysfs_name /dev/sdbg | |
+++ local name=sdbg | |
+++ name=sdbg | |
+++ [[ -e /sys/block/sdbg ]] | |
+++ echo sdbg | |
+++ return 0 | |
++ declare sysfs_name=sdbg | |
+++ get_block_size sdbg | |
+++ '[' -r /sys/block/sdbg/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbg != /dev/sdbg ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbg.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbh = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbh | |
+++ local name=/sys/block/sdbh | |
+++ name=sdbh | |
+++ [[ -n sdbh ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbh ]] | |
+++ [[ -r /sys/block/sdbh/dm/name ]] | |
+++ dev_number=67:176 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:176 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:176 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:176 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:176 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:176 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:176 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:176 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:176 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:176 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:176 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:176 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:176 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:176 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:176 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:176 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:176 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:176 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:176 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:176 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:176 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:176 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:176 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:176 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:176 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:176 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:176 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:176 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:176 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:176 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:176 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:176 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:176 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:176 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:176 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:176 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:176 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:176 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:176 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:176 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:176 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:176 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:176 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:176 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:176 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:176 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:176 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:176 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:176 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:176 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:176 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:176 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:176 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:176 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:176 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:176 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:176 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:176 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:176 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:176 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:176 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:176 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:176 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:176 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:176 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:176 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:176 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:176 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:176 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:176 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:176 = 253:64 ']' | |
+++ name=sdbh | |
+++ echo /dev/sdbh | |
+++ return 1 | |
++ devname=/dev/sdbh | |
+++ get_disk_size sdbh | |
+++ local disk_name=sdbh | |
++++ get_block_size sdbh | |
++++ '[' -r /sys/block/sdbh/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbh/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbh, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=20971200 | |
+++ local disk_size=10737254400 | |
+++ echo 10737254400 | |
++ devsize=10737254400 | |
+++ parted -s /dev/sdbh print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbh 10737254400 ' | |
++ extract_partitions /dev/sdbh | |
++ declare device=/dev/sdbh | |
+++ get_sysfs_name /dev/sdbh | |
+++ local name=sdbh | |
+++ name=sdbh | |
+++ [[ -e /sys/block/sdbh ]] | |
+++ echo sdbh | |
+++ return 0 | |
++ declare sysfs_name=sdbh | |
+++ get_block_size sdbh | |
+++ '[' -r /sys/block/sdbh/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbh != /dev/sdbh ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbh.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbi = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbi | |
+++ local name=/sys/block/sdbi | |
+++ name=sdbi | |
+++ [[ -n sdbi ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbi ]] | |
+++ [[ -r /sys/block/sdbi/dm/name ]] | |
+++ dev_number=67:192 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:192 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:192 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:192 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:192 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:192 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:192 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:192 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:192 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:192 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:192 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:192 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:192 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:192 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:192 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:192 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:192 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:192 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:192 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:192 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:192 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:192 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:192 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:192 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:192 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:192 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:192 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:192 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:192 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:192 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:192 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:192 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:192 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:192 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:192 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:192 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:192 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:192 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:192 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:192 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:192 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:192 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:192 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:192 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:192 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:192 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:192 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:192 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:192 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:192 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:192 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:192 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:192 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:192 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:192 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:192 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:192 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:192 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:192 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:192 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:192 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:192 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:192 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:192 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:192 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:192 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:192 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:192 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:192 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:192 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:192 = 253:64 ']' | |
+++ name=sdbi | |
+++ echo /dev/sdbi | |
+++ return 1 | |
++ devname=/dev/sdbi | |
+++ get_disk_size sdbi | |
+++ local disk_name=sdbi | |
++++ get_block_size sdbi | |
++++ '[' -r /sys/block/sdbi/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbi/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbi, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=20971200 | |
+++ local disk_size=10737254400 | |
+++ echo 10737254400 | |
++ devsize=10737254400 | |
+++ parted -s /dev/sdbi print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbi 10737254400 ' | |
++ extract_partitions /dev/sdbi | |
++ declare device=/dev/sdbi | |
+++ get_sysfs_name /dev/sdbi | |
+++ local name=sdbi | |
+++ name=sdbi | |
+++ [[ -e /sys/block/sdbi ]] | |
+++ echo sdbi | |
+++ return 0 | |
++ declare sysfs_name=sdbi | |
+++ get_block_size sdbi | |
+++ '[' -r /sys/block/sdbi/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbi != /dev/sdbi ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbi.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbj = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbj | |
+++ local name=/sys/block/sdbj | |
+++ name=sdbj | |
+++ [[ -n sdbj ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbj ]] | |
+++ [[ -r /sys/block/sdbj/dm/name ]] | |
+++ dev_number=67:208 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:208 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:208 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:208 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:208 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:208 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:208 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:208 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:208 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:208 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:208 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:208 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:208 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:208 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:208 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:208 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:208 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:208 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:208 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:208 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:208 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:208 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:208 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:208 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:208 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:208 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:208 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:208 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:208 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:208 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:208 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:208 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:208 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:208 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:208 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:208 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:208 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:208 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:208 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:208 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:208 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:208 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:208 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:208 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:208 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:208 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:208 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:208 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:208 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:208 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:208 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:208 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:208 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:208 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:208 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:208 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:208 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:208 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:208 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:208 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:208 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:208 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:208 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:208 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:208 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:208 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:208 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:208 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:208 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:208 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:208 = 253:64 ']' | |
+++ name=sdbj | |
+++ echo /dev/sdbj | |
+++ return 1 | |
++ devname=/dev/sdbj | |
+++ get_disk_size sdbj | |
+++ local disk_name=sdbj | |
++++ get_block_size sdbj | |
++++ '[' -r /sys/block/sdbj/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbj/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbj, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485600 | |
+++ local disk_size=5368627200 | |
+++ echo 5368627200 | |
++ devsize=5368627200 | |
+++ parted -s /dev/sdbj print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbj 5368627200 ' | |
++ extract_partitions /dev/sdbj | |
++ declare device=/dev/sdbj | |
+++ get_sysfs_name /dev/sdbj | |
+++ local name=sdbj | |
+++ name=sdbj | |
+++ [[ -e /sys/block/sdbj ]] | |
+++ echo sdbj | |
+++ return 0 | |
++ declare sysfs_name=sdbj | |
+++ get_block_size sdbj | |
+++ '[' -r /sys/block/sdbj/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbj != /dev/sdbj ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbj.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbk = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbk | |
+++ local name=/sys/block/sdbk | |
+++ name=sdbk | |
+++ [[ -n sdbk ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbk ]] | |
+++ [[ -r /sys/block/sdbk/dm/name ]] | |
+++ dev_number=67:224 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:224 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:224 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:224 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:224 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:224 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:224 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:224 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:224 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:224 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:224 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:224 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:224 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:224 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:224 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:224 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:224 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:224 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:224 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:224 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:224 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:224 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:224 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:224 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:224 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:224 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:224 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:224 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:224 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:224 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:224 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:224 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:224 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:224 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:224 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:224 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:224 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:224 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:224 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:224 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:224 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:224 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:224 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:224 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:224 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:224 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:224 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:224 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:224 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:224 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:224 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:224 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:224 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:224 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:224 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:224 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:224 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:224 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:224 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:224 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:224 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:224 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:224 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:224 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:224 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:224 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:224 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:224 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:224 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:224 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:224 = 253:64 ']' | |
+++ name=sdbk | |
+++ echo /dev/sdbk | |
+++ return 1 | |
++ devname=/dev/sdbk | |
+++ get_disk_size sdbk | |
+++ local disk_name=sdbk | |
++++ get_block_size sdbk | |
++++ '[' -r /sys/block/sdbk/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbk/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbk, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485600 | |
+++ local disk_size=5368627200 | |
+++ echo 5368627200 | |
++ devsize=5368627200 | |
+++ parted -s /dev/sdbk print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbk 5368627200 ' | |
++ extract_partitions /dev/sdbk | |
++ declare device=/dev/sdbk | |
+++ get_sysfs_name /dev/sdbk | |
+++ local name=sdbk | |
+++ name=sdbk | |
+++ [[ -e /sys/block/sdbk ]] | |
+++ echo sdbk | |
+++ return 0 | |
++ declare sysfs_name=sdbk | |
+++ get_block_size sdbk | |
+++ '[' -r /sys/block/sdbk/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbk != /dev/sdbk ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbk.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbl = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbl | |
+++ local name=/sys/block/sdbl | |
+++ name=sdbl | |
+++ [[ -n sdbl ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbl ]] | |
+++ [[ -r /sys/block/sdbl/dm/name ]] | |
+++ dev_number=67:240 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 67:240 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 67:240 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 67:240 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 67:240 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 67:240 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 67:240 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 67:240 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 67:240 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 67:240 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 67:240 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 67:240 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 67:240 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 67:240 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 67:240 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 67:240 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 67:240 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 67:240 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 67:240 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 67:240 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 67:240 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 67:240 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 67:240 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 67:240 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 67:240 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 67:240 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 67:240 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 67:240 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 67:240 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 67:240 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 67:240 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 67:240 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 67:240 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 67:240 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 67:240 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 67:240 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 67:240 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 67:240 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 67:240 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 67:240 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 67:240 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 67:240 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 67:240 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 67:240 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 67:240 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 67:240 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 67:240 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 67:240 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 67:240 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 67:240 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 67:240 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 67:240 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 67:240 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 67:240 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 67:240 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 67:240 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 67:240 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 67:240 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 67:240 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 67:240 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 67:240 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 67:240 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 67:240 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 67:240 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 67:240 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 67:240 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 67:240 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 67:240 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 67:240 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 67:240 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 67:240 = 253:64 ']' | |
+++ name=sdbl | |
+++ echo /dev/sdbl | |
+++ return 1 | |
++ devname=/dev/sdbl | |
+++ get_disk_size sdbl | |
+++ local disk_name=sdbl | |
++++ get_block_size sdbl | |
++++ '[' -r /sys/block/sdbl/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbl/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbl, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdbl print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbl 1073725440 ' | |
++ extract_partitions /dev/sdbl | |
++ declare device=/dev/sdbl | |
+++ get_sysfs_name /dev/sdbl | |
+++ local name=sdbl | |
+++ name=sdbl | |
+++ [[ -e /sys/block/sdbl ]] | |
+++ echo sdbl | |
+++ return 0 | |
++ declare sysfs_name=sdbl | |
+++ get_block_size sdbl | |
+++ '[' -r /sys/block/sdbl/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbl != /dev/sdbl ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbl.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbm = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbm | |
+++ local name=/sys/block/sdbm | |
+++ name=sdbm | |
+++ [[ -n sdbm ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbm ]] | |
+++ [[ -r /sys/block/sdbm/dm/name ]] | |
+++ dev_number=68:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 68:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 68:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 68:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 68:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 68:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 68:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 68:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 68:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 68:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 68:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 68:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 68:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 68:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 68:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 68:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 68:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 68:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 68:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 68:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 68:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 68:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 68:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 68:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 68:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 68:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 68:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 68:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 68:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 68:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 68:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 68:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 68:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 68:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 68:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 68:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 68:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 68:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 68:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 68:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 68:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 68:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 68:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 68:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 68:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 68:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 68:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 68:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 68:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 68:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 68:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 68:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 68:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 68:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 68:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 68:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 68:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 68:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 68:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 68:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 68:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 68:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 68:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 68:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 68:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 68:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 68:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 68:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 68:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 68:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 68:0 = 253:64 ']' | |
+++ name=sdbm | |
+++ echo /dev/sdbm | |
+++ return 1 | |
++ devname=/dev/sdbm | |
+++ get_disk_size sdbm | |
+++ local disk_name=sdbm | |
++++ get_block_size sdbm | |
++++ '[' -r /sys/block/sdbm/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbm/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbm, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdbm print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbm 1073725440 ' | |
++ extract_partitions /dev/sdbm | |
++ declare device=/dev/sdbm | |
+++ get_sysfs_name /dev/sdbm | |
+++ local name=sdbm | |
+++ name=sdbm | |
+++ [[ -e /sys/block/sdbm ]] | |
+++ echo sdbm | |
+++ return 0 | |
++ declare sysfs_name=sdbm | |
+++ get_block_size sdbm | |
+++ '[' -r /sys/block/sdbm/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbm != /dev/sdbm ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbm.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbn = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbn | |
+++ local name=/sys/block/sdbn | |
+++ name=sdbn | |
+++ [[ -n sdbn ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbn ]] | |
+++ [[ -r /sys/block/sdbn/dm/name ]] | |
+++ dev_number=68:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 68:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 68:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 68:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 68:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 68:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 68:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 68:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 68:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 68:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 68:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 68:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 68:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 68:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 68:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 68:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 68:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 68:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 68:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 68:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 68:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 68:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 68:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 68:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 68:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 68:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 68:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 68:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 68:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 68:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 68:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 68:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 68:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 68:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 68:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 68:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 68:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 68:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 68:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 68:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 68:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 68:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 68:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 68:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 68:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 68:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 68:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 68:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 68:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 68:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 68:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 68:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 68:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 68:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 68:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 68:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 68:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 68:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 68:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 68:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 68:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 68:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 68:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 68:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 68:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 68:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 68:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 68:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 68:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 68:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 68:16 = 253:64 ']' | |
+++ name=sdbn | |
+++ echo /dev/sdbn | |
+++ return 1 | |
++ devname=/dev/sdbn | |
+++ get_disk_size sdbn | |
+++ local disk_name=sdbn | |
++++ get_block_size sdbn | |
++++ '[' -r /sys/block/sdbn/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbn/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbn, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097120 | |
+++ local disk_size=1073725440 | |
+++ echo 1073725440 | |
++ devsize=1073725440 | |
+++ parted -s /dev/sdbn print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbn 1073725440 ' | |
++ extract_partitions /dev/sdbn | |
++ declare device=/dev/sdbn | |
+++ get_sysfs_name /dev/sdbn | |
+++ local name=sdbn | |
+++ name=sdbn | |
+++ [[ -e /sys/block/sdbn ]] | |
+++ echo sdbn | |
+++ return 0 | |
++ declare sysfs_name=sdbn | |
+++ get_block_size sdbn | |
+++ '[' -r /sys/block/sdbn/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbn != /dev/sdbn ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbn.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdbo = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdbo | |
+++ local name=/sys/block/sdbo | |
+++ name=sdbo | |
+++ [[ -n sdbo ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdbo ]] | |
+++ [[ -r /sys/block/sdbo/dm/name ]] | |
+++ dev_number=68:32 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 68:32 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 68:32 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 68:32 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 68:32 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 68:32 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 68:32 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 68:32 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 68:32 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 68:32 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 68:32 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 68:32 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 68:32 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 68:32 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 68:32 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 68:32 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 68:32 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 68:32 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 68:32 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 68:32 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 68:32 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 68:32 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 68:32 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 68:32 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 68:32 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 68:32 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 68:32 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 68:32 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 68:32 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 68:32 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 68:32 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 68:32 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 68:32 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 68:32 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 68:32 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 68:32 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 68:32 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 68:32 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 68:32 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 68:32 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 68:32 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 68:32 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 68:32 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 68:32 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 68:32 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 68:32 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 68:32 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 68:32 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 68:32 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 68:32 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 68:32 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 68:32 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 68:32 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 68:32 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 68:32 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 68:32 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 68:32 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 68:32 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 68:32 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 68:32 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 68:32 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 68:32 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 68:32 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 68:32 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 68:32 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 68:32 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 68:32 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 68:32 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 68:32 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 68:32 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 68:32 = 253:64 ']' | |
+++ name=sdbo | |
+++ echo /dev/sdbo | |
+++ return 1 | |
++ devname=/dev/sdbo | |
+++ get_disk_size sdbo | |
+++ local disk_name=sdbo | |
++++ get_block_size sdbo | |
++++ '[' -r /sys/block/sdbo/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdbo/size ']' | |
+++ BugIfError 'Could not determine size of disk sdbo, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=204000 | |
+++ local disk_size=104448000 | |
+++ echo 104448000 | |
++ devsize=104448000 | |
+++ parted -s /dev/sdbo print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdbo 104448000 ' | |
++ extract_partitions /dev/sdbo | |
++ declare device=/dev/sdbo | |
+++ get_sysfs_name /dev/sdbo | |
+++ local name=sdbo | |
+++ name=sdbo | |
+++ [[ -e /sys/block/sdbo ]] | |
+++ echo sdbo | |
+++ return 0 | |
++ declare sysfs_name=sdbo | |
+++ get_block_size sdbo | |
+++ '[' -r /sys/block/sdbo/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdbo != /dev/sdbo ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdbo.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdc = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdc | |
+++ local name=/sys/block/sdc | |
+++ name=sdc | |
+++ [[ -n sdc ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdc ]] | |
+++ [[ -r /sys/block/sdc/dm/name ]] | |
+++ dev_number=8:32 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:32 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:32 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:32 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:32 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:32 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:32 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:32 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:32 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:32 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:32 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:32 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:32 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:32 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:32 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:32 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:32 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:32 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:32 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:32 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:32 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:32 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:32 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:32 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:32 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:32 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:32 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:32 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:32 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:32 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:32 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:32 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:32 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:32 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:32 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:32 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:32 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:32 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:32 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:32 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:32 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:32 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:32 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:32 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:32 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:32 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:32 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:32 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:32 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:32 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:32 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:32 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:32 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:32 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:32 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:32 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:32 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:32 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:32 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:32 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:32 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:32 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:32 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:32 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:32 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:32 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:32 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:32 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:32 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:32 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:32 = 253:64 ']' | |
+++ name=sdc | |
+++ echo /dev/sdc | |
+++ return 1 | |
++ devname=/dev/sdc | |
+++ get_disk_size sdc | |
+++ local disk_name=sdc | |
++++ get_block_size sdc | |
++++ '[' -r /sys/block/sdc/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdc/size ']' | |
+++ BugIfError 'Could not determine size of disk sdc, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdc print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdc 16106127360 ' | |
++ extract_partitions /dev/sdc | |
++ declare device=/dev/sdc | |
+++ get_sysfs_name /dev/sdc | |
+++ local name=sdc | |
+++ name=sdc | |
+++ [[ -e /sys/block/sdc ]] | |
+++ echo sdc | |
+++ return 0 | |
++ declare sysfs_name=sdc | |
+++ get_block_size sdc | |
+++ '[' -r /sys/block/sdc/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdc != /dev/sdc ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdc.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdd = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdd | |
+++ local name=/sys/block/sdd | |
+++ name=sdd | |
+++ [[ -n sdd ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdd ]] | |
+++ [[ -r /sys/block/sdd/dm/name ]] | |
+++ dev_number=8:48 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:48 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:48 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:48 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:48 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:48 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:48 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:48 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:48 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:48 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:48 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:48 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:48 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:48 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:48 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:48 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:48 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:48 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:48 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:48 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:48 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:48 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:48 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:48 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:48 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:48 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:48 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:48 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:48 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:48 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:48 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:48 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:48 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:48 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:48 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:48 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:48 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:48 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:48 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:48 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:48 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:48 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:48 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:48 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:48 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:48 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:48 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:48 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:48 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:48 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:48 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:48 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:48 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:48 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:48 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:48 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:48 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:48 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:48 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:48 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:48 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:48 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:48 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:48 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:48 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:48 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:48 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:48 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:48 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:48 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:48 = 253:64 ']' | |
+++ name=sdd | |
+++ echo /dev/sdd | |
+++ return 1 | |
++ devname=/dev/sdd | |
+++ get_disk_size sdd | |
+++ local disk_name=sdd | |
++++ get_block_size sdd | |
++++ '[' -r /sys/block/sdd/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdd/size ']' | |
+++ BugIfError 'Could not determine size of disk sdd, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdd print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdd 16106127360 ' | |
++ extract_partitions /dev/sdd | |
++ declare device=/dev/sdd | |
+++ get_sysfs_name /dev/sdd | |
+++ local name=sdd | |
+++ name=sdd | |
+++ [[ -e /sys/block/sdd ]] | |
+++ echo sdd | |
+++ return 0 | |
++ declare sysfs_name=sdd | |
+++ get_block_size sdd | |
+++ '[' -r /sys/block/sdd/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdd != /dev/sdd ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdd.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sde = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sde | |
+++ local name=/sys/block/sde | |
+++ name=sde | |
+++ [[ -n sde ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sde ]] | |
+++ [[ -r /sys/block/sde/dm/name ]] | |
+++ dev_number=8:64 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:64 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:64 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:64 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:64 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:64 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:64 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:64 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:64 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:64 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:64 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:64 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:64 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:64 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:64 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:64 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:64 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:64 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:64 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:64 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:64 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:64 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:64 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:64 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:64 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:64 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:64 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:64 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:64 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:64 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:64 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:64 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:64 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:64 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:64 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:64 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:64 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:64 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:64 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:64 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:64 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:64 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:64 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:64 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:64 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:64 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:64 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:64 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:64 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:64 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:64 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:64 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:64 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:64 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:64 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:64 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:64 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:64 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:64 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:64 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:64 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:64 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:64 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:64 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:64 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:64 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:64 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:64 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:64 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:64 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:64 = 253:64 ']' | |
+++ name=sde | |
+++ echo /dev/sde | |
+++ return 1 | |
++ devname=/dev/sde | |
+++ get_disk_size sde | |
+++ local disk_name=sde | |
++++ get_block_size sde | |
++++ '[' -r /sys/block/sde/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sde/size ']' | |
+++ BugIfError 'Could not determine size of disk sde, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485760 | |
+++ local disk_size=5368709120 | |
+++ echo 5368709120 | |
++ devsize=5368709120 | |
+++ parted -s /dev/sde print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sde 5368709120 ' | |
++ extract_partitions /dev/sde | |
++ declare device=/dev/sde | |
+++ get_sysfs_name /dev/sde | |
+++ local name=sde | |
+++ name=sde | |
+++ [[ -e /sys/block/sde ]] | |
+++ echo sde | |
+++ return 0 | |
++ declare sysfs_name=sde | |
+++ get_block_size sde | |
+++ '[' -r /sys/block/sde/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sde != /dev/sde ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sde.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdf = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdf | |
+++ local name=/sys/block/sdf | |
+++ name=sdf | |
+++ [[ -n sdf ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdf ]] | |
+++ [[ -r /sys/block/sdf/dm/name ]] | |
+++ dev_number=8:80 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:80 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:80 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:80 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:80 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:80 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:80 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:80 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:80 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:80 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:80 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:80 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:80 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:80 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:80 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:80 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:80 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:80 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:80 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:80 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:80 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:80 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:80 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:80 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:80 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:80 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:80 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:80 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:80 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:80 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:80 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:80 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:80 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:80 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:80 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:80 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:80 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:80 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:80 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:80 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:80 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:80 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:80 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:80 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:80 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:80 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:80 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:80 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:80 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:80 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:80 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:80 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:80 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:80 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:80 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:80 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:80 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:80 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:80 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:80 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:80 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:80 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:80 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:80 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:80 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:80 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:80 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:80 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:80 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:80 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:80 = 253:64 ']' | |
+++ name=sdf | |
+++ echo /dev/sdf | |
+++ return 1 | |
++ devname=/dev/sdf | |
+++ get_disk_size sdf | |
+++ local disk_name=sdf | |
++++ get_block_size sdf | |
++++ '[' -r /sys/block/sdf/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdf/size ']' | |
+++ BugIfError 'Could not determine size of disk sdf, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=10485760 | |
+++ local disk_size=5368709120 | |
+++ echo 5368709120 | |
++ devsize=5368709120 | |
+++ parted -s /dev/sdf print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdf 5368709120 ' | |
++ extract_partitions /dev/sdf | |
++ declare device=/dev/sdf | |
+++ get_sysfs_name /dev/sdf | |
+++ local name=sdf | |
+++ name=sdf | |
+++ [[ -e /sys/block/sdf ]] | |
+++ echo sdf | |
+++ return 0 | |
++ declare sysfs_name=sdf | |
+++ get_block_size sdf | |
+++ '[' -r /sys/block/sdf/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdf != /dev/sdf ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdf.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdg = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdg | |
+++ local name=/sys/block/sdg | |
+++ name=sdg | |
+++ [[ -n sdg ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdg ]] | |
+++ [[ -r /sys/block/sdg/dm/name ]] | |
+++ dev_number=8:96 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:96 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:96 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:96 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:96 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:96 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:96 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:96 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:96 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:96 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:96 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:96 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:96 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:96 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:96 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:96 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:96 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:96 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:96 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:96 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:96 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:96 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:96 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:96 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:96 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:96 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:96 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:96 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:96 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:96 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:96 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:96 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:96 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:96 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:96 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:96 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:96 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:96 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:96 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:96 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:96 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:96 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:96 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:96 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:96 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:96 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:96 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:96 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:96 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:96 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:96 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:96 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:96 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:96 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:96 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:96 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:96 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:96 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:96 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:96 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:96 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:96 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:96 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:96 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:96 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:96 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:96 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:96 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:96 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:96 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:96 = 253:64 ']' | |
+++ name=sdg | |
+++ echo /dev/sdg | |
+++ return 1 | |
++ devname=/dev/sdg | |
+++ get_disk_size sdg | |
+++ local disk_name=sdg | |
++++ get_block_size sdg | |
++++ '[' -r /sys/block/sdg/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdg/size ']' | |
+++ BugIfError 'Could not determine size of disk sdg, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdg print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdg 1073741824 ' | |
++ extract_partitions /dev/sdg | |
++ declare device=/dev/sdg | |
+++ get_sysfs_name /dev/sdg | |
+++ local name=sdg | |
+++ name=sdg | |
+++ [[ -e /sys/block/sdg ]] | |
+++ echo sdg | |
+++ return 0 | |
++ declare sysfs_name=sdg | |
+++ get_block_size sdg | |
+++ '[' -r /sys/block/sdg/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdg != /dev/sdg ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdg.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdh = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdh | |
+++ local name=/sys/block/sdh | |
+++ name=sdh | |
+++ [[ -n sdh ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdh ]] | |
+++ [[ -r /sys/block/sdh/dm/name ]] | |
+++ dev_number=8:112 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:112 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:112 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:112 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:112 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:112 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:112 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:112 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:112 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:112 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:112 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:112 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:112 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:112 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:112 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:112 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:112 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:112 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:112 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:112 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:112 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:112 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:112 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:112 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:112 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:112 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:112 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:112 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:112 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:112 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:112 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:112 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:112 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:112 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:112 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:112 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:112 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:112 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:112 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:112 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:112 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:112 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:112 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:112 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:112 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:112 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:112 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:112 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:112 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:112 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:112 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:112 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:112 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:112 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:112 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:112 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:112 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:112 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:112 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:112 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:112 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:112 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:112 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:112 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:112 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:112 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:112 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:112 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:112 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:112 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:112 = 253:64 ']' | |
+++ name=sdh | |
+++ echo /dev/sdh | |
+++ return 1 | |
++ devname=/dev/sdh | |
+++ get_disk_size sdh | |
+++ local disk_name=sdh | |
++++ get_block_size sdh | |
++++ '[' -r /sys/block/sdh/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdh/size ']' | |
+++ BugIfError 'Could not determine size of disk sdh, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdh print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ disktype= | |
++ echo 'disk /dev/sdh 1073741824 ' | |
++ extract_partitions /dev/sdh | |
++ declare device=/dev/sdh | |
+++ get_sysfs_name /dev/sdh | |
+++ local name=sdh | |
+++ name=sdh | |
+++ [[ -e /sys/block/sdh ]] | |
+++ echo sdh | |
+++ return 0 | |
++ declare sysfs_name=sdh | |
+++ get_block_size sdh | |
+++ '[' -r /sys/block/sdh/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdh != /dev/sdh ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdh.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdi = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdi | |
+++ local name=/sys/block/sdi | |
+++ name=sdi | |
+++ [[ -n sdi ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdi ]] | |
+++ [[ -r /sys/block/sdi/dm/name ]] | |
+++ dev_number=8:128 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:128 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:128 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:128 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:128 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:128 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:128 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:128 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:128 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:128 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:128 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:128 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:128 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:128 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:128 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:128 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:128 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:128 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:128 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:128 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:128 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:128 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:128 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:128 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:128 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:128 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:128 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:128 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:128 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:128 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:128 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:128 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:128 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:128 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:128 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:128 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:128 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:128 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:128 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:128 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:128 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:128 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:128 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:128 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:128 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:128 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:128 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:128 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:128 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:128 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:128 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:128 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:128 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:128 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:128 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:128 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:128 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:128 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:128 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:128 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:128 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:128 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:128 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:128 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:128 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:128 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:128 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:128 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:128 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:128 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:128 = 253:64 ']' | |
+++ name=sdi | |
+++ echo /dev/sdi | |
+++ return 1 | |
++ devname=/dev/sdi | |
+++ get_disk_size sdi | |
+++ local disk_name=sdi | |
++++ get_block_size sdi | |
++++ '[' -r /sys/block/sdi/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdi/size ']' | |
+++ BugIfError 'Could not determine size of disk sdi, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdi print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdi 1073741824 ' | |
++ extract_partitions /dev/sdi | |
++ declare device=/dev/sdi | |
+++ get_sysfs_name /dev/sdi | |
+++ local name=sdi | |
+++ name=sdi | |
+++ [[ -e /sys/block/sdi ]] | |
+++ echo sdi | |
+++ return 0 | |
++ declare sysfs_name=sdi | |
+++ get_block_size sdi | |
+++ '[' -r /sys/block/sdi/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdi != /dev/sdi ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdi.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdj = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdj | |
+++ local name=/sys/block/sdj | |
+++ name=sdj | |
+++ [[ -n sdj ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdj ]] | |
+++ [[ -r /sys/block/sdj/dm/name ]] | |
+++ dev_number=8:144 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:144 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:144 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:144 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:144 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:144 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:144 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:144 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:144 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:144 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:144 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:144 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:144 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:144 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:144 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:144 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:144 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:144 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:144 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:144 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:144 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:144 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:144 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:144 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:144 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:144 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:144 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:144 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:144 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:144 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:144 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:144 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:144 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:144 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:144 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:144 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:144 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:144 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:144 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:144 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:144 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:144 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:144 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:144 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:144 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:144 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:144 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:144 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:144 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:144 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:144 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:144 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:144 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:144 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:144 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:144 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:144 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:144 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:144 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:144 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:144 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:144 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:144 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:144 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:144 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:144 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:144 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:144 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:144 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:144 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:144 = 253:64 ']' | |
+++ name=sdj | |
+++ echo /dev/sdj | |
+++ return 1 | |
++ devname=/dev/sdj | |
+++ get_disk_size sdj | |
+++ local disk_name=sdj | |
++++ get_block_size sdj | |
++++ '[' -r /sys/block/sdj/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdj/size ']' | |
+++ BugIfError 'Could not determine size of disk sdj, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=2097152 | |
+++ local disk_size=1073741824 | |
+++ echo 1073741824 | |
++ devsize=1073741824 | |
+++ parted -s /dev/sdj print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdj 1073741824 ' | |
++ extract_partitions /dev/sdj | |
++ declare device=/dev/sdj | |
+++ get_sysfs_name /dev/sdj | |
+++ local name=sdj | |
+++ name=sdj | |
+++ [[ -e /sys/block/sdj ]] | |
+++ echo sdj | |
+++ return 0 | |
++ declare sysfs_name=sdj | |
+++ get_block_size sdj | |
+++ '[' -r /sys/block/sdj/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdj != /dev/sdj ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdj.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdk = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdk | |
+++ local name=/sys/block/sdk | |
+++ name=sdk | |
+++ [[ -n sdk ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdk ]] | |
+++ [[ -r /sys/block/sdk/dm/name ]] | |
+++ dev_number=8:160 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:160 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:160 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:160 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:160 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:160 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:160 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:160 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:160 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:160 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:160 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:160 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:160 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:160 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:160 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:160 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:160 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:160 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:160 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:160 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:160 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:160 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:160 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:160 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:160 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:160 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:160 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:160 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:160 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:160 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:160 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:160 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:160 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:160 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:160 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:160 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:160 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:160 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:160 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:160 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:160 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:160 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:160 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:160 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:160 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:160 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:160 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:160 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:160 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:160 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:160 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:160 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:160 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:160 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:160 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:160 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:160 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:160 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:160 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:160 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:160 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:160 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:160 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:160 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:160 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:160 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:160 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:160 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:160 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:160 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:160 = 253:64 ']' | |
+++ name=sdk | |
+++ echo /dev/sdk | |
+++ return 1 | |
++ devname=/dev/sdk | |
+++ get_disk_size sdk | |
+++ local disk_name=sdk | |
++++ get_block_size sdk | |
++++ '[' -r /sys/block/sdk/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdk/size ']' | |
+++ BugIfError 'Could not determine size of disk sdk, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=204800 | |
+++ local disk_size=104857600 | |
+++ echo 104857600 | |
++ devsize=104857600 | |
+++ parted -s /dev/sdk print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdk 104857600 ' | |
++ extract_partitions /dev/sdk | |
++ declare device=/dev/sdk | |
+++ get_sysfs_name /dev/sdk | |
+++ local name=sdk | |
+++ name=sdk | |
+++ [[ -e /sys/block/sdk ]] | |
+++ echo sdk | |
+++ return 0 | |
++ declare sysfs_name=sdk | |
+++ get_block_size sdk | |
+++ '[' -r /sys/block/sdk/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdk != /dev/sdk ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdk.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdl = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdl | |
+++ local name=/sys/block/sdl | |
+++ name=sdl | |
+++ [[ -n sdl ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdl ]] | |
+++ [[ -r /sys/block/sdl/dm/name ]] | |
+++ dev_number=8:176 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:176 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:176 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:176 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:176 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:176 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:176 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:176 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:176 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:176 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:176 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:176 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:176 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:176 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:176 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:176 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:176 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:176 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:176 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:176 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:176 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:176 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:176 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:176 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:176 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:176 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:176 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:176 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:176 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:176 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:176 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:176 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:176 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:176 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:176 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:176 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:176 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:176 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:176 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:176 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:176 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:176 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:176 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:176 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:176 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:176 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:176 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:176 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:176 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:176 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:176 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:176 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:176 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:176 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:176 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:176 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:176 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:176 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:176 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:176 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:176 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:176 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:176 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:176 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:176 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:176 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:176 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:176 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:176 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:176 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:176 = 253:64 ']' | |
+++ name=sdl | |
+++ echo /dev/sdl | |
+++ return 1 | |
++ devname=/dev/sdl | |
+++ get_disk_size sdl | |
+++ local disk_name=sdl | |
++++ get_block_size sdl | |
++++ '[' -r /sys/block/sdl/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdl/size ']' | |
+++ BugIfError 'Could not determine size of disk sdl, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=115343360 | |
+++ local disk_size=59055800320 | |
+++ echo 59055800320 | |
++ devsize=59055800320 | |
+++ parted -s /dev/sdl print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdl 59055800320 ' | |
++ extract_partitions /dev/sdl | |
++ declare device=/dev/sdl | |
+++ get_sysfs_name /dev/sdl | |
+++ local name=sdl | |
+++ name=sdl | |
+++ [[ -e /sys/block/sdl ]] | |
+++ echo sdl | |
+++ return 0 | |
++ declare sysfs_name=sdl | |
+++ get_block_size sdl | |
+++ '[' -r /sys/block/sdl/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdl != /dev/sdl ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdl.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdm = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdm | |
+++ local name=/sys/block/sdm | |
+++ name=sdm | |
+++ [[ -n sdm ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdm ]] | |
+++ [[ -r /sys/block/sdm/dm/name ]] | |
+++ dev_number=8:192 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:192 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:192 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:192 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:192 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:192 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:192 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:192 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:192 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:192 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:192 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:192 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:192 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:192 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:192 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:192 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:192 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:192 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:192 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:192 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:192 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:192 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:192 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:192 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:192 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:192 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:192 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:192 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:192 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:192 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:192 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:192 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:192 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:192 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:192 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:192 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:192 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:192 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:192 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:192 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:192 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:192 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:192 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:192 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:192 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:192 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:192 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:192 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:192 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:192 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:192 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:192 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:192 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:192 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:192 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:192 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:192 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:192 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:192 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:192 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:192 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:192 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:192 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:192 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:192 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:192 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:192 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:192 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:192 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:192 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:192 = 253:64 ']' | |
+++ name=sdm | |
+++ echo /dev/sdm | |
+++ return 1 | |
++ devname=/dev/sdm | |
+++ get_disk_size sdm | |
+++ local disk_name=sdm | |
++++ get_block_size sdm | |
++++ '[' -r /sys/block/sdm/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdm/size ']' | |
+++ BugIfError 'Could not determine size of disk sdm, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=115343360 | |
+++ local disk_size=59055800320 | |
+++ echo 59055800320 | |
++ devsize=59055800320 | |
+++ parted -s /dev/sdm print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdm 59055800320 ' | |
++ extract_partitions /dev/sdm | |
++ declare device=/dev/sdm | |
+++ get_sysfs_name /dev/sdm | |
+++ local name=sdm | |
+++ name=sdm | |
+++ [[ -e /sys/block/sdm ]] | |
+++ echo sdm | |
+++ return 0 | |
++ declare sysfs_name=sdm | |
+++ get_block_size sdm | |
+++ '[' -r /sys/block/sdm/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdm != /dev/sdm ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdm.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdn = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdn | |
+++ local name=/sys/block/sdn | |
+++ name=sdn | |
+++ [[ -n sdn ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdn ]] | |
+++ [[ -r /sys/block/sdn/dm/name ]] | |
+++ dev_number=8:208 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:208 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:208 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:208 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:208 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:208 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:208 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:208 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:208 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:208 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:208 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:208 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:208 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:208 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:208 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:208 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:208 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:208 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:208 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:208 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:208 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:208 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:208 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:208 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:208 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:208 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:208 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:208 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:208 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:208 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:208 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:208 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:208 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:208 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:208 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:208 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:208 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:208 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:208 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:208 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:208 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:208 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:208 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:208 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:208 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:208 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:208 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:208 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:208 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:208 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:208 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:208 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:208 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:208 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:208 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:208 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:208 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:208 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:208 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:208 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:208 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:208 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:208 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:208 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:208 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:208 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:208 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:208 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:208 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:208 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:208 = 253:64 ']' | |
+++ name=sdn | |
+++ echo /dev/sdn | |
+++ return 1 | |
++ devname=/dev/sdn | |
+++ get_disk_size sdn | |
+++ local disk_name=sdn | |
++++ get_block_size sdn | |
++++ '[' -r /sys/block/sdn/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdn/size ']' | |
+++ BugIfError 'Could not determine size of disk sdn, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=14680064 | |
+++ local disk_size=7516192768 | |
+++ echo 7516192768 | |
++ devsize=7516192768 | |
+++ parted -s /dev/sdn print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdn 7516192768 ' | |
++ extract_partitions /dev/sdn | |
++ declare device=/dev/sdn | |
+++ get_sysfs_name /dev/sdn | |
+++ local name=sdn | |
+++ name=sdn | |
+++ [[ -e /sys/block/sdn ]] | |
+++ echo sdn | |
+++ return 0 | |
++ declare sysfs_name=sdn | |
+++ get_block_size sdn | |
+++ '[' -r /sys/block/sdn/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdn != /dev/sdn ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdn.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdo = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdo | |
+++ local name=/sys/block/sdo | |
+++ name=sdo | |
+++ [[ -n sdo ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdo ]] | |
+++ [[ -r /sys/block/sdo/dm/name ]] | |
+++ dev_number=8:224 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:224 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:224 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:224 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:224 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:224 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:224 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:224 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:224 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:224 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:224 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:224 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:224 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:224 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:224 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:224 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:224 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:224 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:224 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:224 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:224 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:224 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:224 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:224 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:224 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:224 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:224 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:224 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:224 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:224 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:224 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:224 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:224 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:224 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:224 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:224 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:224 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:224 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:224 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:224 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:224 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:224 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:224 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:224 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:224 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:224 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:224 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:224 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:224 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:224 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:224 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:224 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:224 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:224 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:224 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:224 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:224 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:224 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:224 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:224 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:224 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:224 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:224 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:224 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:224 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:224 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:224 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:224 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:224 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:224 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:224 = 253:64 ']' | |
+++ name=sdo | |
+++ echo /dev/sdo | |
+++ return 1 | |
++ devname=/dev/sdo | |
+++ get_disk_size sdo | |
+++ local disk_name=sdo | |
++++ get_block_size sdo | |
++++ '[' -r /sys/block/sdo/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdo/size ']' | |
+++ BugIfError 'Could not determine size of disk sdo, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=14680064 | |
+++ local disk_size=7516192768 | |
+++ echo 7516192768 | |
++ devsize=7516192768 | |
+++ parted -s /dev/sdo print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdo 7516192768 ' | |
++ extract_partitions /dev/sdo | |
++ declare device=/dev/sdo | |
+++ get_sysfs_name /dev/sdo | |
+++ local name=sdo | |
+++ name=sdo | |
+++ [[ -e /sys/block/sdo ]] | |
+++ echo sdo | |
+++ return 0 | |
++ declare sysfs_name=sdo | |
+++ get_block_size sdo | |
+++ '[' -r /sys/block/sdo/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdo != /dev/sdo ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdo.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdp = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdp | |
+++ local name=/sys/block/sdp | |
+++ name=sdp | |
+++ [[ -n sdp ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdp ]] | |
+++ [[ -r /sys/block/sdp/dm/name ]] | |
+++ dev_number=8:240 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 8:240 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 8:240 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 8:240 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 8:240 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 8:240 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 8:240 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 8:240 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 8:240 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 8:240 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 8:240 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 8:240 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 8:240 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 8:240 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 8:240 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 8:240 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 8:240 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 8:240 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 8:240 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 8:240 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 8:240 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 8:240 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 8:240 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 8:240 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 8:240 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 8:240 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 8:240 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 8:240 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 8:240 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 8:240 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 8:240 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 8:240 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 8:240 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 8:240 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 8:240 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 8:240 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 8:240 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 8:240 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 8:240 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 8:240 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 8:240 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 8:240 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 8:240 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 8:240 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 8:240 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 8:240 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 8:240 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 8:240 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 8:240 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 8:240 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 8:240 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 8:240 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 8:240 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 8:240 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 8:240 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 8:240 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 8:240 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 8:240 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 8:240 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 8:240 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 8:240 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 8:240 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 8:240 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 8:240 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 8:240 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 8:240 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 8:240 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 8:240 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 8:240 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 8:240 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 8:240 = 253:64 ']' | |
+++ name=sdp | |
+++ echo /dev/sdp | |
+++ return 1 | |
++ devname=/dev/sdp | |
+++ get_disk_size sdp | |
+++ local disk_name=sdp | |
++++ get_block_size sdp | |
++++ '[' -r /sys/block/sdp/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdp/size ']' | |
+++ BugIfError 'Could not determine size of disk sdp, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdp print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdp 16106127360 ' | |
++ extract_partitions /dev/sdp | |
++ declare device=/dev/sdp | |
+++ get_sysfs_name /dev/sdp | |
+++ local name=sdp | |
+++ name=sdp | |
+++ [[ -e /sys/block/sdp ]] | |
+++ echo sdp | |
+++ return 0 | |
++ declare sysfs_name=sdp | |
+++ get_block_size sdp | |
+++ '[' -r /sys/block/sdp/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdp != /dev/sdp ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdp.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdq = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdq | |
+++ local name=/sys/block/sdq | |
+++ name=sdq | |
+++ [[ -n sdq ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdq ]] | |
+++ [[ -r /sys/block/sdq/dm/name ]] | |
+++ dev_number=65:0 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:0 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:0 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:0 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:0 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:0 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:0 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:0 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:0 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:0 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:0 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:0 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:0 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:0 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:0 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:0 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:0 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:0 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:0 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:0 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:0 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:0 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:0 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:0 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:0 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:0 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:0 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:0 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:0 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:0 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:0 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:0 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:0 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:0 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:0 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:0 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:0 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:0 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:0 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:0 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:0 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:0 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:0 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:0 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:0 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:0 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:0 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:0 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:0 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:0 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:0 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:0 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:0 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:0 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:0 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:0 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:0 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:0 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:0 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:0 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:0 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:0 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:0 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:0 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:0 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:0 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:0 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:0 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:0 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:0 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:0 = 253:64 ']' | |
+++ name=sdq | |
+++ echo /dev/sdq | |
+++ return 1 | |
++ devname=/dev/sdq | |
+++ get_disk_size sdq | |
+++ local disk_name=sdq | |
++++ get_block_size sdq | |
++++ '[' -r /sys/block/sdq/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdq/size ']' | |
+++ BugIfError 'Could not determine size of disk sdq, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31457280 | |
+++ local disk_size=16106127360 | |
+++ echo 16106127360 | |
++ devsize=16106127360 | |
+++ parted -s /dev/sdq print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdq 16106127360 ' | |
++ extract_partitions /dev/sdq | |
++ declare device=/dev/sdq | |
+++ get_sysfs_name /dev/sdq | |
+++ local name=sdq | |
+++ name=sdq | |
+++ [[ -e /sys/block/sdq ]] | |
+++ echo sdq | |
+++ return 0 | |
++ declare sysfs_name=sdq | |
+++ get_block_size sdq | |
+++ '[' -r /sys/block/sdq/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdq != /dev/sdq ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdq.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdr = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdr | |
+++ local name=/sys/block/sdr | |
+++ name=sdr | |
+++ [[ -n sdr ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdr ]] | |
+++ [[ -r /sys/block/sdr/dm/name ]] | |
+++ dev_number=65:16 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:16 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:16 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:16 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:16 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:16 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:16 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:16 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:16 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:16 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:16 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:16 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:16 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:16 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:16 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:16 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:16 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:16 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:16 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:16 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:16 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:16 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:16 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:16 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:16 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:16 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:16 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:16 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:16 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:16 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:16 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:16 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:16 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:16 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:16 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:16 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:16 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:16 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:16 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:16 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:16 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:16 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:16 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:16 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:16 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:16 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:16 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:16 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:16 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:16 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:16 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:16 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:16 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:16 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:16 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:16 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:16 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:16 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:16 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:16 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:16 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:16 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:16 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:16 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:16 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:16 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:16 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:16 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:16 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:16 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:16 = 253:64 ']' | |
+++ name=sdr | |
+++ echo /dev/sdr | |
+++ return 1 | |
++ devname=/dev/sdr | |
+++ get_disk_size sdr | |
+++ local disk_name=sdr | |
++++ get_block_size sdr | |
++++ '[' -r /sys/block/sdr/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdr/size ']' | |
+++ BugIfError 'Could not determine size of disk sdr, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=255852544 | |
+++ local disk_size=130996502528 | |
+++ echo 130996502528 | |
++ devsize=130996502528 | |
+++ parted -s /dev/sdr print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ tr -d ' ' | |
+++ cut -d : -f 2 | |
++ disktype= | |
++ echo 'disk /dev/sdr 130996502528 ' | |
++ extract_partitions /dev/sdr | |
++ declare device=/dev/sdr | |
+++ get_sysfs_name /dev/sdr | |
+++ local name=sdr | |
+++ name=sdr | |
+++ [[ -e /sys/block/sdr ]] | |
+++ echo sdr | |
+++ return 0 | |
++ declare sysfs_name=sdr | |
+++ get_block_size sdr | |
+++ '[' -r /sys/block/sdr/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdr != /dev/sdr ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdr.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sds = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sds | |
+++ local name=/sys/block/sds | |
+++ name=sds | |
+++ [[ -n sds ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sds ]] | |
+++ [[ -r /sys/block/sds/dm/name ]] | |
+++ dev_number=65:32 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:32 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:32 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:32 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:32 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:32 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:32 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:32 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:32 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:32 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:32 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:32 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:32 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:32 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:32 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:32 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:32 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:32 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:32 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:32 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:32 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:32 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:32 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:32 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:32 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:32 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:32 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:32 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:32 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:32 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:32 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:32 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:32 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:32 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:32 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:32 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:32 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:32 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:32 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:32 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:32 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:32 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:32 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:32 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:32 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:32 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:32 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:32 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:32 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:32 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:32 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:32 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:32 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:32 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:32 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:32 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:32 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:32 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:32 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:32 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:32 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:32 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:32 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:32 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:32 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:32 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:32 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:32 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:32 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:32 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:32 = 253:64 ']' | |
+++ name=sds | |
+++ echo /dev/sds | |
+++ return 1 | |
++ devname=/dev/sds | |
+++ get_disk_size sds | |
+++ local disk_name=sds | |
++++ get_block_size sds | |
++++ '[' -r /sys/block/sds/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sds/size ']' | |
+++ BugIfError 'Could not determine size of disk sds, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=255852544 | |
+++ local disk_size=130996502528 | |
+++ echo 130996502528 | |
++ devsize=130996502528 | |
+++ parted -s /dev/sds print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sds 130996502528 ' | |
++ extract_partitions /dev/sds | |
++ declare device=/dev/sds | |
+++ get_sysfs_name /dev/sds | |
+++ local name=sds | |
+++ name=sds | |
+++ [[ -e /sys/block/sds ]] | |
+++ echo sds | |
+++ return 0 | |
++ declare sysfs_name=sds | |
+++ get_block_size sds | |
+++ '[' -r /sys/block/sds/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sds != /dev/sds ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sds.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdt = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdt | |
+++ local name=/sys/block/sdt | |
+++ name=sdt | |
+++ [[ -n sdt ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdt ]] | |
+++ [[ -r /sys/block/sdt/dm/name ]] | |
+++ dev_number=65:48 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:48 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:48 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:48 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:48 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:48 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:48 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:48 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:48 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:48 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:48 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:48 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:48 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:48 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:48 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:48 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:48 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:48 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:48 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:48 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:48 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:48 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:48 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:48 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:48 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:48 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:48 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:48 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:48 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:48 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:48 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:48 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:48 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:48 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:48 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:48 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:48 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:48 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:48 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:48 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:48 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:48 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:48 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:48 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:48 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:48 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:48 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:48 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:48 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:48 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:48 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:48 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:48 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:48 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:48 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:48 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:48 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:48 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:48 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:48 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:48 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:48 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:48 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:48 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:48 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:48 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:48 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:48 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:48 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:48 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:48 = 253:64 ']' | |
+++ name=sdt | |
+++ echo /dev/sdt | |
+++ return 1 | |
++ devname=/dev/sdt | |
+++ get_disk_size sdt | |
+++ local disk_name=sdt | |
++++ get_block_size sdt | |
++++ '[' -r /sys/block/sdt/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdt/size ']' | |
+++ BugIfError 'Could not determine size of disk sdt, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=22460864 | |
+++ local disk_size=11499962368 | |
+++ echo 11499962368 | |
++ devsize=11499962368 | |
+++ parted -s /dev/sdt print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdt 11499962368 ' | |
++ extract_partitions /dev/sdt | |
++ declare device=/dev/sdt | |
+++ get_sysfs_name /dev/sdt | |
+++ local name=sdt | |
+++ name=sdt | |
+++ [[ -e /sys/block/sdt ]] | |
+++ echo sdt | |
+++ return 0 | |
++ declare sysfs_name=sdt | |
+++ get_block_size sdt | |
+++ '[' -r /sys/block/sdt/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdt != /dev/sdt ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdt.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdu = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdu | |
+++ local name=/sys/block/sdu | |
+++ name=sdu | |
+++ [[ -n sdu ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdu ]] | |
+++ [[ -r /sys/block/sdu/dm/name ]] | |
+++ dev_number=65:64 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:64 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:64 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:64 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:64 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:64 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:64 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:64 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:64 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:64 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:64 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:64 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:64 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:64 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:64 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:64 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:64 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:64 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:64 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:64 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:64 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:64 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:64 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:64 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:64 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:64 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:64 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:64 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:64 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:64 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:64 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:64 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:64 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:64 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:64 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:64 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:64 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:64 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:64 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:64 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:64 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:64 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:64 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:64 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:64 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:64 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:64 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:64 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:64 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:64 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:64 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:64 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:64 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:64 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:64 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:64 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:64 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:64 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:64 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:64 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:64 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:64 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:64 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:64 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:64 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:64 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:64 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:64 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:64 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:64 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:64 = 253:64 ']' | |
+++ name=sdu | |
+++ echo /dev/sdu | |
+++ return 1 | |
++ devname=/dev/sdu | |
+++ get_disk_size sdu | |
+++ local disk_name=sdu | |
++++ get_block_size sdu | |
++++ '[' -r /sys/block/sdu/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdu/size ']' | |
+++ BugIfError 'Could not determine size of disk sdu, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=22460864 | |
+++ local disk_size=11499962368 | |
+++ echo 11499962368 | |
++ devsize=11499962368 | |
+++ parted -s /dev/sdu print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdu 11499962368 ' | |
++ extract_partitions /dev/sdu | |
++ declare device=/dev/sdu | |
+++ get_sysfs_name /dev/sdu | |
+++ local name=sdu | |
+++ name=sdu | |
+++ [[ -e /sys/block/sdu ]] | |
+++ echo sdu | |
+++ return 0 | |
++ declare sysfs_name=sdu | |
+++ get_block_size sdu | |
+++ '[' -r /sys/block/sdu/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdu != /dev/sdu ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdu.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdv = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdv | |
+++ local name=/sys/block/sdv | |
+++ name=sdv | |
+++ [[ -n sdv ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdv ]] | |
+++ [[ -r /sys/block/sdv/dm/name ]] | |
+++ dev_number=65:80 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:80 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:80 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:80 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:80 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:80 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:80 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:80 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:80 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:80 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:80 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:80 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:80 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:80 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:80 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:80 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:80 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:80 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:80 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:80 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:80 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:80 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:80 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:80 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:80 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:80 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:80 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:80 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:80 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:80 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:80 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:80 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:80 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:80 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:80 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:80 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:80 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:80 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:80 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:80 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:80 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:80 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:80 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:80 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:80 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:80 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:80 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:80 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:80 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:80 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:80 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:80 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:80 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:80 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:80 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:80 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:80 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:80 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:80 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:80 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:80 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:80 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:80 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:80 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:80 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:80 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:80 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:80 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:80 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:80 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:80 = 253:64 ']' | |
+++ name=sdv | |
+++ echo /dev/sdv | |
+++ return 1 | |
++ devname=/dev/sdv | |
+++ get_disk_size sdv | |
+++ local disk_name=sdv | |
++++ get_block_size sdv | |
++++ '[' -r /sys/block/sdv/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdv/size ']' | |
+++ BugIfError 'Could not determine size of disk sdv, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104856000 | |
+++ local disk_size=53686272000 | |
+++ echo 53686272000 | |
++ devsize=53686272000 | |
+++ parted -s /dev/sdv print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdv 53686272000 ' | |
++ extract_partitions /dev/sdv | |
++ declare device=/dev/sdv | |
+++ get_sysfs_name /dev/sdv | |
+++ local name=sdv | |
+++ name=sdv | |
+++ [[ -e /sys/block/sdv ]] | |
+++ echo sdv | |
+++ return 0 | |
++ declare sysfs_name=sdv | |
+++ get_block_size sdv | |
+++ '[' -r /sys/block/sdv/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdv != /dev/sdv ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdv.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdw = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdw | |
+++ local name=/sys/block/sdw | |
+++ name=sdw | |
+++ [[ -n sdw ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdw ]] | |
+++ [[ -r /sys/block/sdw/dm/name ]] | |
+++ dev_number=65:96 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:96 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:96 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:96 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:96 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:96 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:96 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:96 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:96 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:96 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:96 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:96 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:96 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:96 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:96 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:96 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:96 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:96 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:96 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:96 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:96 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:96 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:96 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:96 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:96 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:96 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:96 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:96 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:96 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:96 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:96 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:96 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:96 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:96 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:96 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:96 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:96 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:96 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:96 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:96 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:96 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:96 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:96 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:96 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:96 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:96 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:96 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:96 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:96 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:96 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:96 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:96 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:96 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:96 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:96 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:96 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:96 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:96 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:96 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:96 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:96 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:96 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:96 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:96 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:96 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:96 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:96 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:96 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:96 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:96 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:96 = 253:64 ']' | |
+++ name=sdw | |
+++ echo /dev/sdw | |
+++ return 1 | |
++ devname=/dev/sdw | |
+++ get_disk_size sdw | |
+++ local disk_name=sdw | |
++++ get_block_size sdw | |
++++ '[' -r /sys/block/sdw/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdw/size ']' | |
+++ BugIfError 'Could not determine size of disk sdw, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=104856000 | |
+++ local disk_size=53686272000 | |
+++ echo 53686272000 | |
++ devsize=53686272000 | |
+++ parted -s /dev/sdw print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype=msdos | |
++ echo 'disk /dev/sdw 53686272000 msdos' | |
++ extract_partitions /dev/sdw | |
++ declare device=/dev/sdw | |
+++ get_sysfs_name /dev/sdw | |
+++ local name=sdw | |
+++ name=sdw | |
+++ [[ -e /sys/block/sdw ]] | |
+++ echo sdw | |
+++ return 0 | |
++ declare sysfs_name=sdw | |
+++ get_block_size sdw | |
+++ '[' -r /sys/block/sdw/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 2 -eq 0 ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name sdw1 | |
+++ local name=sdw1 | |
+++ name=sdw1 | |
+++ [[ -n sdw1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdw1 ]] | |
+++ name=sdw1 | |
+++ echo /dev/sdw1 | |
+++ return 1 | |
++ partition_name=/dev/sdw1 | |
++ partition_name=sdw1 | |
++ partition_name=sdw1 | |
+++ get_partition_number sdw1 | |
+++ local partition=sdw1 | |
++++ echo sdw1 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=1 | |
+++ '[' 1 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''1'\'' of partition sdw1 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 1 <= 128 )) | |
+++ StopIfError 'Partition sdw1 is numbered '\''1'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 1 | |
++ partition_nr=1 | |
++ partition_prefix=sdw | |
+++ get_disk_size sdw/sdw1 | |
+++ local disk_name=sdw/sdw1 | |
++++ get_block_size sdw | |
++++ '[' -r /sys/block/sdw/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdw/sdw1/size ']' | |
+++ BugIfError 'Could not determine size of disk sdw/sdw1, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=1024008 | |
+++ local disk_size=524292096 | |
+++ echo 524292096 | |
++ size=524292096 | |
++ [[ -r /sys/block/sdw/sdw1/start ]] | |
++ start_block=2048 | |
++ start=1048576 | |
++ echo '1 524292096 1048576' | |
++ for path in '"${sysfs_paths[@]}"' | |
+++ get_device_name sdw2 | |
+++ local name=sdw2 | |
+++ name=sdw2 | |
+++ [[ -n sdw2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdw2 ]] | |
+++ name=sdw2 | |
+++ echo /dev/sdw2 | |
+++ return 1 | |
++ partition_name=/dev/sdw2 | |
++ partition_name=sdw2 | |
++ partition_name=sdw2 | |
+++ get_partition_number sdw2 | |
+++ local partition=sdw2 | |
++++ echo sdw2 | |
++++ grep -o -E '[0-9]+$' | |
+++ local number=2 | |
+++ '[' 2 -gt 0 ']' | |
+++ StopIfError 'Partition number '\''2'\'' of partition sdw2 is not a valid number.' | |
+++ (( 0 != 0 )) | |
+++ (( 2 <= 128 )) | |
+++ StopIfError 'Partition sdw2 is numbered '\''2'\''. More than 128 partitions is not supported.' | |
+++ (( 0 != 0 )) | |
+++ echo 2 | |
++ partition_nr=2 | |
++ partition_prefix=sdw | |
+++ get_disk_size sdw/sdw2 | |
+++ local disk_name=sdw/sdw2 | |
++++ get_block_size sdw | |
++++ '[' -r /sys/block/sdw/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdw/sdw2/size ']' | |
+++ BugIfError 'Could not determine size of disk sdw/sdw2, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=103814134 | |
+++ local disk_size=53152836608 | |
+++ echo 53152836608 | |
++ size=53152836608 | |
++ [[ -r /sys/block/sdw/sdw2/start ]] | |
++ start_block=1026056 | |
++ start=525340672 | |
++ echo '2 53152836608 525340672' | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ declare disk_label | |
++ [[ -n y ]] | |
++ parted -m -s /dev/sdw print | |
+++ grep '^/' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 6 | |
++ disk_label=msdos | |
++ cp /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions-data | |
++ declare type | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ declare -i has_logical | |
++ read partition_nr size start junk | |
++ (( 1 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^1 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ (( 2 > 4 )) | |
++ declare type=primary | |
++ sed -i '/^2 /s/$/ primary/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \g\p\t ]] | |
++ declare flags flaglist | |
++ [[ -n y ]] | |
++ read partition_nr size start junk | |
+++ grep '^1:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='boot type=83' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ boot = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=boot, | |
++ for flag in '$flaglist' | |
++ [[ type=83 = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z boot, ]] | |
++ sed -i '/^1 /s/$/ boot/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
+++ grep '^2:' /tmp/rear.VZOWI6DKsm45UgS/tmp/parted | |
+++ cut -d : -f 7 | |
+++ tr -d , | |
+++ tr -d ';' | |
++ flaglist='lvm type=8e' | |
++ flags= | |
++ for flag in '$flaglist' | |
++ [[ lvm = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ flags=lvm, | |
++ for flag in '$flaglist' | |
++ [[ type=8e = @(boot|root|swap|hidden|raid|lvm|lba|palo|legacy_boot|bios_grub) ]] | |
++ [[ -z lvm, ]] | |
++ sed -i '/^2 /s/$/ lvm/' /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions | |
++ read partition_nr size start junk | |
++ [[ msdos = \m\s\d\o\s ]] | |
++ [[ -n '' ]] | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/sdw1 | |
+++ get_device_name /dev/sdw1 | |
+++ local name=sdw1 | |
+++ name=sdw1 | |
+++ [[ -n sdw1 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdw1 ]] | |
+++ name=sdw1 | |
+++ echo /dev/sdw1 | |
+++ return 1 | |
++ echo 'part /dev/sdw 524292096 1048576 primary boot /dev/sdw1' | |
++ read partition_nr size start type flags junk | |
++ partition_name=/dev/sdw2 | |
+++ get_device_name /dev/sdw2 | |
+++ local name=sdw2 | |
+++ name=sdw2 | |
+++ [[ -n sdw2 ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdw2 ]] | |
+++ name=sdw2 | |
+++ echo /dev/sdw2 | |
+++ return 1 | |
++ echo 'part /dev/sdw 53152836608 525340672 primary lvm /dev/sdw2' | |
++ read partition_nr size start type flags junk | |
++ for disk in '/sys/block/*' | |
++ [[ sdx = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdx | |
+++ local name=/sys/block/sdx | |
+++ name=sdx | |
+++ [[ -n sdx ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdx ]] | |
+++ [[ -r /sys/block/sdx/dm/name ]] | |
+++ dev_number=65:112 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:112 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:112 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:112 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:112 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:112 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:112 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:112 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:112 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:112 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:112 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:112 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:112 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:112 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:112 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:112 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:112 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:112 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:112 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:112 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:112 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:112 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:112 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:112 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:112 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:112 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:112 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:112 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:112 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:112 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:112 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:112 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:112 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:112 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:112 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:112 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:112 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:112 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:112 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:112 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:112 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:112 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:112 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:112 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:112 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:112 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:112 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:112 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:112 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:112 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:112 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:112 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:112 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:112 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:112 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:112 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:112 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:112 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:112 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:112 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:112 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:112 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:112 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:112 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:112 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:112 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:112 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:112 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:112 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:112 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:112 = 253:64 ']' | |
+++ name=sdx | |
+++ echo /dev/sdx | |
+++ return 1 | |
++ devname=/dev/sdx | |
+++ get_disk_size sdx | |
+++ local disk_name=sdx | |
++++ get_block_size sdx | |
++++ '[' -r /sys/block/sdx/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdx/size ']' | |
+++ BugIfError 'Could not determine size of disk sdx, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31456800 | |
+++ local disk_size=16105881600 | |
+++ echo 16105881600 | |
++ devsize=16105881600 | |
+++ parted -s /dev/sdx print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdx 16105881600 ' | |
++ extract_partitions /dev/sdx | |
++ declare device=/dev/sdx | |
+++ get_sysfs_name /dev/sdx | |
+++ local name=sdx | |
+++ name=sdx | |
+++ [[ -e /sys/block/sdx ]] | |
+++ echo sdx | |
+++ return 0 | |
++ declare sysfs_name=sdx | |
+++ get_block_size sdx | |
+++ '[' -r /sys/block/sdx/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdx != /dev/sdx ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdx.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdy = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdy | |
+++ local name=/sys/block/sdy | |
+++ name=sdy | |
+++ [[ -n sdy ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdy ]] | |
+++ [[ -r /sys/block/sdy/dm/name ]] | |
+++ dev_number=65:128 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:128 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:128 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:128 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:128 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:128 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:128 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:128 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:128 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:128 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:128 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:128 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:128 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:128 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:128 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:128 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:128 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:128 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:128 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:128 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:128 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:128 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:128 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:128 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:128 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:128 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:128 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_2 | |
+++ mapper_number=253:20 | |
+++ '[' 65:128 = 253:20 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3log | |
+++ mapper_number=253:15 | |
+++ '[' 65:128 = 253:15 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3nfs | |
+++ mapper_number=253:34 | |
+++ '[' 65:128 = 253:34 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ora | |
+++ mapper_number=253:35 | |
+++ '[' 65:128 = 253:35 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3scs | |
+++ mapper_number=253:37 | |
+++ '[' 65:128 = 253:37 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sbd1 | |
+++ mapper_number=253:19 | |
+++ '[' 65:128 = 253:19 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_1 | |
+++ mapper_number=253:28 | |
+++ '[' 65:128 = 253:28 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbackup_2 | |
+++ mapper_number=253:30 | |
+++ '[' 65:128 = 253:30 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_1 | |
+++ mapper_number=253:25 | |
+++ '[' 65:128 = 253:25 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybbin_2 | |
+++ mapper_number=253:26 | |
+++ '[' 65:128 = 253:26 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_1 | |
+++ mapper_number=253:21 | |
+++ '[' 65:128 = 253:21 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_sybdata_2 | |
+++ mapper_number=253:22 | |
+++ '[' 65:128 = 253:22 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_1 | |
+++ mapper_number=253:23 | |
+++ '[' 65:128 = 253:23 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_syblog_2 | |
+++ mapper_number=253:24 | |
+++ '[' 65:128 = 253:24 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_crash | |
+++ mapper_number=253:13 | |
+++ '[' 65:128 = 253:13 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_depot | |
+++ mapper_number=253:11 | |
+++ '[' 65:128 = 253:11 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_home | |
+++ mapper_number=253:0 | |
+++ '[' 65:128 = 253:0 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_opt | |
+++ mapper_number=253:1 | |
+++ '[' 65:128 = 253:1 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_ora | |
+++ mapper_number=253:2 | |
+++ '[' 65:128 = 253:2 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_root | |
+++ mapper_number=253:3 | |
+++ '[' 65:128 = 253:3 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_swap | |
+++ mapper_number=253:4 | |
+++ '[' 65:128 = 253:4 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_tmp | |
+++ mapper_number=253:5 | |
+++ '[' 65:128 = 253:5 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr | |
+++ mapper_number=253:6 | |
+++ '[' 65:128 = 253:6 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_usr_sap | |
+++ mapper_number=253:7 | |
+++ '[' 65:128 = 253:7 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var | |
+++ mapper_number=253:8 | |
+++ '[' 65:128 = 253:8 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_log | |
+++ mapper_number=253:9 | |
+++ '[' 65:128 = 253:9 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lv_var_op | |
+++ mapper_number=253:10 | |
+++ '[' 65:128 = 253:10 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00-lvusrsap | |
+++ mapper_number=253:12 | |
+++ '[' 65:128 = 253:12 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_home | |
+++ mapper_number=253:59 | |
+++ '[' 65:128 = 253:59 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_opt | |
+++ mapper_number=253:54 | |
+++ '[' 65:128 = 253:54 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_root | |
+++ mapper_number=253:61 | |
+++ '[' 65:128 = 253:61 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_swap | |
+++ mapper_number=253:62 | |
+++ '[' 65:128 = 253:62 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_tmp | |
+++ mapper_number=253:55 | |
+++ '[' 65:128 = 253:55 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr | |
+++ mapper_number=253:60 | |
+++ '[' 65:128 = 253:60 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_usr_sap | |
+++ mapper_number=253:53 | |
+++ '[' 65:128 = 253:53 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var | |
+++ mapper_number=253:58 | |
+++ '[' 65:128 = 253:58 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_crash | |
+++ mapper_number=253:63 | |
+++ '[' 65:128 = 253:63 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_log | |
+++ mapper_number=253:56 | |
+++ '[' 65:128 = 253:56 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vg00_SAN-lv_var_opt | |
+++ mapper_number=253:57 | |
+++ '[' 65:128 = 253:57 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora-lvP12ora | |
+++ mapper_number=253:65 | |
+++ '[' 65:128 = 253:65 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora | |
+++ mapper_number=253:68 | |
+++ '[' 65:128 = 253:68 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_0_0 | |
+++ mapper_number=253:66 | |
+++ '[' 65:128 = 253:66 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgP12ora02-lvP12ora-missing_1_0 | |
+++ mapper_number=253:67 | |
+++ '[' 65:128 = 253:67 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor vgT00data-lvsapdata1 | |
+++ mapper_number=253:64 | |
+++ '[' 65:128 = 253:64 ']' | |
+++ name=sdy | |
+++ echo /dev/sdy | |
+++ return 1 | |
++ devname=/dev/sdy | |
+++ get_disk_size sdy | |
+++ local disk_name=sdy | |
++++ get_block_size sdy | |
++++ '[' -r /sys/block/sdy/queue/logical_block_size ']' | |
++++ echo 512 | |
+++ local block_size=512 | |
+++ '[' -r /sys/block/sdy/size ']' | |
+++ BugIfError 'Could not determine size of disk sdy, please file a bug.' | |
+++ (( 0 != 0 )) | |
+++ local nr_blocks=31456800 | |
+++ local disk_size=16105881600 | |
+++ echo 16105881600 | |
++ devsize=16105881600 | |
+++ parted -s /dev/sdy print | |
+++ grep -E 'Partition Table|Disk label' | |
+++ cut -d : -f 2 | |
+++ tr -d ' ' | |
++ disktype= | |
++ echo 'disk /dev/sdy 16105881600 ' | |
++ extract_partitions /dev/sdy | |
++ declare device=/dev/sdy | |
+++ get_sysfs_name /dev/sdy | |
+++ local name=sdy | |
+++ name=sdy | |
+++ [[ -e /sys/block/sdy ]] | |
+++ echo sdy | |
+++ return 0 | |
++ declare sysfs_name=sdy | |
+++ get_block_size sdy | |
+++ '[' -r /sys/block/sdy/queue/logical_block_size ']' | |
+++ echo 512 | |
++ declare block_size=512 | |
++ sysfs_paths=(/sys/block/$sysfs_name/$sysfs_name*) | |
++ declare -a sysfs_paths | |
++ declare path sysfs_path | |
++ [[ 0 -eq 0 ]] | |
++ [[ /dev/sdy != /dev/sdy ]] | |
++ : | |
++ declare partition_name partition_prefix start_block | |
++ declare partition_nr size start | |
++ [[ ! -s /tmp/rear.VZOWI6DKsm45UgS/tmp/partitions ]] | |
++ Debug 'No partitions found on /dev/sdy.' | |
++ test '' | |
++ return | |
++ for disk in '/sys/block/*' | |
++ [[ sdz = @(hd*|sd*|cciss*|vd*|xvd*) ]] | |
+++ get_device_name /sys/block/sdz | |
+++ local name=/sys/block/sdz | |
+++ name=sdz | |
+++ [[ -n sdz ]] | |
+++ BugIfError 'Empty string passed to get_device_name' | |
+++ (( 0 != 0 )) | |
+++ local device dev_number mapper_number | |
+++ [[ -d /sys/block/sdz ]] | |
+++ [[ -r /sys/block/sdz/dm/name ]] | |
+++ dev_number=65:144 | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c | |
+++ mapper_number=253:14 | |
+++ '[' 65:144 = 253:14 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part1 | |
+++ mapper_number=253:27 | |
+++ '[' 65:144 = 253:27 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600508b1001fffffa004e8d59768000c_part2 | |
+++ mapper_number=253:29 | |
+++ '[' 65:144 = 253:29 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91d48ce30012 | |
+++ mapper_number=253:48 | |
+++ '[' 65:144 = 253:48 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e1f7e30013 | |
+++ mapper_number=253:50 | |
+++ '[' 65:144 = 253:50 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc91e627960014 | |
+++ mapper_number=253:49 | |
+++ '[' 65:144 = 253:49 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc920b9c0c0014 | |
+++ mapper_number=253:40 | |
+++ '[' 65:144 = 253:40 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600805f3001030c0acdc9219681e0016 | |
+++ mapper_number=253:41 | |
+++ '[' 65:144 = 253:41 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da84954c063f4c01000000 | |
+++ mapper_number=253:17 | |
+++ '[' 65:144 = 253:17 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff252063f4c01000000 | |
+++ mapper_number=253:18 | |
+++ '[' 65:144 = 253:18 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor 3600c0ff000da8ff2f9043f4c01000000 | |
+++ mapper_number=253:16 | |
+++ '[' 65:144 = 253:16 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor control | |
+++ mapper_number= | |
+++ '[' 65:144 = '' ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ascs | |
+++ mapper_number=253:47 | |
+++ '[' 65:144 = 253:47 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_1 | |
+++ mapper_number=253:38 | |
+++ '[' 65:144 = 253:38 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2 | |
+++ mapper_number=253:43 | |
+++ '[' 65:144 = 253:43 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part1 | |
+++ mapper_number=253:51 | |
+++ '[' 65:144 = 253:51 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3data_2_part2 | |
+++ mapper_number=253:52 | |
+++ '[' 65:144 = 253:52 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3log | |
+++ mapper_number=253:39 | |
+++ '[' 65:144 = 253:39 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3nfs | |
+++ mapper_number=253:45 | |
+++ '[' 65:144 = 253:45 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3ora | |
+++ mapper_number=253:44 | |
+++ '[' 65:144 = 253:44 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_NA3scs | |
+++ mapper_number=253:46 | |
+++ '[' 65:144 = 253:46 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa1_sbd1 | |
+++ mapper_number=253:42 | |
+++ '[' 65:144 = 253:42 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_1 | |
+++ mapper_number=253:31 | |
+++ '[' 65:144 = 253:31 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_HP2bin_2 | |
+++ mapper_number=253:32 | |
+++ '[' 65:144 = 253:32 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3ascs | |
+++ mapper_number=253:36 | |
+++ '[' 65:144 = 253:36 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings -o major,minor msa2_NA3data_1 | |
+++ mapper_number=253:33 | |
+++ '[' 65:144 = 253:33 ']' | |
+++ for device in '/dev/mapper/*' | |
++++ dmsetup info -c --noheadings - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment