Please login or register. December 12, 2017, 11:35:19 PM

Author Topic: Disks not showing..  (Read 4839 times)

0 Members and 1 Guest are viewing this topic.

darsh019

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Disks not showing..
« on: November 18, 2010, 06:48:01 AM »
Hi All,


Request you to help me on what may appear a silly question. I'm new to unix;hence AIX world.
On a p275 machine, there are two disks inserted (of 36 GB each) . And the two seem to be available when seen through smit. below is the output

hdisk0 Available 1S-08-00-4,0 16 Bit LVD SCSI Disk Drive
hdisk1 Available 1S-08-00-5,0 16 Bit LVD SCSI Disk Drive


now the output of
Code: [Select]
df -g gives

# df -g
Filesystem    GB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4           0.06      0.05   28%     1723     6% /
/dev/hd2           1.25      0.06   96%    31835    10% /usr
/dev/hd9var        0.06      0.05   16%      392     3% /var
/dev/hd3           0.06      0.06    5%       33     1% /tmp
/dev/hd1           0.06      0.00  100%       19     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt       0.06      0.01   79%      981     6% /opt



and hence i'm not able to load any data on the system. Please advice how i can make the two disks' memory usable.

P.S

lsvg command gives output as
# lsvg
rootvg
datavg

Datavg is defined but I'm not able to use or see it.. kindly advice

Thanks in advance..

Michael

  • Administrator
  • Hero Member
  • *****
  • Posts: 1055
  • Karma: +0/-0
Re: Disks not showing..
« Reply #1 on: November 19, 2010, 08:11:51 AM »
Storage in AIX is organized in Volume Groups: the command lsvg is "list volume groups"

The command lspv (list physical volumes) lists the physical volumes, and that volume group they are in, if any. e.g.

michael@x054:[/data/home/michael]lspv
hdisk0          00cbe32e3ea9f4d2                    vgData          active
hdisk1          00cbe32e3eaa5e28                    None           
hdisk2          005d858f5e3e41d2                    rootvg          active


To see how much space is free on a disk you use the command lspv again, like this:

michael@x054:[/data/home/michael]lspv hdisk0
PHYSICAL VOLUME:    hdisk0                   VOLUME GROUP:     vgData
PV IDENTIFIER:      00cbe32e3ea9f4d2 VG IDENTIFIER     005d858f00004c0000000115722f3acc
PV STATE:           active                                     
STALE PARTITIONS:   0                        ALLOCATABLE:      yes
PP SIZE:            16 megabyte(s)           LOGICAL VOLUMES:  23
TOTAL PPs:          4375 (70000 megabytes)   VG DESCRIPTORS:   2
FREE PPs:           1915 (30640 megabytes)   HOT SPARE:        no
USED PPs:           2460 (39360 megabytes)   MAX REQUEST:      256 kilobytes
FREE DISTRIBUTION:  11..111..811..875..107                     
USED DISTRIBUTION:  864..764..64..00..768                     
MIRROR POOL:        None


To see what logical partitions are in a volume group use the command:
michael@x054:[/data/home/michael]lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     4       4       1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       6       6       1    open/syncd    /
hd2                 jfs2       31      31      1    open/syncd    /usr
hd9var              jfs2       12      12      1    open/syncd    /var
hd3                 jfs2       3       3       1    open/syncd    /tmp
hd1                 jfs2       1       1       1    open/syncd    /home
hd10opt             jfs2       7       7       1    open/syncd    /opt
hd11admin           jfs2       2       2       1    open/syncd    /admin
lg_dumplv           sysdump    16      16      1    open/syncd    N/A
livedump            jfs2       4       4       1    open/syncd    /var/adm/ras/livedump
hd12audit           jfs2       2       2       1    open/syncd    /audit
loglv00             jfslog     1       1       1    closed/syncd  N/A


If you have Free PP (Free Physical Partitions) you can increase the size of a file system, and it's associated LP (logical partition - this is probably the level you are accusstomed to finding free storage - but free storage is Free PP in a vol group).

If I wanted to increase the size of /tmp by the smallest amount possible (1 Free PP) I would use the command:
chfs -a size+=1 /tmp

AIX extends the logical partition by 1 PP, in my case that would be 16 MByte (see PP size of lspv output)  and increases the filesystem by 16 MByte.

The smit fastpath is:

# smit chfs (and additional screens)

If you want to make a new filesystem - first check whether your system is using jfs2 for rootvg, or jfs (I would expect jfs2 from AIX 5.1 onward, jfs(1) for AIX 4.3.3 and earlier.
Looking forward, I would recommend you use jfs2 for new filesystems - as this is the filesystem used in new installations - as being more valuable for your learning experience. Note: lsvg -l also lists the type of the logical volume/filesystem.

So, once you know which volume group (== disk in your case) use smit (or smitty for text based) e.g.
# smitty crfs -- and then follow the path :: Add an Enhanced Journaled File System

I hope this lets you proceed!

darsh019

  • New Member
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Disks not showing..
« Reply #2 on: November 24, 2010, 08:44:57 AM »
Thank you Michael.. That was really helpful. my problem is solved now. I had to add space to rootvg using chfs command. Thanks again :)