extending a file system

 
SOLVED
Go to solution
Mary Ann Lipa
Valued Contributor

extending a file system

hi,
please help...

i tried extending /sybasedump file system from 4gb to 6gb via sam, then rebooted.

but my bdf still shows:
/dev/vg01/lvol3 4007201 3606482 0 100% /sybasedump

though on lvdisplay:
--- Logical volumes ---
LV Name /dev/vg01/lvol3
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 6000
Current LE 1500
Allocated PE 1500
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

vgdisplay also shows:
LV Name /dev/vg01/lvol3
LV Status available/syncd
LV Size (Mbytes) 6000
Current LE 1500
Allocated PE 1500
Used PV 1

where seems to be the problem?
please help me.......
thank you....

btw, my system is still running on hpux 10.20 OS..

Thanks
Which is worse, smoking or picking your nose in a public place?
10 REPLIES 10
Kenneth_19
Trusted Contributor

Re: extending a file system

Hi,

Believed that you already have onlineJFS installed on your machine, and I can see that your filesystem is 100% full already. Try moving some files away from the mount point and extend the filesystem again using command line:

# fsadm -Fvxfs -b 6144000 /sybasedump

This should work, and you can move the files back afterward.

Kenneth
Always take care of your dearest before it is too late
Stefan Farrelly
Honored Contributor
Solution

Re: extending a file system

Lvdispaly shows it is 6GB, but you need to run an extendfs command to extend the filesystem as well. If you have OnlineJFS installed you can do this without unmounting your /sybasedump filesystem;

fsadm -F vxfs -b 6144000 /sybasedump

or if you dont have OnlineJFS then umount /sybasedump
then run;
extendfs -F /dev/vg01/rlvol3
mount /sybasedump

And your done.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Tim Adamson_1
Honored Contributor

Re: extending a file system

Hi,

You have extended the logical volume but haven't extended the filesystem

Stop any applications using the filesystem
Check for processes on the filesystem using fuser -cu /sybasedump
If no processes then umount /sybasedump

If processes, check with ps to determine who they are and ask them to log off. Alternatively, kill them with fuser -ku /sybasedump

Then umount /sybasedump

Check what type of filesystem it is:

grep sybasedump /etc/fstab

Extend the filesystem:

extendfs -F /dev/vg01/rlvol3

mount /sybasedump

All should be fine


Tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
Mary Ann Lipa
Valued Contributor

Re: extending a file system

Thanks Kenneth,
do you mean i have to copy my files to another directoy and restore back?
what if i dont have onlineJFS how do i work around this?

Thanks very much!!!
Which is worse, smoking or picking your nose in a public place?
Mary Ann Lipa
Valued Contributor

Re: extending a file system

Thanks Tim and Stefan,
I will log off all users and unmount my file system, then extendfs..

Thanks very very much, you guys are great!!!
Which is worse, smoking or picking your nose in a public place?
Kenneth_19
Trusted Contributor

Re: extending a file system

Mary,

If you don't have OnlineJFS installed, you can refer to the extendfs method as suggested by Stefan and Tim. They key is filesystem cannot extend when it is full already.

Kenneth
Always take care of your dearest before it is too late
Mary Ann Lipa
Valued Contributor

Re: extending a file system

thanks Kenneth,

then i have to free up some space on the FS before doing an extendfs, correct?
thanks!!
Which is worse, smoking or picking your nose in a public place?
Stefan Farrelly
Honored Contributor

Re: extending a file system

You only cant extendfs it if its 100% full, or possibly 99% full. Any lower is fine. Try it first anyway.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Tim Adamson_1
Honored Contributor

Re: extending a file system

Hi,

To extend a filesystem requires 2 steps:

- extend the logical volume
- extend the filesystem

You have already extended the logical volume. Now you have to extend the filesystem to use the new space.

So all you need to do is unmount the filesystem ans issue the extendfs command. You have already extended the logical volume and don't have to o that part.


Tim
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.