달력

112024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30

1. 볼륨 그룹 확인
# lspv
hdisk0          00cfe9f4b43b092a                    rootvg          active
hdisk1          00cfe9f4b436397a                    rootvg          active
hdisk2          00cfe9f4b3fa6bef                    datavg          active
hdisk3          00cfe9f4b4411439                    datavg          active
hdisk4          00cfe9f4df2b42ce                    datavg2         active
hdisk5          00cfe9f4df34b386                    datavg2         active
hdisk6          00cfe9f4bc9febec                    datavg4         active
hdisk7          00cfe9f4bd12db7a                    datavg5         active
hdisk8          00cfe9f49f640069                    datavg6         active
hdisk9          none                                None

# lsvg datavg6
VOLUME GROUP:       datavg6                  VG IDENTIFIER:  00cfe9f400004c000000014a9fa4579a
VG STATE:           active                   PP SIZE:        512 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      266 (136192 megabytes)
MAX LVs:            256                      FREE PPs:       5 (2560 megabytes)
LVs:                2                        USED PPs:       261 (133632 megabytes)
OPEN LVs:           2                        QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           2.00      1.56   23%    14327     4% /
/dev/hd2           7.00      3.10   56%    61161     8% /usr
/dev/hd9var        2.00      1.45   28%     4751     2% /var
/dev/hd3           2.00      1.70   16%      604     1% /tmp
/dev/hd1           2.00      2.00    1%        5     1% /home
/dev/hd11admin      0.25      0.25    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       2.00      1.89    6%     3604     1% /opt
/dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump
/dev/applv        50.00     47.55    5%     2579     1% /APP
/dev/oraclelv     10.00      1.84   82%    27815     6% /oracle
/dev/oradatalv     30.00      3.27   90%     4587     1% /oradata
/dev/backuplv     18.00     15.53   14%     2509     1% /backup
/dev/datalv      136.00      1.03  100%       11     1% /data
/dev/data01lv    380.00      0.80  100%       23     1% /data01
/dev/data02lv    380.00      0.80  100%       20     1% /data02
/dev/databackuplv    135.00      9.75   93%      620     1% /databackup
/dev/data03lv    500.00     35.96   93%      301     1% /data03
/dev/fslv00      360.00      1.65  100%       15     1% /data04
/dev/fslv01     1060.00      0.54  100%       40     1% /data05
/dev/fslv02      130.00      0.98  100%        9     1% /data06

2. 볼륨그룹 생성 (datavg7)
# smitty vg
# Add a Volume Group > Add an Original Volume Group
                                                        [Entry Fields]
  VOLUME GROUP name                                  [datavg7] #볼륨그룹이름 입력
  Physical partition SIZE in megabytes                1024      #app + 4 로 선택     +
* PHYSICAL VOLUME names                              [hdisk9]  #app + 4 로 선택      +
  FORCE the creation of volume group?                  yes     #yes                  +
  Activate volume group AUTOMATICALLY                 yes                            +
    at system restart?
  Volume group MAJOR NUMBER                          []                              +#
  Create VG Concurrent Capable?                       no                             +

>>>
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

0516-1254 /usr/sbin/mkvg: Changing the PVID in the ODM.
datavg7

생성확인
# lsvg datavg7
VOLUME GROUP:       datavg7                  VG IDENTIFIER:  00cfe9f400004c000000014b2f528c45
VG STATE:           active                   PP SIZE:        1024 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      399 (408576 megabytes)
MAX LVs:            256                      FREE PPs:       399 (408576 megabytes)
LVs:                0                        USED PPs:       0 (0 megabytes)
OPEN LVs:           0                        QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

3.로지컬볼륨 생성 (databackuplv2)
# smitty lv
# Add a Logical Volume > * VOLUME GROUP name    datavg7     #esc + 4 로 선택

[TOP]                                                   [Entry Fields]
  Logical volume NAME                                [databackuplv2] #생성할 로지컬볼륨이름 입력
* VOLUME GROUP name                                   datavg7
* Number of LOGICAL PARTITIONS                       [10]          #추후 변경 예정    #
  PHYSICAL VOLUME names                              []                              +
  Logical volume TYPE                                [jfs2]        #파일타입선택     +
  POSITION on physical volume                         outer_middle                   +
  RANGE of physical volumes                           minimum                        +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 []                               #
    to use for allocation
  Number of COPIES of each logical                    1                              +
    partition
  Mirror Write Consistency?                           active                         +
  Allocate each logical partition copy                yes                            +
    on a SEPARATE physical volume?
  RELOCATE the logical volume during reorganization?  yes                            +
  Logical volume LABEL                               []
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                            #
[MORE...10]

>>>
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

databackuplv2

생성확인
# lslv databackuplv2
LOGICAL VOLUME:     databackuplv2          VOLUME GROUP:   datavg7
LV IDENTIFIER:      00cfe9f400004c000000014b2f528c45.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       closed/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            512                    PP SIZE:        1024 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                10                     PPs:            10
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    32
MOUNT POINT:        N/A                    LABEL:          None
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?:     NO

4. 파일시스템 생성 (jfs2) /databackup2
# smitty jfs2
# Add an Enhanced Journaled File System on a Previously Defined Logical Volume >

                                                        [Entry Fields]
