cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase a filesystem which has mirrored volume

varma
Level 2
The below is the vxprint output, now I want to add 9GB  to the filesystem but this is a mirrored volume,
my doubt is I have 2 disks each of 9GB size. you can see the luns come from 2 frames 878 and 1351.
Now I want to resize and disk with frame 878 should go to first plex and disk with frame 1351 should go to second plex
Is there any method to do it. Please reply

DG: plip03_jaa

v  jaa1_tech_oracle -        ENABLED  ACTIVE   35305488 SELECT    -        fsgen
pl jaa1_tech_oracle-01 jaa1_tech_oracle ENABLED ACTIVE 35306880 CONCAT -   RW
sd jaa_878_1035-01 jaa1_tech_oracle-01 jaa_878_1035 0 17635200 0  c2t22d229 ENA
sd jaa_878_2b4b-01 jaa1_tech_oracle-01 jaa_878_2b4b 1536 17671680 17635200 c2t30d15 ENA
pl jaa1_tech_oracle-02 jaa1_tech_oracle ENABLED ACTIVE 35306880 CONCAT -   RW
sd jaa_1351_1434-01 jaa1_tech_oracle-02 jaa_1351_1434 0 17671680 0 c2t20d51 ENA
sd jaa_1351_0c68-01 jaa1_tech_oracle-02 jaa_1351_0c68 0 17635200 17671680 c2t24d242 ENA

2 REPLIES 2

Gaurav_S
Moderator
Moderator
   VIP    Certified

Hello Varma,

I believe you need not to worry for that, what I understand is, you have two new 9GB disks where one comes from 878 frame & other comes from 1351 frame..

Well only one thing to confirm would be, what version of volume manager are you using ? If it is above 4.0, vxassist is intelligent enough to carry operations. When you execute vxresize, automatically vxassist would be called which would detect that first plex uses 878 frame & will add new disk from 878 frame to first plex... & correspondingly new disk from 1351 frame to second plex...

what you will need to do simply is, add disk media names in order to vxresize command... for e.g

vxresize -g plip03_jaa  jaa1_tech_oracle 26G xxx_878 xxx_1351    

(please note, I have calculated approx volume length, you might want to change it..... & xxx_878 & xxx_1351 represents new disks from frames)

also to note, vxresize command needs volume/FS to be mounted


Gaurav

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

From the vxprint output it seems that the volume is already resized. The volume size is just over 17 Gb:

v  jaa1_tech_oracle -        ENABLED  ACTIVE   35305488 SELECT    -        fsgen

The volume contains two plexes: pl jaa1_tech_oracle-01 and pl jaa1_tech_oracle-02 , each of them obviously the same size as the volume. Each plex contains two subdisks, each of them just under 9 Gb.
Both disks disk "with frame 878" already belongs to first plex (01):
pl jaa1_tech_oracle-01
sd jaa_878_1035-01  jaa1_tech_oracle-01
sd jaa_878_2b4b-01  jaa1_tech_oracle-01

Both disks "with frame 1351" already belongs to plex 02:
pl jaa1_tech_oracle-02
sd jaa_1351_1434-01 jaa1_tech_oracle-02
sd jaa_1351_0c68-01 jaa1_tech_oracle-02

What command did you use to resize the volume?  If you used vxresize, the volume and file system would've been resized simultaneously. If you used vxassist to grow the volume only, you need to grow the file system separately.
The command to check the current size depends on your O/S and the command to resize the filesystem depends on the file system type. UFS or VxFS?

When you grow a filesystem, you do it at volume/disk level. The filesystem doesn't know and doesn't care about the underlying volume layout. The volume is simply presented to the O/S as a disk of certain size.