Operating System - HP-UX
1847885 Members
4467 Online
104021 Solutions
New Discussion

Expand volume with SAM "Increase Size"?

 
SOLVED
Go to solution
Toby Ragsdale
Frequent Advisor

Expand volume with SAM "Increase Size"?

I have a volume running out of space

/dev/vg00/lvol10 35848192 32624784 3198568 91% /vol1

Looking at the "increase size" option in SAM. Is this the correct tool? What pitfalls should I be looking for? Any other methods that work better, or I should look into?

The volume is VxFS.
The OS is HPUX 11
Running on a a400
12 REPLIES 12
Mel Burslan
Honored Contributor
Solution

Re: Expand volume with SAM "Increase Size"?

if you have unused space that you can allocate in vg00 already, you are safe no matter what. If vg00 is totally exhausted and you need to add new disk device then you need to be aware of the pitfalls of serviceguard (SG) environment. If you are not in SG environment, you are fine with sam. It is pretty much bullet proof.
________________________________
UNIX because I majored in cryptology...
Toby Ragsdale
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

Thanks for the quick response.

I should have space on the drives. Should I check anything else?

Logical Volume: lvol10
Volume Group: vg00
Space Available in Volume Group (Mbytes): 33952
Current Logical Volume Size (Mbytes): 35008

New Size (Mbytes): TBR
Steven E. Protter
Exalted Contributor

Re: Expand volume with SAM "Increase Size"?

Sam can do it.

Sam uses lvextend

lvextend /dev/vg00/lvol10 -L /dev/dsk/c#t#d#

use a real disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hazem Mahmoud_3
Respected Contributor

Re: Expand volume with SAM "Increase Size"?

Just make sure to also extend the filesystem and not just the logical volume. If you have online JFS, that would be the "fsadm" command and if you don't that would be the "extendfs" command (after unmounting the volume).

-Hazem
Toby Ragsdale
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

SEP, Mel Burslan.

Will be trying tonight, or tomorrow. I will get back and assign points.

Thanks
TBR
Toby Ragsdale
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

Hazem,

Posted while you were posting.

What I will be doing.

SAM
-Disk and File System
--Logical Volumes
---Select (lvol10 vg00 VxFS 35008 1 /vol1)
-----Actions "Increase Size"
-----New size 45g

Do I need to do somthing else?
Shane Travis
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

Toby;

I had to extend a volume about three weeks ago, and found that while SAM *says* it can do it, it was not actually able to because the drive was mounted and being used by others. As a result, I had to go right down to single-user mode before I could get it to work. Here are the notes I made for myself afterwards.

=======
The HP ESC has useful documents on how to go about allocating more disk space, but in short do the following:
- Boot into Single-User mode.
- Log into the system as root.
- Execute the command: "/sbin/lvextend -L "
- Execute the command: "/sbin/extendfs -F [hfs|vxfs] "
- Reboot the system.

The hfs/vxfs designation can be retrieved by looking in either /etc/fstab or /etc/checklist.

As an example, if I wanted to extend the /usr filesystem (which resides on /dev/vg00/lvol7) from 1024 to 2048 blocks, the commands would be:
#> /sbin/lvextend -L 2048 /dev/vg00/lvol7
#> /sbin/extendfs -F vxfs /dev/vg00/lvol7

========

If the SAM method doesn't work for you, this should help as a backup method. Hope it helps.
Senthil Kumar .A_1
Honored Contributor

Re: Expand volume with SAM "Increase Size"?

hello toby,


A short but useful info:
If you extend the volume using sam,It doesn,t prompt you onto what harddisk it will allocate the space.For better flexibility i wuold suggest doing on command prompt.This way you will know exactly whats going on the system as well,in case you need to troubleshoot if there were any error.Command promt steps,

1)check wether online JFS is installed
#swlist
a)If installed
#fsadm -v -F vxfs -b /vol1 http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/01/122-con.html&toc=/hpux/onlinedocs/B9106-90008/00/01/122-toc.html&searchterms=fsadm&queryid=20040428-023620
NOTE:extending the filesystem not required in this scenario fsad will take care of it
b)If online JFS not installed
#umount /vol1
#lvextend -L /dev/vg00/lvol10 [/dev/dsk/c#t#d#]
last argument /dev/dsk/c#t#d# is optional,helps u choose exact harddisk were the space ought to be allocated.
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/02/210-con.html&toc=/hpux/onlinedocs/B9106-90008/00/02/210-toc.html&searchterms=lvextend&queryid=20040428-024350e
#extendfs /dev/vg00/rlvol10 http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/01/109-con.html&toc=/hpux/onlinedocs/B9106-90008/00/01/109-toc.html&searchterms=lvextend&queryid=20040428-024350e
#mount /vol1

Note:All http links are man pages of the respective commands.

regards
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Pete Randall
Outstanding Contributor

Re: Expand volume with SAM "Increase Size"?

Toby,

Your approach with SAM will extend the lvol and the file system. The only thing to watch out for is that the volume needs to be unmounted, so make sure /vol1 is not in use.


Pete

Pete
Toby Ragsdale
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

All,

Thanks for the help. SAM was able to expand the volume with little problem. The problem I did encounter with SAM as Travis suggested is the volume in use, demanding me to start in â single user modeâ . After messing around in single-user mode for a bit, I got the crutch back out, stopped everything using the volume, and SAM worked just great.

Donâ t really know the point system round this forum yet, so I ascribed points to all. Each post was helpful, and I appreciate everyoneâ s input. Itâ s a small question, but one I wanted backup fo
Mike Tufariello
Frequent Advisor

Re: Expand volume with SAM "Increase Size"?

Tony,

I am facing the same situation as you describe here in this thread. When I check the mount point in SAM i get;

Logical Volume: lvol8
Volume Group: vgprod1
Space Available in Volume Group (Mbytes): 27540 --------
Current Logical Volume Size (Mbytes): 143360

So does this really mean that I have 27.5 GB available to add to the mount point?

I read the entire thread and saw that ultimately you did use SAM in the single user mode. The mount point I am working with is very rarely in use. So do you think I will be able to increase the size during normal operations?

Also I am hooked into an EVA5000 and all the disk are in a RAID 1 configuration. Should I have any concern about this or will SAM take care of the RAID?

I know this was an old issue for you, but it is all new to me.

Thanks in advance for any help you or anyone else can offer.
Torsten.
Acclaimed Contributor

Re: Expand volume with SAM "Increase Size"?

Mike,

please open your own thread.
Own question - own thread (anywhere in the internet).

You should provide a "vgdisplay -v" for the questionable VG too.
Please provide also if you have online JFS installed.

BTW, SAM doesn't care about the RAID level in the EVA, it is handled like a disk.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!