- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Extending /usr using Veritas Enterprise Manage...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 08:25 PM
тАО08-09-2005 08:25 PM
Extending /usr using Veritas Enterprise Manager.
And as this is the /usr volume can this be done whilst mounted or do I need to go into some sorted of single user mode?
All help greatly appreciated.... and rewarded!
Russ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 08:45 PM
тАО08-09-2005 08:45 PM
Re: Extending /usr using Veritas Enterprise Manager.
It can be done both ways but always recomended is the command line. Before starting insure that your rootdg has this much free space. ( I suppose you are using VxVM for os as you mentioned increasing it using VEA.
It can be done online if you have Online JFS installed. To see if you have that
#swlist -l product |grep Online
OnlineJFS B.11.11 Online features of the VxFS File System
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 09:09 PM
тАО08-09-2005 09:09 PM
Re: Extending /usr using Veritas Enterprise Manager.
(*IF* Your root volumes are under VxVm control)
lvextend -L 4096 /dev/vg00/lvol
fsadm -Fvxfs -b 4096m /usr
(*IF* Your root disks are under LVM control and OnlineJFS is installed)
otherwise at least single user will be needed for extending /usr, but as You appear to have a full vxvm license installed, You should be fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 09:20 PM
тАО08-09-2005 09:20 PM
Re: Extending /usr using Veritas Enterprise Manager.
(node03) / > swlist -l product | grep Online
OnlineJFS B.11.11 Online features of the VxFS File System
Thanks
Russ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 09:30 PM
тАО08-09-2005 09:30 PM
Re: Extending /usr using Veritas Enterprise Manager.
You can no doubt use the GUI option for convenience.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 09:52 PM
тАО08-09-2005 09:52 PM
Re: Extending /usr using Veritas Enterprise Manager.
it hasn't been clear to me whether you are using VxVM or LVM.
Because you mentioned the Veritas Enterprise Manager I assume your volume is under VxVM control.
First check if the Disk Group (DG)
has enough chunks in the DG's free space pool.
n.b. I can only run this on a Solaris box as we are solely using LVM on our HP-UX boxes.
So my output may be different.
# vxdg -g rootdg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
rootdsk0 c0t0d0s2 c0t0d0 143420200 100232 -
rootdsk1 c0t1d0s2 c0t1d0 143420200 100232 -
Here I am a bit in a catch.
To my knowing (at least under Solaris) it isn't possible to change the size of any VxVM volume of your root disks without reencapsulating (which requires two reboots at least, and a change of the underlying BSD slices).
This however only applies to rootable made root/boot disks for VxVM under Solaris.
It may be completely different under HP-UX.
Nevertheless, it is possible for any other non rootable DG's volumes to change their sizes any time at random.
Let's assume for now my rootdg held disks that weren't made rootable.
You then could use the vxassist command to increase the underlying volume's size for wich you need to extend the filesystem.
It usually boils down to something like
vxassist -g rootdg growby
Replace
vxprint -vg rootdg
and some other size if you don't want to extend by 2 GB.
There's also a "growto" if you want to relate to the end size
(this is like LVM's lvextend works)
See man vxassist.
I can't remember but it could well be that the vxassist command as well extends the filesystem if it is VxFS automagically.
A bdf or df -k will show.
If not use the fsadm command to extend the filesystem after the volume was grown,
just like the others replied.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2005 10:30 PM
тАО08-09-2005 10:30 PM
Re: Extending /usr using Veritas Enterprise Manager.
If You have OnlineJFS or vxvm, see the commands I wrote in the first posting.
To find out if You're using VxVM or LVM, just type
bdf /usr and look at the output:
For vxvm it looks like this:
root@lala:/>bdf /usr
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/usrvol
2129920 1342854 737893 65% /usr
For LVM it looks like this:
root@lala:/>bdf /usr
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol16 1343488 1124598 206358 84% /usr
Ralph:
I extended one volume (/home) in my rootdg yesterday during testing after migrating from lvm to vxvm yesterday, it worked.
On the other hand, things don't look really right (as in 'completely mirrored') now...:
vxdg -g rootdg free
DISK DEVICE TAG OFFSET LENGTH FLAGS
rootdisk01 c3t15d0 c3t15d0 15171584 2605762 -
rootdisk02 c1t15d0 c1t15d0 7421952 10355394 -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 12:35 AM
тАО08-10-2005 12:35 AM
Re: Extending /usr using Veritas Enterprise Manager.
I used
vxassist -g rootdg growby usrvol 2000M
Sat and waited a while.... Then when complete tried to run,
fsadm -F vxfs -b 4000M /usr
OR
fsadm -F vxfs -b 4000000 /usr
OR
fsadm -F vxfs -b 4000M -r /dev/vx/dsk/rootdg/usrvol /usr
None of which extended the file system into the new volume.
I get:
vxfs fsadm: /dev/vx/rdsk/rootdg/usrvol is currently 2097152 sectors - size will be increased
vxfs fsadm: attempt to resize /dev/vx/rdsk/rootdg/usrvol failed with errno 28
What am I doing wrong now !!
How can I confirm that the volume actaully extended?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-10-2005 04:35 PM
тАО08-10-2005 04:35 PM
Re: Extending /usr using Veritas Enterprise Manager.
Hello Russ,
If you want to extend only volume (under vxvm) then you have to use vxassist. Normally incase if you don't have OnlineJFS
Incase if you want to increase both volume and its underlaying filesystem then you have to use vxresize. Works only with OnlineJFS
Since you have OnlineJFS you can use this single command which will increase both volume and filesystem size.
Now check the size of the volume
#vxprint -v -g rootdg
Notedown the "length"
#fsadm -F vxfs -b "length" /usr
Note: If the /usr filesystem is full i.e 100% previously then you can not increase the fileysstem with fsadm. If that is the case you needs to use extendfs
ERR:28 means /* No space left on device */
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 02:07 AM
тАО08-11-2005 02:07 AM
Re: Extending /usr using Veritas Enterprise Manager.
vxassist is a one-step command!
please issue:
vxassist -g rootdg growto usrvol 4194304
and let me know the results ;)
bdf /usr should show increased size.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 02:29 AM
тАО08-11-2005 02:29 AM
Re: Extending /usr using Veritas Enterprise Manager.
vxvm:vxassist: ERROR: Volume usrvol: operation would not change size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2005 03:02 AM
тАО08-11-2005 03:02 AM
Re: Extending /usr using Veritas Enterprise Manager.
this is the way I did it yesterday and re-tested now:
root@lala:/>bdf /usr
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/usrvol
2130000 1342865 737958 65% /usr
root@lala:/>/opt/VRTS/bin/vxresize -F vxfs -g rootdg usrvol 2140000
root@lala:/>bdf /usr
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/usrvol
2140000 1342865 747333 64% /usr
substitute 2140000 with 4194304 for Your needs.
Florian