기술문서 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
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
170 | Tibero test sql문, SCHEMA_OBJECT_SAMPLE | 2023.10.25 | 10 |
169 | 급증하는 키싱(Qishing) 공격 | 2023.11.14 | 10 |
168 | Webtob Install for Windows and command | 2023.10.24 | 11 |
167 | Webtob Install for Linux | 2023.10.23 | 12 |
166 | Tibero 관리 3 | 2023.10.25 | 14 |
165 | Red Hat Enterprise Linux Certification Matrix for Dell PowerEdge Servers | 2023.11.02 | 15 |
164 | Jeus 8.5 + WebtoB 연동및 운영 | 2023.10.24 | 17 |
163 | Jeus 8.5 설치및 운영 | 2023.10.24 | 21 |
162 | tibero 7 install for linux | 2023.11.06 | 21 |
161 | Tibero 관리 2 | 2023.10.25 | 24 |
160 | wmic useraccount list brief | 2021.04.01 | 29 |
159 | Red Hat Enterprise Linux technology capabilities and limits | 2021.05.13 | 31 |
158 | Linux system service bug gives you root on every major distro | 2022.02.05 | 35 |
157 | 2021년도 주요정보통신기반시설 기술적 취약점 분석ㆍ평가 방법 상세가이드 | 2022.06.23 | 37 |
156 | Jeus7 Getting Start Guide | 2021.03.09 | 38 |