BayuSenoAdji.Com

.... Belajar Menulis dan berbagi informasi tentang dunia IT

  • Increase font size
  • Default font size
  • Decrease font size
Home UNIX / AIX Creating and Deleting a file system on AIX
UNIX / AIX

Creating and Deleting a file system on AIX

E-mail Print PDF

Dalam tulisan singkat ini akan dibahas mengenai pembuatan pastisi atau file system baru di System operasi AIX

Kita akan membuat file system sebagai berikut
- Nama logical volume = test_lv
- Tipe File System : JFS2 (Mengenai JSF2 bisa di baca di http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/fs_jfs_jfs2.htm)
- Mount point /test


Ok kita akan mulai membuat Logical Volume terlebih dahulu ketik : smitty lv

smitty lv

Move cursor to desired item and press Enter.

  List All Logical Volumes by Volume Group
  Add a Logical Volume   
  Set Characteristic of a Logical Volume
  Show Characteristics of a Logical Volume
  Remove a Logical Volume
  Copy a Logical Volume


--> Pilih Add a Logical Volume

                                                        [Entry Fields]
  Logical volume NAME                                [test_lv]
* VOLUME GROUP name                                   rootvg
* Number of LOGICAL PARTITIONS                       [40]                                                                                                  #
  PHYSICAL VOLUME names                              []                                                                                                   +
  Logical volume TYPE                                [jfs2]                                                                                               +
  POSITION on physical volume                         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                  yes                                                                                                 +
    reorganization?
  Logical volume LABEL                               []
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                                                                                                 #
  Enable BAD BLOCK relocation?                        yes                                                                                                 +
  SCHEDULING POLICY for writing/reading               parallel                                                                                            +
    logical partition copies
  Enable WRITE VERIFY?                                no                                                                                                  +
  File containing ALLOCATION MAP                     []
  Stripe Size?                                       [Not Striped]                                                                                        +
  Serialize IO?                                       no                                                                                                  +

Keterangan
Number of LOGICAL PARTITIONS                       [40]
1 blok LOGICAL PARTITIONS bernilai 256 MB, maka nilai 40 tesebut sama artinya 40x256 = 10240 MB atau 10 GB

Kalo sudah selesai tekan enter

lalu kita akan membuat mount point dari logical volume yang sudah kita buat dengan tipe file system jsf2


smitty jfs2

Add an Enhanced Journaled File System
Add an Enhanced Journaled File System on a Previously Defined Logical Volume --- > Pilih ini
Change / Show Characteristics of an Enhanced Journaled File System
Remove an Enhanced Journaled File System
Manage Quotas for an Enhanced Journaled File System
Defragment an Enhanced Journaled File System
List Snapshots for an Enhanced Journaled File System
Create Snapshot for an Enhanced Journaled File System
Mount Snapshot for an Enhanced Journaled File System
Remove Snapshot for an Enhanced Journaled File System
Unmount Snapshot for an Enhanced Journaled File System
Change Snapshot for an Enhanced Journaled File System
Rollback an Enhanced Journaled File System to a Snapshot

 

* LOGICAL VOLUME name                                 test_lv                                                                                            +
* MOUNT POINT                                        [/test]
  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                           Version 1                                                                                           +
  ENABLE Quota Management?                            no                                                                                                  +

Tekan Enter

Hasil :

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

Ok pembuatan file sytem udah selesai, lalu kita perlu mount file system tersebut

[aix-server:root:/:] mount /test

Kita cek apakah sudah terbuat file system tersebut

[aix-server:root:/:] df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           0.50      0.41   19%     5499     6% /
/dev/hd2           3.00      1.17   61%    41470    14% /usr
/dev/hd9var        0.50      0.23   55%     8788    14% /var
/dev/hd3          10.00      9.92    1%      411     1% /tmp
/dev/fwdump        1.00      0.99    1%        5     1% /var/adm/ras/platform
/dev/hd1           0.25      0.25    1%       49     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       0.50      0.20   60%     9701    17% /opt
/dev/lv00          0.25      0.24    4%       18     1% /var/adm/csd
/dev/data_lv     100.00     65.47   35%       23     1% /data
/dev/index_lv    100.00     92.34    8%       14     1% /index
/dev/redo_lv      10.00      9.90    2%       11     1% /redo
/dev/undo_lv      60.00     57.41    5%       18     1% /undo
/dev/ora_lv       40.00     35.49   12%    65492     1% /oracle
/dev/source_lv     10.00      4.31   57%     5867     1% /source
/dev/share_lv     10.00     10.00    1%        6     1% /appshare
/dev/bckp_lv     100.00     99.98    1%        4     1% /backup
/dev/test_lv      10.00     10.00    1%        4     1% /test

Dari hasil diatas bisa dilihat sudah terbuat file system dengan mount point /test dengan ukuran 10 GB

Untuk Cek Free PPS / Logical Volume yang masih bisa kita buat partisi ketik lsvg [nama logical volume]

[aix-server:root:/test:] lsvg rootvg -->> nama logical volume
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00f6110500004c00000001287fd93537
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:            256                      FREE PPs:       54 (13824 megabytes)
LVs:                20                       USED PPs:       1038 (265728 megabytes)
OPEN LVs:           19                       QUORUM:         1 (Disabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable



Mengapus file system

Untuk menghapus file system sebelumnya unmount file system yang akan di remove
[aix-server:root:/:] umount /test

lalu untuk menghapus file system ketik
[aix-server:root:/:] rmfs /test
rmlv: Logical volume test_lv is removed.


Terima kasih.
Semoga bermanfaat

Last Updated on Tuesday, 24 August 2010 15:05  

Visitors Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday236
mod_vvisit_counterYesterday366
mod_vvisit_counterThis week843
mod_vvisit_counterLast week2047
mod_vvisit_counterThis month1991
mod_vvisit_counterLast month8874
mod_vvisit_counterAll219419

Online (20 minutes ago): 22
Your IP: 38.107.179.224
,
Now: 2012-02-07 20:21

Informasi Lowongan Pekerjaan

Berdasarkan Keputusan Menteri Pendayagunaan Aparatur Negara Nomor
276 Tahun 2009 tanggal 9 September 2009 tentang Formasi Pegawai Negeri
Sipil Badan Pengawas Obat dan Makanan Tahun Anggaran 2009, diumumkan
sebagai berikut:

Formasi Penerimaan

* Apoteker: 83 orang.

* Dokter Umum: 4 orang.

* Dokter Hewan: 1 orang.

* S1 Teknologi Pangan/Teknologi Pertanian: 11 orang.

* S1 Ilmu Gizi: 3 orang.

* S1 Kimia: 9 orang.

* S1 Biologi: 8 orang.

* S1 Biologi/Mikrobiolog i: 3 orang.

* S1 Hukum: 5 orang.

* S1 Manajemen: 4 orang.

* S1 Psikologi: 1 orang.

* S1 Akuntansi: 2 orang.

* S1 Statistik: 3 orang.

* S1 Komputer/TI: 3 orang.

* S1 Perpustakaan: 1 orang.

* D3 Komputer: 13 orang.

* D3 Farmasi/Analis: 23 orang.

* D3 Kimia/Analis Kimia: 14 orang.

* D3 Administrasi: 1 orang.

* D3 Sekretaris: 2 orang.

* D3 Akuntansi

Read more... Link