[HP-UX] diskÃß°¡¿¡¼­ º¼·ý »ý¼º±îÁö
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2014-11-27 10:26:17
 

µð½ºÅ©ÀÎ½Ä -> º¼·ý±×·ì »ý¼º -> Logical Volume »ý¼º -> ÆÄÀϽýºÅÛ »ý¼º
 
ÀÇ ¼øÀ¸·Î °¨.
 
µð½ºÅ© ÀνÄ
#
# ioscan -fnC disk
Class        I  H/W Path        Driver         S/W State   H/W Type     Description
======================================================================
==============
disk         2  0/0/2/1.0.16.0.0     sdisk          CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
           &#16
0;           &#
160;       /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         3  0/3/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c6t0d0   /dev/rdsk/c6t0d0
disk         1  0/4/1/0.0.0.0.0      sdisk          CLAIMED     DEVICE       HP      IR Volume
           &#16
0;           &#
160;       /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2
           &#16
0;           &#
160;       /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3
disk         4  0/7/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c7t0d0   /dev/rdsk/c7t0d0
 
½Å±Ô ÀÎ½ÄµÈ ³ðÀÌ  c6¿Í c7.
 
 
 
* (legacy) hardware path, lunpath hardware path, and LUN hardware path µîÀ» È®ÀÎÇÏ·Á¸é~
 
# ioscan -m dsf
Persistent DSF           Legacy DSF(s)
========================================
/dev/rdisk/disk1         /dev/rdsk/c2t0d0
/dev/rdisk/disk1_p1      /dev/rdsk/c2t0d0s1
/dev/rdisk/disk1_p2      /dev/rdsk/c2t0d0s2
/dev/rdisk/disk1_p3      /dev/rdsk/c2t0d0s3
/dev/pt/pt2         &#160
;    /dev/rscsi/c3t0d0
           &#16
0;           &#
160; /dev/rscsi/c4t0d0
/dev/rtape/tape1_BEST    /dev/rmt/c1t3d0BEST
/dev/rtape/tape1_BESTn   /dev/rmt/c1t3d0BESTn
/dev/rtape/tape1_BESTb   /dev/rmt/c1t3d0BESTb
/dev/rtape/tape1_BESTnb   /dev/rmt/c1t3d0BESTnb
/dev/rdisk/disk17        /dev/rdsk/c5t0d0
           &#16
0;           &#
160; /dev/rdsk/c6t0d0
/dev/rdisk/disk18        /dev/rdsk/c5t0d1
           &#16
0;           &#
160; /dev/rdsk/c6t0d1
/dev/rdisk/disk19        /dev/rdsk/c5t0d2
           &#16
0;           &#
160; /dev/rdsk/c6t0d2
/dev/rdisk/disk20        /dev/rdsk/c5t0d3
           &#16
0;           &#
160; /dev/rdsk/c6t0d3
/dev/rdisk/disk21        /dev/rdsk/c5t0d4
           &#16
0;           &#
160; /dev/rdsk/c6t0d4
/dev/rdisk/disk22        /dev/rdsk/c5t0d5
           &#16
0;           &#
160; /dev/rdsk/c6t0d5
 
 
 
 
 
 
µð½ºÅ© ¿ë·® È®ÀÎ
# diskinfo /dev/rdsk/c6t0d0
vendor: DGC
product id: CX3-10cWDR5
type: direct access
size: 75497472 Kbytes
bytes per sector: 512
 
 
EMC ½ºÅ丮Áö¿¡ ÀÎ½ÄµÈ ³»¿ë È®ÀÎ(powerpath ¼³Ä¡½Ã)
# powermt display dev=all
CLARiiON ID=CK200080400034
Logical device ID=600601601C901E00A48464F69E23E011
state=dead; policy=CLAROpt; priority=0; queued-IOs=0;
Owner: default=SP B, current=SP B       Array failover mode: 1
======================================================================
========
--------------- Host ---------------   - Stor -   -- I/O Path --  -- Stats ---
###  HW Path           
    I/O Paths    Interf.   Mode    State   Q-IOs Errors
======================================================================
========
   6 0/3/1/0.1.0.0.0.0.0      c6t0d0    SP B2     active  dead        0      1
   7 0/7/1/0.1.0.0.0.0.0      c7t0d0    SP A2     active  dead        0      1
 
±×·±µ¥ »óÅ°¡ dead.
 
# ioscan -fnCdisk
Class        I  H/W Path        Driver         S/W State   H/W Type     Description
======================================================================
==============
disk         2  0/0/2/1.0.16.0.0     sdisk          CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
           &#16
0;           &#
160;       /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         3  0/3/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c6t0d0   /dev/rdsk/c6t0d0
disk         1  0/4/1/0.0.0.0.0      sdisk          CLAIMED     DEVICE       HP      IR Volume
           &#16
