1752805 Members
5503 Online
108789 Solutions
New Discussion юеВ

Re: extend a file system

 
SOLVED
Go to solution
Mary Ann Lipa
Valued Contributor

extend a file system

Hi,
lvol3 was extended from 4gb to 6gb but how can i extend the file system if i have these entries on the /etc/fstab?

/dev/vg01/lvol3 /sybasedump hfs rw,suid 0 2
/dev/vg01/lvol3 /sybasedump swapfs min=25600,lim=25600,pri=1 0 2

modify /etc/fstab, reboot, then extendfs?
what will i use?
extendfs -F hfs/swapfs?????

please help..
Thakns!
Which is worse, smoking or picking your nose in a public place?
7 REPLIES 7
Mary Ann Lipa
Valued Contributor

Re: extend a file system

i cant see the replies...+(
Which is worse, smoking or picking your nose in a public place?
Leif Halvarsson_2
Honored Contributor

Re: extend a file system

Hi,
If you want to increase swap the easiest way is to create an additional swap volume.
Massimo Bianchi
Honored Contributor
Solution

Re: extend a file system

Hi,
you have to reboot because the FS is used as a swap.

Then:
- modify /etc/fstab commenting out the entry for lvol3
#/dev/vg01/lvol3 /sybasedump hfs rw,suid 0 2
#/dev/vg01/lvol3 /sybasedump swapfs min=25600,lim=25600,pri=1 0 2
- disable the autostart of sybase
- execute
extendfs -F hfs /dev/vg01/lvol3
- modify the /etc/fstab adding back the entry
- start sybase


swapfs is a way to specify that the SO must swap on the FS, it's not a formatting.

Massimo
Mary Ann Lipa
Valued Contributor

Re: extend a file system

Thanks Leif,
i needed to do an extendfs on /dev/vg01/lvol3..
how can i do that when i have 2 different file system types [/etc/fsrab]?

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

Re: extend a file system

Thanks Massimo,

Do i have to edit first the /etc/fstab entries and disable the autostart of sybase before i reboot?...

Then:
- execute
extendfs -F hfs /dev/vg01/lvol3
- modify the /etc/fstab adding back the entry
- start sybase


>swapfs is a way to specify that the SO must swap on the FS, it's not a formatting.

Thanks for the information, i needed that...
i thought there would be conflict when i extendfs the file system because it is written as swap and hfs on /etc/fstab...

Thanks again!
Which is worse, smoking or picking your nose in a public place?
Massimo Bianchi
Honored Contributor

Re: extend a file system

Hi,

>Do i have to edit first the /etc/fstab entries >and disable the autostart of sybase before i >reboot?...

YES, because we do not want the lvol to be mounted and sybase to start (without the lvol will be difficult..., i think)

Massimo

Massimo Bianchi
Honored Contributor

Re: extend a file system

Hi,
forgot a little thing:

- close syabse
- change the autostart of sybase to off
- edit the /etc/fstab
- shutdown -r


because otherwise at shutdown sybase won't be closed, and this is not nice....

Massimo