Monday, May 30, 2011

Disk Management in AIX (1)

Disk Management in AIX (1)
# lspv
hdisk0          00f626b2c85543bb                    rootvg          active
hdisk1          00f626b20dc59374                    None

The disk that has status as "None" is a raw disk. You can use it. But before doing anything on that make sure that nobody is using this raw device.

smit vg

Move cursor to desired item and press Enter.

  List All Volume Groups
  Add a Volume Group *
  Set Characteristics of a Volume Group
  List Contents of a Volume Group
  Remove a Volume Group
  Activate a Volume Group
  Deactivate a Volume Group
  Import a Volume Group
  Export a Volume Group
  Mirror a Volume Group
  Unmirror a Volume Group
  Synchronize LVM Mirrors
  Back Up a Volume Group
  Remake a Volume Group
  Preview Information about a Backup
  Verify the Readability of a Backup (Tape only)
  View the Backup Log
  List Files in a Volume Group Backup
  Restore Files in a Volume Group Backup
 
 
  Move cursor to desired item and press Enter.
 
    Add an Original Volume Group
    Add a Big Volume Group
    Add a Scalable Volume Group *
    

   
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
   
                                                            [Entry Fields]
      VOLUME GROUP name                                  [test_sapt]
      Physical partition SIZE in megabytes                   * Press Esc +4 for list of options                                                                                                                      +
    * PHYSICAL VOLUME names                              []                                                                                                                        +
      Force the creation of a volume group?               no                                                                                                                       +
      Activate volume group AUTOMATICALLY                 yes                                                                                                                      +
        at system restart?
      Volume Group MAJOR NUMBER                          []                                                                                                                        +#
      Create VG Concurrent Capable?                       no                                                                                                                       +
      Max PPs per VG in units of 1024                     32                                                                                                                       +
      Max Logical Volumes                                 256                                                                                                                      +
      Enable Strict Mirror Pools                          No                                                                                                                       +
   
   
   
   
   
    Type or select values in entry fields.
    Press Enter AFTER making all desired changes.
   
                                                            [Entry Fields]
      VOLUME GROUP name                                  [test_sapt]
      Physical partition SIZE in megabytes                4096                                                                                                                     +
    * PHYSICAL VOLUME names                              [hdisk1]                                                                                                                  +
      Force the creation of a volume group?               yes                                                                                                                      +
      Activate volume group AUTOMATICALLY                 yes                                                                                                                      +
        at system restart?
      Volume Group MAJOR NUMBER                          [36]                                                                                                                      +#
      Create VG Concurrent Capable?                       no                                                                                                                       +
      Max PPs per VG in units of 1024                     32                                                                                                                       +
      Max Logical Volumes                                 256                                                                                                                      +
      Enable Strict Mirror Pools                          No                                                                                                                       +
   
   
   
   

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

test_sapt



# lspv
hdisk0          00f626b2c85543bb                    rootvg          active
hdisk1          00f626b20dc59374                    test_sapt       active


# smit lv


or

# smit jfs2

Move cursor to desired item and press Enter.

  Add an Enhanced Journaled File System * for add select this
  Add an Enhanced Journaled File System on a Previously Defined Logical Volume
  Change / Show Characteristics of an Enhanced Journaled File System * for size change etc select this
  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


Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
  Volume group name                                   test_sapt
  SIZE of file system
          Unit Size                                   Gigabytes                                                                                                                +
*         Number of units                            [100]                                                                                                                      #
* MOUNT POINT                                        [/sapt]
  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                                        []

===

# cd /sapt
# pwd
/sapt


After Reboot:

# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           2.00      1.81   10%    10114     3% /
/dev/hd2           4.00      0.69   83%    83574    33% /usr
/dev/hd9var        2.00      1.71   15%     5750     2% /var
/dev/hd3           5.00      2.67   47%     8585     2% /tmp
/dev/hd1           1.00      1.00    1%        5     1% /home
/dev/hd11admin      0.12      0.12    1%        5     1% /admin
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       4.00      3.80    6%     8556     1% /opt
/dev/livedump      0.25      0.25    1%        4     1% /var/adm/ras/livedump
/dev/fslv00       40.00     39.99    1%        4     1% /sapt

No comments:

Post a Comment