gamblor01
08-03-2004, 06:27 PM
I just reinstalled AIX 5.2 on a system and it had 2 hard drives in it. So I assigned the second disk to be on the volume group and everything. However, when I try to create a journaled file system through smitty to mount on /data, it gives me some weird errors. Like if I run a df command on /data it says it's actually mounted on /, and all of the characteristics are the same as those of /. Here's some info...
[root@l313:/]
# lspv
hdisk0 000f98dd25bc5843 rootvg active
hdisk1 000f98dd2694cf64 rootvg active
[root@l313:/]
# lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd25bc5843 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 9
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 2
FREE PPs: 349 (5584 megabytes) HOT SPARE: no
USED PPs: 193 (3088 megabytes)
FREE DISTRIBUTION: 108..24..00..108..109
USED DISTRIBUTION: 01..84..108..00..00
[root@l313:/]
# lspv hdisk1
PHYSICAL VOLUME: hdisk1 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd2694cf64 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 0
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 1
FREE PPs: 542 (8672 megabytes) HOT SPARE: no
USED PPs: 0 (0 megabytes)
FREE DISTRIBUTION: 109..108..108..108..109
USED DISTRIBUTION: 00..00..00..00..00
[root@l313:/]
# lsvg
rootvg
[root@l313:/]
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000f98dd00004c00000000fe2617f1fe
VG STATE: active PP SIZE: 16 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1084 (17344 megabytes)
MAX LVs: 256 FREE PPs: 891 (14256 megabytes)
LVs: 9 USED PPs: 193 (3088 megabytes)
OPEN LVs: 8 QUORUM: 2
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
And here's a strange message I get when I try to add a new JFS of size 8192 MB (which you can see above I have plenty of spare room for) on /data...
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Based on the parameters chosen, the new /data JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)
New File System size is 16777216
Now that 16777216 is correct (it's 512 byte blocks) so it's actually my 8192 MB that I put in yes? But now look at this:
[root@l313:/]
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 16384 4228 75% 1913 24% /
/dev/hd2 2359296 1329060 44% 33829 6% /usr
/dev/hd9var 16384 10160 38% 423 11% /var
/dev/hd3 32768 31564 4% 35 1% /tmp
/dev/hd1 16384 13484 18% 80 2% /home
/proc - - - - - /proc
/dev/hd10opt 163840 29916 82% 2715 7% /opt
tecesvr15:/tecsrv 174904016 32658648 82% 585218 3% /tecsrv15
[root@l313:/]
# df -k /data
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 16384 4228 75% 1913 24% /
/data doesn't even exist! It still says that /data is mounted on /, which it shouldn't be, and now look at this output:
[root@l313:/]
# lspv hdisk1
PHYSICAL VOLUME: hdisk1 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd2694cf64 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 1
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 1
FREE PPs: 30 (480 megabytes) HOT SPARE: no
USED PPs: 512 (8192 megabytes)
FREE DISTRIBUTION: 00..00..00..00..30
USED DISTRIBUTION: 109..108..108..108..79
Now it says that 8192 MB are used on hdisk1...the EXACT size I said to create as a JFS. But it won't le me use anymore than the 16384 and when I write something to /data, it's clearly assigned to / since / fills up fast. I tried to install DB2 and it failed saying possibly not enough space, and when I checked "df -k /" after that, it said that / was 100% full. Anyone have any idea what on earth is going on with this? I'm stumped and a little irritated so I'm probably not thinking clearly.
[root@l313:/]
# lspv
hdisk0 000f98dd25bc5843 rootvg active
hdisk1 000f98dd2694cf64 rootvg active
[root@l313:/]
# lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd25bc5843 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 9
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 2
FREE PPs: 349 (5584 megabytes) HOT SPARE: no
USED PPs: 193 (3088 megabytes)
FREE DISTRIBUTION: 108..24..00..108..109
USED DISTRIBUTION: 01..84..108..00..00
[root@l313:/]
# lspv hdisk1
PHYSICAL VOLUME: hdisk1 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd2694cf64 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 0
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 1
FREE PPs: 542 (8672 megabytes) HOT SPARE: no
USED PPs: 0 (0 megabytes)
FREE DISTRIBUTION: 109..108..108..108..109
USED DISTRIBUTION: 00..00..00..00..00
[root@l313:/]
# lsvg
rootvg
[root@l313:/]
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000f98dd00004c00000000fe2617f1fe
VG STATE: active PP SIZE: 16 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1084 (17344 megabytes)
MAX LVs: 256 FREE PPs: 891 (14256 megabytes)
LVs: 9 USED PPs: 193 (3088 megabytes)
OPEN LVs: 8 QUORUM: 2
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
And here's a strange message I get when I try to add a new JFS of size 8192 MB (which you can see above I have plenty of spare room for) on /data...
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Based on the parameters chosen, the new /data JFS file system
is limited to a maximum size of 134217728 (512 byte blocks)
New File System size is 16777216
Now that 16777216 is correct (it's 512 byte blocks) so it's actually my 8192 MB that I put in yes? But now look at this:
[root@l313:/]
# df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 16384 4228 75% 1913 24% /
/dev/hd2 2359296 1329060 44% 33829 6% /usr
/dev/hd9var 16384 10160 38% 423 11% /var
/dev/hd3 32768 31564 4% 35 1% /tmp
/dev/hd1 16384 13484 18% 80 2% /home
/proc - - - - - /proc
/dev/hd10opt 163840 29916 82% 2715 7% /opt
tecesvr15:/tecsrv 174904016 32658648 82% 585218 3% /tecsrv15
[root@l313:/]
# df -k /data
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 16384 4228 75% 1913 24% /
/data doesn't even exist! It still says that /data is mounted on /, which it shouldn't be, and now look at this output:
[root@l313:/]
# lspv hdisk1
PHYSICAL VOLUME: hdisk1 VOLUME GROUP: rootvg
PV IDENTIFIER: 000f98dd2694cf64 VG IDENTIFIER 000f98dd00004c00000000fe2617f1fe
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 1
TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 1
FREE PPs: 30 (480 megabytes) HOT SPARE: no
USED PPs: 512 (8192 megabytes)
FREE DISTRIBUTION: 00..00..00..00..30
USED DISTRIBUTION: 109..108..108..108..79
Now it says that 8192 MB are used on hdisk1...the EXACT size I said to create as a JFS. But it won't le me use anymore than the 16384 and when I write something to /data, it's clearly assigned to / since / fills up fast. I tried to install DB2 and it failed saying possibly not enough space, and when I checked "df -k /" after that, it said that / was 100% full. Anyone have any idea what on earth is going on with this? I'm stumped and a little irritated so I'm probably not thinking clearly.