기술문서 HP-UX 볼륨 추가 방법
2017.09.07 08:40
HPUX에서 서버를 운영하다가 디렉토리 용량 부족 현상이 날 경우 아래와 같이
추가 파일 시스템을 만들어 놓을 수가 있어 부족한 용량을 해소 할수가 있다
아래는 로칼 디스크에서 vg00 으로 할당된 볼륨에서 추가로 /web 디렉토리에 10G
할당하게 해주는 내용이다
VG00 은 OS 설치하면서 만들어 진것이며 여우가 있는지 vgdisplay 로 확인을 해야 된다.
[server5:root:/] lvcreate -L 10240 /dev/vg00
Logical volume "/dev/vg00/lvol4" has been successfully created with
character device "/dev/vg00/rlvol4".
Logical volume "/dev/vg00/lvol4" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
로지컬 볼륨 10G 짜리를 만들었으며 아래와 같이 포멧을 해줘야 된다.
[server5:root:/] newfs -F vxfs -o largefiles /dev/vg00/rlvol4
version 7 layout
10485760 sectors, 10485760 blocks of size 1024, log size 16384 blocks
largefiles supported
마운트 할수 있는 디렉토리를 만든후
[server5:root:/] mkdir /web
[server5:root:/]
마운트 한다
[server5:root:/] mount /dev/vg00/lvol4 /web
정상 마운트 되었는지 확인해 본다.
[server5:root:/] bdf /web
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol4 10485760 20062 9811599 0% /web
아래는 새로운 VG02를 만들고 여기에 물리적인 스토리지 신규 디스크를 만드는 작업이다
[server2:/dev]mkdir /dev/vg02
[server2:/dev]mknod /dev/vg02/group c 64 0x020000
pvcreate /dev/rdisk/disk45
pvcreate /dev/rdisk/disk46
pvcreate /dev/rdisk/disk47
pvcreate /dev/rdisk/disk48
pvcreate /dev/rdisk/disk49
pvcreate /dev/rdisk/disk50
pvcreate /dev/rdisk/disk51
pvcreate /dev/rdisk/disk52
pvcreate /dev/rdisk/disk53
pvcreate /dev/rdisk/disk54
pvcreate /dev/rdisk/disk55
pvcreate /dev/rdisk/disk56
vg02를 만들어 주는 작업이다.
vgcreate -s 32 /dev/vg02 /dev/disk/disk45 /dev/disk/disk46 /dev/disk/disk47 /dev/disk/disk48 /dev/disk/disk49 /dev/disk/disk50 /dev/disk/disk51 /dev/disk/disk52 /dev/disk/disk53 /dev/disk/disk54 /dev/disk/disk55 /dev/disk/disk56
아래 부터는 위에서 말한 논리적인 디스크 추가 작업이다.
-i 는 스트라이핑 갯수를 이야기 하며 포퍼먼스를 좋게 하기 위해서 여러개의 디스크에 동시에 쓰게 하기 위함이다.
쓰기 속도가 증가 된다.
lvcreate -L 50000 -i 2 /dev/vg02
lvcreate -L 100000 -i 3 /dev/vg02
lvcreate -L 100000 -i 3 /dev/vg02
lvcreate -L 100000 -i 3 /dev/vg02
lvcreate -L 100000 -i 3 /dev/vg02
lvcreate -L 150000 -i 3 /dev/vg02
포맷작업시 largefiles 옵션을 넣어도 되고 빼도 된다. 말그대로 큰파일을 사용할 것이냐?
로그파일이나 용량큰 이미지 데이타 용이면 넣는게 좋지..
newfs -F vxfs /dev/vg02/rlvol1
newfs -F vxfs /dev/vg02/rlvol2
newfs -F vxfs /dev/vg02/rlvol3
newfs -F vxfs /dev/vg02/rlvol4
newfs -F vxfs /dev/vg02/rlvol5
newfs -F vxfs /dev/vg02/rlvol6
그다음 마운트 하고 fstab 에 등록하여 사용하면 된다.
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
35 | 서버 취약점 점검 | 2019.10.31 | 1005 |
34 | CSQL 인터프리터 사용방법 | 2019.11.04 | 356 |
33 | NetBackup Port Open | 2019.11.22 | 1005 |
32 | Apache나, Tomcat 버젼 노출 취약점 | 2019.12.09 | 895 |
31 | ThreadDump 분석 | 2020.01.02 | 197 |
30 | Linux Cache Memory Clear | 2020.01.20 | 333 |
29 | netstat | 2020.02.05 | 233 |
28 | top을 통해 살펴보는 프로세스 정보들 | 2020.03.05 | 210 |
27 | 아파치 톰캣 AJP 프로토콜에 '고스트캣(GhostCat)' 취약점 | 2020.04.06 | 934 |
26 | AIX SYSTEM CHECK SCRIPT | 2020.04.10 | 2432 |
25 | AIX 내부적인 Memory 관리 방법 | 2020.04.15 | 381 |
24 | 외부로 통신이 되지 않을 때 가지고 있는 CD-ROM으로 yum 사용하는 방법 | 2020.08.26 | 700 |
23 | hp-ux glance Memory Sort | 2021.02.26 | 84 |
22 | Jeus7 Getting Start Guide | 2021.03.09 | 37 |
21 | wmic useraccount list brief | 2021.04.01 | 28 |