- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Help adding two new disks into an existing volume ...
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
Forums
Discussions
Discussions
Discussions
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
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
04-20-2011 06:58 AM
04-20-2011 06:58 AM
Help adding two new disks into an existing volume group
We have onlineJFS.
I need to add two new disks into an existing volume group (vg01), extend the logical volume and file system to use the size..
Current:
#bdf
/dev/vg01/gexdata01 163840000 141899412 21940588 87% /h/data
Current logical volume:
gexdat01 vg01 LVM VxFS 160000 0 /h/data
Current disk:
0/1/1/0.0.0.0.0 LVM vg01 286102 DG0300
New Disks:
0/1/1/0.0.0.3.0 Unused 286102 DG0300
0/1/1/0.0.0.4.0 Unused 286102 DG0300
Can you provide steps to accomplish this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 07:06 AM
04-20-2011 07:06 AM
Re: Help adding two new disks into an existing volume group
ioscan -fnC disk
insf -e
find the two new disks device files, i.e., /dev/rdsk/cXtXdX
pvcreate /dev/rdsk/cXtXdX (one for each disk, make sure you are using rdsk -raw device)
vgextend /dev/dsk/cXtXdX (one for each disk, make sure you are using dsk -block device)
that's it
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 07:36 AM
04-20-2011 07:36 AM
Re: Help adding two new disks into an existing volume group
lvextend and extendfs (for the logical volume and file system).
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 08:14 AM
04-20-2011 08:14 AM
Re: Help adding two new disks into an existing volume group
Actually, assuming they have online jfs as stated, it should be
fsadm -F vxfs -b $((new_size_in_megs))m ${mp}
not extendfs... My understanding is that requires the filesystem to be unmounted.
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 09:21 AM
04-20-2011 09:21 AM
Re: Help adding two new disks into an existing volume group
-USA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2011 11:52 PM
04-20-2011 11:52 PM
Re: Help adding two new disks into an existing volume group
Note /dev/rdsk/cXtXdX for both new disk
# pvcreate /dev/rdsk/cXtXdX
Repeat for both disk
# vgextend /dev/dsk/cXtXdX /dev/vg01
Repeat for both disk
# vgdisplay -v /dev/vg01 --check assigned PVs
# lvextend /dev/vg01/gexdat01 /dev/dsk/cXtXdX
Repeat for both disk
# fsadm -F vxfs -b
i.e., # fsadm -F vxfs -b 2560000 /data --It will extend file system and total size will be 2500MB
# bdf --check total size
Was this post useful? - You may click the KUDOS! star to say thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2011 06:01 PM
04-21-2011 06:01 PM
Re: Help adding two new disks into an existing volume group
Make sure that, the new disks which are extending on VG will have the same size of existing (old) disks of VG. Else, you need to modify the extents/disk using vgmodify.
pvcreate, vgextend, lvextend & fsadm are the commands.
Thanks,
Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2011 11:35 PM
04-21-2011 11:35 PM
Re: Help adding two new disks into an existing volume group
sometimes, you need to wait for awhile for system find the new disks after insf -e ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2011 01:52 AM
04-22-2011 01:52 AM
Re: Help adding two new disks into an existing volume group
#insf -e
find the device file for the hard disk's of the following hardware path (0/1/1/0.0.0.3.0,0/1/1/0.0.0.4.0)
#pvcreate -f /dev/rdsk/cxtxdx (new hdd device file)
#pvcreate -f /dev/rdsk/cytydy (other hdd device file)
#vgextend vg01 /dev/dsk/cxtxdo /dev/dsk/cytydy
#lvextend -L (total lvm size) /dev/vg01/gexdata01
#fsadm -F vxfs -b new size in mb x 1024 /mount point
#bdf