본문 바로가기
HP-UX

[HP-UX] HP-UX 새로운 disk로 volume group 만들기

by 레이루이 2008. 4. 30.
반응형

새로운 disk로 volume group을 만들 경우

■ system을 shutdown 시킨후 disk를 연결하고 system을 boot
■ system이 올라오면 ioscan(1m)으로 연결된 disk 확인

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
--------------------------------------------------------------------------------
. . .
disk 7 52.2.0 disc3 CLAIMED DEVICE C2490AM
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
. . .

■ physical volume/volume group/logical volume을 생성

# pvcreate /dev/rdsk/c0t2d0
# mkdir /dev/vg07
# mknod /dev/vg07/group c 64 0x070000
# vgcreate /dev/vg07 /dev/dsk/c0t2d0
# lvcreate -L 100 -n lvol1 /dev/vg07

■ file system 생성

# newfs -F hfs /dev/vg07/rlvol1
또는
# newfs -F vxfs /dev/vg07/rlvol1

반응형