본문 바로가기

IBM/AIX

log볼륨생성

7.10.1.4 Creating an additional log logical volume

 In some cases, it could be useful to create extra log logical volumes for

journaled file systems in a volume group. If you have a JFS that is write

extensive, the use of the log logical volume might cause an I/O bottleneck if it

is placed on the same disk. So, in such cases, it is useful to create another

log logical volume for that file system on another disk. This will spread the

amount of I/O. The following are the steps used to change the log logical

volume for the file system data-fs. The data-fs file system is located on

hdisk2.

1.Unmount the file system for which you want to create the new log logical

volume:

brenzef[root] # umount /data-fs

2. Create a new log logical volume:

brenzef[root] # mklv -t jfslog -y datafsloglv datavg 1 hdisk1

3. Format the log:

brenzef[root] # /usr/sbin/logform /dev/datafsloglv

4. Modify /etc/filesystems with chfs:

brenzef[root] # chfs -a log=/dev/datafsloglv /data-fs

In /etc/filesystems, the following stanza should be visible:

/data-fs:

dev= /dev/datalv

vfs= jfs

log= /dev/datafsloglv

mount= true

options= rw

account= false

You can also check if the logical volume control block is updated by entering

 the following command:

brenzef[root] # getlvcb -AT datalv

The output is shown as follows:

 

brenzef[root] # getlvcb -AT datalv

AIX LVCB

intrapolicy = m

copies = 1

interpolicy = m

lvid = 000416316c642fa6.4

lvname = lv00

label = /datalv

machine id = 416314C00

number lps = 2

relocatable = y

strict = y

stripe width = 0

stripe size in exponent = 0

type = jfs

upperbound = 32

fs = log=/dev/datafsloglv:options=rw:account=false

time created = Fri Sep 24 09:05:57 1999

time modified = Fri Sep 24 09:06:01 1999

4. Mount the changed file system:

brenzef[root] # mount /data-fs

Placing the log logical volume on a physical volume different from your most

active file system logical volume will increase parallel resource usage. You

are allowed to have a separate log for each file system. When creating your

logical volumes, remember that the performance of drives differs. Try to

create a logical volume for a hot file system on a fast drive. and do not put this

log logical volume on another hot physical disk.

이 글은 스프링노트에서 작성되었습니다.

'IBM > AIX' 카테고리의 다른 글

randev_디바이스이름변경(AIX7)  (0) 2011.10.22
hitachi_disk_정보확인  (0) 2011.10.11
mpio_get_config  (0) 2011.10.10
바뀐LUN사이즈를VG에적용할때  (0) 2011.10.06
savevg  (0) 2011.10.04
ulimt 값을 한꺼번에 unlimited 로 바꾸실때  (0) 2011.07.18
AIX Virtual Memory Management  (0) 2011.07.18
Command & Location  (0) 2011.07.12
os 패치에 관하여..  (0) 2011.07.07
여러가지 명령어 모음  (0) 2011.07.07