<< LVM VGEXPORT Quick Guide >>
# umount /mnt
; 마운트되었던 /mnt 언마운트
# vgchange -a n vg01
Volume group "vg01" has been successfully changed.
; vg01 볼륨그룹 비활성화
# vgexport -v -m /tmp/vg01.map vg01
Beginning the export process on Volume Group "vg01".
/dev/dsk/c2t5d0
Volume group "vg01" has been successfully removed.
; vg01 볼륨그룹을 -v, -m map_filename의 옵션으로 export한다
# strings /etc/lvmtab
/dev/vg00
<=:G
/dev/dsk/c2t6d0
; vg01 제거됨
# ll /dev/vg01
/dev/vg01이(가) 없습니다.
# rmsf -a /dev/dsk/c2t5d0
; 마운트포인터 제거 -a 옵션을 해줌으로서 캐릭터 디바이스도 제거가 된다. (dsk & rdsk)
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 1 10/0/15/0.6.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
; c2t5d0 디스크를 실제로 뺀 상황이다 (가상)
<< LVM VGIMPORT Quick Guide >>
# ioscan -fnC disk (다른 시스템에 디스크를 물린것처럼 시뮬레이션)
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 10/0/15/0.5.0 sdisk CLAIMED DEVICE HP 73.4GST373207LC
disk 1 10/0/15/0.6.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
; 새로운 하드웨어 스캔하여, '10/0/15/0.5.0' 를 찾았다.
# insf
insf: Installing special files for sdisk instance 0 address 10/0/15/0.5.0
; Install Special File 로 '/dev/dsk/c2t5d0, /dev/rdsk/c2t5d0' 추가됨
# ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 10/0/15/0.5.0 sdisk CLAIMED DEVICE HP 73.4GST373207LC
/dev/dsk/c2t5d0 /dev/rdsk/c2t5d0
disk 1 10/0/15/0.6.0 sdisk CLAIMED DEVICE FUJITSU MAJ3182MC
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
# mkdir /dev/vg01
; vg01 생성
# mknod /dev/vg01/group c 64 0x010000
; group 생성
# vgimport -v -m /tmp/vg01.map vg01 /dev/dsk/c2t5d0
Beginning the import process on Volume Group "vg01".
Logical volume "/dev/vg01/myfs" has been successfully created
with lv number 1.
Volume group "/dev/vg01" has been successfully created.
Warning: A backup of this volume group may not exist on this machine.
Please remember to take a backup using the vgcfgbackup command after activating the volume group.
; vg01.map 파일을 기존시스템에서 갖고와야한다. 맵파일을 참조하여 vgimport 함
# strings /etc/lvmtab
/dev/vg00
<=:G
/dev/dsk/c2t6d0
/dev/vg01
/dev/dsk/c2t5d0
; c2t5d0 가 추가되었다.
# mount /dev/vg01/myfs /mnt (실패)
/dev/vg01/myfs: No such device or address
; vg01 볼륨활성화를 하지 않아여, 마운트가 되지 않는다
# vgchange -a y vg01
Activated volume group
Volume group "vg01" has been successfully changed.
; vg01 볼륨 활성화
# mount /dev/vg01/myfs /mnt (성공)
; myfs 를 /mnt 에 마운트
# lsf /mnt
kdestroy* keylogin* kill* kks* klist* ksh* lost+found/
kermit* keylogout* kinit* kkstat* kpasswd* kvno*
'hp-ux' 카테고리의 다른 글
hpux sshd EXIT CODE255 (0) | 2010.06.12 |
---|---|
hpux 디스크 추가 (0) | 2010.05.04 |
hpux sshd (0) | 2009.11.20 |
hp-ux 네트워크 설정 (1) | 2008.03.26 |
hp-ux 하드 디스크 추가하기 (0) | 2008.01.09 |