* LOGICAL VOLUME name                                 databackuplv2     #esc + 4 로 선택    +
* MOUNT POINT                                        [/databackup2]     #마운트 포인트 입력
  Mount AUTOMATICALLY at system restart?              yes               #시스템 시작시 자동 마운트 +
  PERMISSIONS                                         read/write                     +
  Mount OPTIONS                                      []                              +
  Block Size (bytes)                                  4096                           +
  Logical Volume for Log                                                             +
  Inline Log size (MBytes)                           []                               #
  Extended Attribute Format                                                          +
  Enable Quota Management?                            no                             +
  Enable EFS?                                         no                             +
  Allow internal snapshots?                           no                             +
  Mount GROUP                                        []

>>>
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

File system created successfully.
10485236 kilobytes total disk space.
New File System size is 20971520

생성 확인
# lsfs
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounti
ng
/dev/hd4        --         /                      jfs2  4194304 --         yes  no
/dev/hd1        --         /home                  jfs2  4194304 --         yes  no
/dev/hd2        --         /usr                   jfs2  14680064 --         yes  no
/dev/hd9var     --         /var                   jfs2  4194304 --         yes  no
/dev/hd3        --         /tmp                   jfs2  4194304 --         yes  no
/dev/hd11admin  --         /admin                 jfs2  524288  --         yes  no
/proc           --         /proc                  procfs --      --         yes  no
/dev/hd10opt    --         /opt                   jfs2  4194304 --         yes  no
/dev/livedump   --         /var/adm/ras/livedump  jfs2  524288  --         yes  no
/dev/applv      --         /APP              jfs2  104857600 rw         yes  no
/dev/oraclelv   --         /oracle                jfs2  20971520 rw         yes  no
/dev/oradatalv  --         /oradata               jfs2  62914560 rw         yes  no
/dev/cd0        --         /cdrom                 cdrfs --      ro         no   no
/dev/backuplv   --         /backup                jfs2  37748736 rw         yes  no
/dev/datalv     --         /data                  jfs2  285212672 rw         yes  no
/dev/data01lv   --         /data01                jfs2  796917760 rw         yes  no
/dev/data02lv   --         /data02                jfs2  796917760 rw         yes  no
/dev/databackuplv --         /databackup            jfs2  283115520 rw         yes  no
/dev/data03lv   --         /data03                jfs2  1048576000 rw         yes  no
/dev/fslv00     --         /data04                jfs2  754974720 rw         yes  no
/dev/fslv01     --         /data05                jfs2  2222981120 rw         yes  no
/dev/fslv02     --         /data06                jfs2  272629760 rw         yes  no
/dev/databackuplv2 --         /databackup2           jfs2  20971520 rw         yes  n0

5. 파일시스템 사이즈 재조정
# smitty jfs2
Change / Show Characteristics of an Enhanced Journaled File System > /databackup2

                                                       [Entry Fields]
  File system name                                    /databackup2
  NEW mount point                                    [/databackup2]
  SIZE of file system
          Unit Size                                   Gigabytes       #기가바이트로 단위변경     +
          Number of units                            [390]            #여유공간할당              #
  Mount GROUP                                        []
  Mount AUTOMATICALLY at system restart?              yes                            +
  PERMISSIONS                                         read/write                     +
  Mount OPTIONS                                      []                              +
  Start Disk Accounting?                              no                             +
  Block Size (bytes)                                  4096
  Inline Log?                                         no
  Inline Log size (MBytes)                           [0]                              #
  Extended Attribute Format                          [v1]
  Enable Quota Management?                            no                             +
  Allow Small Inode Extents?                          yes                            +
  Enable EFS?                                         no                             +

>>>
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Filesystem size changed to 817889280

용량 변경 확인
# lsfs
/dev/databackuplv2 --         /databackup2           jfs2  817889280 rw         yes  no

6. 파일시스템 마운트
# mount /databackup2

마운트 확인
# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           2.00      1.56   23%    14332     4% /
/dev/hd2           7.00      3.10   56%    61161     8% /usr
/dev/hd9var        2.00      1.45   28%     4752     2% /var
/dev/hd3           2.00      1.70   16%      604     1% /tmp
/dev/hd1           2.00      2.00    1%        5     1% /home
/dev/hd11admin      0.25      0.25    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       2.00      1.89    6%     3604     1% /opt
/dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump
/dev/applv        50.00     47.55    5%     2581     1% /APP
/dev/oraclelv     10.00      1.83   82%    27817     6% /oracle
/dev/oradatalv     30.00      3.27   90%     4587     1% /oradata
/dev/backuplv     18.00     15.53   14%     2509     1% /backup
/dev/datalv      136.00      1.03  100%       11     1% /data
/dev/data01lv    380.00      0.80  100%       23     1% /data01
/dev/data02lv    380.00      0.80  100%       20     1% /data02
/dev/databackuplv    135.00      9.75   93%      620     1% /databackup
/dev/data03lv    500.00     37.82   93%      302     1% /data03
/dev/fslv00      360.00      1.65  100%       15     1% /data04
/dev/fslv01     1060.00      0.54  100%       40     1% /data05
/dev/fslv02      130.00      0.98  100%        9     1% /data06
/dev/databackuplv2    390.00    389.94    1%        4     1% /databackup2












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

[Tip] AIX Crontab 실패 시(명령어 직접 등록 시)  (0) 2020.07.28
[Tip] AIX JDK 설치 방법  (0) 2020.07.19
[Tip] AIX 파일 시스템 추가  (0) 2010.10.11
[Tip] AIX 점검 명령어  (0) 2010.04.08
[Tip] AIX VNC 설정  (0) 2010.04.08
Posted by 짜꾸미의골골몽
|