0;           &#
160;       /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2
           &#16
0;           &#
160;       /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3
disk         4  0/7/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c7t0d0   /dev/rdsk/c7t0d0
ÇØ´ç µð½ºÅ© »èÁ¦ÈÄ ÀçÀÎ½Ä Çϱâ·Î ÇÔ.

#
#
# rmsf -H 0/3/1/0.1.0.0.0.0.0
# rmsf -H 0/7/1/0.1.0.0.0.0.0
 
µð½ºÅ© ÀçÀνÄ
# ioscan -fnCdisk          &#
160;     
Class        I  H/W Path        Driver         S/W State   H/W Type     Description
======================================================================
==============
disk         2  0/0/2/1.0.16.0.0     sdisk          CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
           &#16
0;           &#
160;       /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         3  0/3/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
disk         1  0/4/1/0.0.0.0.0      sdisk          CLAIMED     DEVICE       HP      IR Volume
           &#16
0;           &#
160;       /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2
           &#16
0;           &#
160;       /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3
disk         4  0/7/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
CX3-10cWDR5·Î µÎ³ð ÀâÈû.

#
#
# ioscan -fnkCdisk          &
#160;   ---> Ä¿³Î¿¡¼­ Á¤º¸¸¦ °¡Á®¿È
Class        I  H/W Path        Driver         S/W State   H/W Type     Description
======================================================================
==============
disk         2  0/0/2/1.0.16.0.0     sdisk          CLAIMED     DEVICE       TEAC    DVD-ROM DW-224EV
           &#16
0;           &#
160;       /dev/dsk/c0t0d0   /dev/rdsk/c0t0d0
disk         3  0/3/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c6t0d0   /dev/rdsk/c6t0d0
disk         1  0/4/1/0.0.0.0.0      sdisk          CLAIMED     DEVICE       HP      IR Volume
           &#16
0;           &#
160;       /dev/dsk/c3t0d0     /dev/dsk/c3t0d0s2   /dev/rdsk/c3t0d0    /dev/rdsk/c3t0d0s2
           &#16
0;           &#
160;       /dev/dsk/c3t0d0s1   /dev/dsk/c3t0d0s3   /dev/rdsk/c3t0d0s1  /dev/rdsk/c3t0d0s3
disk         4  0/7/1/0.1.0.0.0.0.0  sdisk          CLAIMED     DEVICE       DGC     CX3-10cWDR5
           &#16
0;           &#
160;       /dev/dsk/c7t0d0   /dev/rdsk/c7t0d0
#
#
# insf -eCdisk         --> disk¸¦ device¸í¿¡ ¸ÅÇÎÇÔ
insf: Installing special files for sdisk instance 2 address 0/0/2/1.0.16.0.0
insf: Installing special files for sdisk instance 3 address 0/3/1/0.1.0.0.0.0.0
insf: Installing special files for sdisk instance 1 address 0/4/1/0.0.0.0.0
insf: Installing special files for sdisk instance 4 address 0/7/1/0.1.0.0.0.0.0
#
# pvcreate -f /dev/rdsk/c6t0d0
# pvcreate -f /dev/rdsk/c7t0d0
 
ÀÌÁ¦ /dev/dsk/c6t0d0  ¿Í /dev/dsk/c7t0d0  À̶ó´Â PV°¡ »ý¼ºµÇ¾ú´Ù.
 
 
 
º¼·ý±×·ì »ý¼º
 
# mkdir /dev/vg01
# ls -l /dev/vg00
ÃÑ 0 ºí·ÏÀÔ´Ï´Ù.
crw-r-----   1 root       sys         64 0x000000 2009.12.21   group
brw-r-----   1 root       sys         64 0x000001 2009.12.21   lvol1
brw-r-----   1 root       sys         64 0x000002 2009.12.21   lvol2
brw-r-----   1 root       sys         64 0x000003 2009.12.21   lvol3
brw-r-----   1 root       sys         64 0x000004 2009.12.29   lvol4
crw-r-----   1 root       sys         64 0x000001 2009.12.21   rlvol1
crw-r-----   1 root       sys         64 0x000002 2009.12.21   rlvol2
crw-r-----   1 root       sys         64 0x000003 2009.12.21   rlvol3
crw-r-----   1 root       sys         64 0x000004 2009.12.29   rlvol4
 
vg00 ÀÇ minor number °¡ 0x000000 À̹ǷΠ»õ·Î¿î  vg01ÀÇ minor number·Î 0x010000¸¦ ¾²µµ·Ï ÇÑ´Ù.
 
