HPUX :: LVM.HPUX LVM ±¸Á¶¸¦ ó¸®ÇÏ´Â Perl ±â´É | |
Áö±Ý ´Ù¿î·Îµå |
HPUX :: LVM. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Christopher White
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~cwhite/
HPUX :: LVM. ű×
HPUX :: LVM. ¼³¸í
HPUX LVM ±¸Á¶¸¦ ó¸®ÇÏ´Â Perl ±â´É HPUX :: LVMÀº LVM ¸í·É vgdisplay ¹× lvdisplay ¹× pvdisplay¿¡¼ Ãâ·ÂÀ» °¡Á® ¿Í¼ ´ÙÀ½°ú °°Àº ¹æ½ÄÀ¸·Î Çؽà Çؽÿ¡ ´ÙÀ½°ú °°ÀÌ Çؽÿ¡ µÎ´Â Perl ¸ðµâÀÔ´Ï´Ù. '/ dev / vg08'=> Çؽà (0x404214c8) ' act_pv '=> 4'alloc_pe '=> 24'cur_lv '=> 2'cur_pv '=> 4'free_pe '=> 0'max_lv '=> 255'max_pe_per_pv '=> 1023'max_pv '=> 16'open_lv ' => 2 'pe_size_mbytes'=> 4 'physical_vols'=> Çؽà (0x40421510) '/ dev / dsk / c3t12d0'=> Çؽà (0x404215A0) 'free_pe'=> 0 'pv_status'=> '»ç¿ë °¡´É' 'total_pe'= > 1023 '/ dev / dsk / c3t13d0'=> Çؽà (0x40421528) 'free_pe'=> 0 'pv_status'=> '»ç¿ë °¡´É' 'total_pe'=> 1023 '/ dev / dsk / c3t14d0'=> Çؽà (0x40421564) 'free_pe'=> 0 'pv_status'=> '»ç¿ë °¡´É' '/ dev / dsk / c3t15d0'=> Çؽà (0x404215dc) 'free_pe'=> 0 'pv_status'=> '»ç¿ë °¡´É' ''total_pe '=> 1023'total_pe '=> 4092'total_pvg '=> 0'vgda '=> 8'vg_status '=>'»ç¿ë °¡´É ''vg_write_access '=>'Àбâ / ¾²±â ''lvols '=> Çؽà (0x4042166c)' lvol1 '=> Çؽà (0x40421684)'allocated_pe '=> 2046 'current_le'=> 2046 'lv_size'=> 8184 'lv_status'=> '»ç¿ë °¡´ÉÇÑ / syncd' 'pv_data'=> hash (0x4042178c) '/ dev / dsk / c3t14d0'=> Çؽà (0x404217a4) 'le_on_pv'= > 1023 'PE_ON_PV'=> 1023 '/ dev / dsk / c3t15d0'=> Çؽà (0x404217d4) 'le_on_pv'=> 1023 'usex_pv'=> 2 'lvdata'=> Çؽà (0x404216b4) ' allocated_pe '=> 2046'ÇÒ´ç '=>'¾ö°ÝÇÑ ''bad_block '=>'on '' 'scriency_recovery'=> 'mwc' 'curress_le'=> 2046 'io_timeout_seconds'=> 'default' 'lv_permission'=> 'ÀÐÀ¸½Ê½Ã¿À / write ''lv_size_mbytes '=> 8184'lv_status '=>'»ç¿ë °¡´ÉÇÑ / syncd ''mirror_copies '=> 0'ÀÏÁ¤ '=>'º´·Ä ''stripe_size_kbytes '=> 0'ÁÙ¹«´Ì '=> 0'vg_name '=> '/ dev / vg08' 'lvol2'=> hash (0x40422834) 'allocated_pe'=> 2046 'current_le'=> 2046 'lv_size'=> 8184 'lv_status'=> '»ç¿ë °¡´ÉÇÑ / syncd' 'pv_data'=> Çؽà ( 0x4042293c) '/ dev / dsk / c3t12d0'=> Çؽà (0x4042984) 'le_on_pv'=> 1023 '/ dev / dsk / c3t13d0'=> Çؽà (0x40422954) 'le_on_pv'=> 1023 'pe_on_pv '=> 1023'used_pv '=> 2'lvdata '=>´Â h (0x40422864) 'ÇÒ´ç'=> '¾ö°ÝÇÑ' 'bad_block'=> ''mwc ''currecout_le '=> 2046'io_timeout_seconds '=>'default ''lv_permission '=>'Àбâ / ¾²±â ''lv_size_mbytes '=> 8184'lv_status '=>'»ç¿ë °¡´ÉÇÑ / syncd ''mirror_copies '=> 0'ÀÏÁ¤ '=>'º´·Ä ''stripe_size_kbytes '=> 0'ÁÙ¹«´Ì '=> 0 'vg_name'=> '/ dev / vg08'each ¼Ó¼ºÀº ¸í·ÉÀÇ Ãâ·Â°ú µ¿ÀÏÇÏÁö¸¸ °ø¹é ´ë½Å¿¡ ¹ØÁÙÀÌÀÖ´Â "ÇÒ´ç µÈ PE"´Â "ÇÒ´ç µÈ PE"°¡ "ÇҷεǾî _PE"ÀÔ´Ï´Ù. ¶ÇÇÑ "physical_vols", "lvols", "lvdata"¹× "pv_data"Ư¼ºÀ» Ãß°¡ÇؾßÇß½À´Ï´Ù. (³í¸®Àû º¼·ý µ¥ÀÌÅÍÀÇ °æ¿ì) "physical_vols"´Â VG "alternate_links"ÀÇ ¸ðµç ¹°¸® º¼·ý¿¡ ´ëÇÑ Çؽà refrecce´Â ÇØ´ç ÀåÄ¡¿¡ ´ëÇÑ ¸ðµç ¸µÅ©°¡ Æ÷ÇÔ µÈ °¢ ¹°¸®Àû Vol ¾Æ·¡ÀÇ ¹è¿ refrenceÀÔ´Ï´Ù (ÀÖ´Â °æ¿ì). ¸µÅ©°¡¾ø´Â °æ¿ì ù ¹ø° ¹è¿ ¿ä¼Ò°¡ "¾øÀ½"ÀÔ´Ï´Ù. (À§¿¡ ³ª¿µÇÁö ¾Ê¾ÒÁö¸¸ "Physical_vols" "LVOLS"´Â VG "LV_DATA"ÀÇ ¸ðµç º¼·ý ±×·ìÀÇ Çؽà °»½ÅÀÌ¸ç ³í¸® º¼·ýÀÇ Ãâ·ÂÀÇ LVDISPLAYSÀÇ Çؽà ȫº¸ÀÔ´Ï´Ù. "PV_DATA"´Â ¸ðµç °Í¿¡ ´ëÇÑ Çؽà ȫº¸ÀÔ´Ï´Ù. º¼·ý ±×·ìÀ» ±¸¼ºÇÏ´Â ¹°¸®Àû º¼·ý°ú °¢°¢¿¡ »ç¿ëµÇ´Â °ø°£ÀÌ ¾ó¸¶³ªµÇ´ÂÁö¿Í Á¦°øµÈ ¸Þ¼µå (¼ºê ·çƾ)¸¦ ÅëÇØ ¾×¼¼½º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¼»ó½Ã ³» $ lvminfo_data = new hpux :: lvminfo (target_type => local ", persistance) => "new", access_prog => "ssh", access_system => "localhost", access_user => "root"); $ arref2 = $ lvminfo_data-> get_all_volumegroups (); foreach $ vg (@ $ arref2) {print " º¼·ý ±×·ì : $ VG. "; @save_vgs, $ vg_save = $ vg;} $ arref2a = $ lvminfo_data-> get_vg_physicalvols (volume_group => $ vg_save); VG : $ vg_saveÀÇ ¹°¸®Àû º¼À» ÀμâÇϽʽÿÀ "À§Á¶ $ pvinvg (@ $ ARREF2A) {Àμâ"$ pvinvg ", @save_pvs, $ pvinvg_save = $ pvinvg_save = $ pvinvg;} ¿ä±¸ »çÇ× : ¡¤ Perl.
HPUX :: LVM. °ü·Ã ¼ÒÇÁÆ®¿þ¾î