Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

Increase size of file system

R.O.
Esteemed Contributor

Increase size of file system

Hi,

I am a HPUX system administrator and I have to increase the size of a file system in a Tru-64 system. What I see is:

$ df -k .
Filesystem 1024-blocks Used Available Capacity Mounted on
dat_domain#dat 512000 85107 370736 19% /opt/dat

Firstly, I want to know if I have enough space available and secondly I need the procedure to increase the size of this FS.

Thanks in advance and regards,
"When you look into an abyss, the abyss also looks into you"
12 REPLIES
Venkatesh BL
Honored Contributor

Re: Increase size of file system

> Firstly, I want to know if I have enough space available

Where? on the system or the file system?


> secondly I need the procedure to increase the size of this FS.

Since the file system is under "dat_domain" AdvFS domain, you can add a free disk/disk partition to it using the 'addvol' command:
# addvol /dev/disk/ dat_domain
[example: addvol /dev/disk/dsk5c dat_domain]
Note:
1) You need license to use 'addvol'. Check if you have it (by running the command)
2) You can add the volume when the file system is online. No need to unmount the file system.
Mark Poeschl_2
Honored Contributor

Re: Increase size of file system

The licensing command that BL meant to include is:
# lmf list full for ADVFS-UTILITIES

Also, if you don't happen to have a free partition that you can use 'addvol' on, some of the newer storage arrays support enlarging the disks presented to the OS. Tru64 then supports changing the disklabel of the existing disk on the fly and voila - your domain and all filesets in the domain - are bigger.
Manish PATHAK_2
Regular Advisor

Re: Increase size of file system

Hi,

You can add new HDD if you have expansion space available and add the new HDD in the existing domain.

Alternatively you can add the slice from some other free HDD Available.

Can you send me output of volume and domain for the one that you want to expand...

if my suggestion will be ok with you please let me know and i will send you the detailed procedure for the same.

Regards
Manish Pathak
R.O.
Esteemed Contributor

Re: Increase size of file system

Hi,

Thank you all for your responses. Manish, I am used to working with HPUX and I don´t know anything about Tru 64... Please, tell me what comands I have to execute to give you the info you are asking me for...

Regards,
"When you look into an abyss, the abyss also looks into you"
Mark Poeschl_2
Honored Contributor

Re: Increase size of file system

Commands (assuming you're on Tru64 5.x):

# hwmgr -view device | grep disk
# ls -lR /etc/fdmns
For each disk device in the output of 'hwmgr':
# disklabel -r /dev/rdisk/dsknnc
(Note the insertion of the 'r' in rdisk in this command.)
Manish PATHAK_2
Regular Advisor

Re: Increase size of file system

Hi please run the commands as suggested by mark apart from that also run the following command and post the output.

df -kh
voldisk list
volinfo
voldg list

and also specify in "df -k" which parttion you need to extend.

Regards
Manish
R.O.
Esteemed Contributor

Re: Increase size of file system

Hi,

Attached is the info you asked me. Thank you very much for your help !!

Regards,
"When you look into an abyss, the abyss also looks into you"
Manish PATHAK_2
Regular Advisor

Re: Increase size of file system

Do you have error in some disk or some other problem why the vold daemon is not running...

can you check it and then run the command

voldisk list & df -kh

Also let me know in which domain you want to add new HDD "Shared or Local".

Regards
Manish
Venkatesh BL
Honored Contributor

Re: Increase size of file system

Manish,

I don't think vold would be running if the user has not configured LSM on the system.
Manish PATHAK_2
Regular Advisor

Re: Increase size of file system

That is what my concern is ... what exactly is objective...

doing LSM and adding some space to some domain or volume or adding additional space to existing one.

Vladimir Fabecic
Honored Contributor

Re: Increase size of file system

There is no LSM in this system!
Do it using advfs utilities.
I will make an example:
We will add additional space to /opt/dat file system (see that /opt/dat is in dat_domain)
# addvol /dev/disk/dsk45c dat_domain

Another example:
First create new disk on HSG80 and present it to host.
Do:
# hwmgr -show scsi
to see all disks on your system
Then:
# hwmgr -scan scsi
to rescan bus and find new disk
then:
# hwmgr -show scsi
to see what is the name of new disk (in our example let it be dsk46)
Label the disk using:
# disklabel -rw dsk46 HSG80
Add new disk to existing domain:
# addvol /dev/disk/dsk46c dat_domain
Your file system is bigger for the size of newly added disk space. No need to remount.
You can also do:
# balance dat_domain
to balance load.
Regards
In vino veritas, in VMS cluster
Vladimir Fabecic
Honored Contributor

Re: Increase size of file system

Did you fix the problem?
Need additional help?
In vino veritas, in VMS cluster