# mknod /dev/vg01/group c 64 0x010000          &#
160;        c:character device / 64 : major number µð½ºÅ©Å¸ÀÔÀº 64·Î °íÁ¤
#
# vgcreate vg01 /dev/dsk/c6t0d0 /dev/dsk/c7t0d0
º¼·ý±×·ì »ý¼ºµÊ.
 
»ý¼º È®ÀÎ
# vgdisplay -v vg01
# pvdisplay -v /dev/dsk/c6t0d0
# pvdisplay -v /dev/dsk/c7t0d0
 
Âü°í : ½Ç¼ö·Î ÀÎÇؼ­ »èÁ¦µÈ vgÀÇ Á¤º¸¸¦ Àç»ý¼º => #vgscan
volume group È®ÀÎ => # strings /etc/lvmtab
 
 
(Ãß°¡)  vgcreate ´ÙÀ½°ú °°Àº ¿¡·¯ ¹ß»ý½Ã
# vgcreate vg01 /dev/dsk/c6t0d0
vgcreate : couldn't open physical volume "/dev/dsk/c6t0d0"
Device busy.
 
ÀÌ°Ç /dev/dsk/c6t0d0 µð½ºÅ©°¡ ´Ù¸¥ vgµî¿¡ ÀÌ¹Ì µé¾î°¡ Àֱ⠶§¹®ÀÓ. ±×·Á¸é vg¿¡¼­ ÇØ´ç º¼·ýÀ» »©¸é µÇ°ÚÁö?
# vgreduce vg01 /dev/dsk/c6t0d0
vgreduce : couldn't query physical volume "/dev/dsk/c6t0d0 "
 
ÀÌ »óÅ´ /dev/dsk/c6t0d0  °¡ ghost disk°¡ µÈ °ÍÀÓ.
# vgreduce -f vg01           
     --> vg01 ¿¡ ÀÖ´Â freeÇÑ pv¸¸ Á¦°ÅÇØÁÜ (lv°¡ ¾ø´Â pv)
ȤÀº
# vgreduce -l vg01 /dev/dsk/c6t0d0 
·Î Á¦°Å °¡´ÉÇÔ.
 
 
 
 
º¼·ý±×·ì »êÇÏÀÇ LV ¸¸µé±â
 
# lvcreate -L 10240 vg01
-n ¿É¼ÇÀ¸·Î lv À̸§À» µû·Î ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é ÀÚµ¿À¸·Î lvol1 À̶ó´Â lv°¡ »ý±ä´Ù.
10240 Àº MB´ÜÀ§.
 
»ý¼º È®ÀÎ
# vgdisplay -v vg01
# ls -l /dev/vg01
 
 
ÆÄÀϽýºÅÛ »ý¼º&mount
# newfs -F vxfs -o largefiles /dev/vg01/rlvol1         
    
 
/dev/vg01/lvol1 ÀÌ block device  /dev/vg01/rlvol1ÀÌ character device À̹ǷΠrlvol1 µð¹ÙÀ̽º¸¦ ÀÌ¿ëÇؼ­ ÆÄÀϽýºÅÛÀ» »ý¼ºÇÑ´Ù.
 
# mount -F vxfs -o largefiles /dev/vg01/lvol1 /data  
¶ó°í Çصµ µÇ°ÚÁö¸¸ ±âŸ ´Ù¸¥ ¸¶¿îÆ® ¿É¼Çµµ ÇÊ¿äÇϹǷΠ/etc/fstab¿¡ µî·ÏÇÏ°í mount Çϵµ·Ï ÇÑ´Ù.
 
# vi /etc/fstab
/dev/vg01/lvol1 /data vxfs rw,suid,largefiles,delaylog,datainlog 0 2
 
¿Í °°ÀÌ µî·ÏÇؼ­ ÀúÀåÇÏ°í.
 
# mount /data
 
À§ ¿É¼ÇµéÀÌ ±â¾ïÀÌ ¾È³ª¸é sam À» ÀÌ¿ëÇؼ­ »ý¼ºÇØÁÖ¸é ¿É¼ÇÀÌ ÀÚµ¿»ý¼ºµÈ´Ù.
 
 
 
* FC µð½ºÅ© °ü¸®
FC HBAÄ«µå °Ë»öÇϱâ
# ioscan -fnkC fc
 
°Ë»öÇÑ HBAÄ«µå Á¤º¸º¸±â(WWN µî È®ÀÎÇÒ¶§)
# fcmsutil /dev/fcd0
 
HBAÄ«µå°¡ ¼³Ä¡µÈ ½½·Ô(slot)º¸±â
# olrad -q
ÀÇ °á°ú¿Í ioscan ÀÇ H/W path¸¦ ºñ±³ÇÏ¸é ¾Ë¼ö ÀÖÀ½.
 
 


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