- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: format a new harddisk and expand a existend lv...
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-19-2004 01:34 AM
04-19-2004 01:34 AM
format a new harddisk and expand a existend lvol on this hd
how are the commandos (syntax) to format a new HD (73 GB) and expand an existend lvol on this new Harddisk. My existend lvol is on vg00 - must the new HD be in vg01 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 01:45 AM
04-19-2004 01:45 AM
Re: format a new harddisk and expand a existend lvol on this hd
Therefore, all you'll need to do is :
pvcreate /dev/rdsk/newdisk
vgextend vg00 /dev/dsk/newdisk
lvextend -L newsize /dev/vg00/lvol# /dev/dsk/newdisk
fsadm -F vxfs -b newsize /mountpoint {if you have Online JFS}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 01:45 AM
04-19-2004 01:45 AM
Re: format a new harddisk and expand a existend lvol on this hd
If your logical volume is in vg00, the new disk must also be in vg00. So first use "pvcreate /dev/rdsk/
Two things to bear in mind. One is the mirroring aspect of things, if you are extending a lgocial volume, presumably you want this mirrored and if you don't already have the space on another disk in the volume group, you are not going to be able to mirror it anywhere except on teh same disk (which is a bit pointless).
Secondly, if the volume group was no created with the correct combination of PE size and/or maximum number of PE's on a disk, you are going to waste a lot of disk space as the system will not be able to use all the space on the disk. The solution to this problem, in vg00, is, a re-install of the OS via Ignite.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 01:58 AM
04-19-2004 01:58 AM
Re: format a new harddisk and expand a existend lvol on this hd
pvcreate /dev/rdsk/"newdisk"
is this the name who is display with:
vgdisplay -v -> /dev/dsk/xxxxxx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:04 AM
04-19-2004 02:04 AM
Re: format a new harddisk and expand a existend lvol on this hd
#pvcreate /dev/rdsk/cxtxdx (or use pvcreate -f)
To add disk in volume group.
#vgextend /dev/vgxx /dev/dsk/cxtxdx /dev/dsk/cxtxdx (second device is alternate link, if you have)
#vgdisplay -v vgxx (Check for new disk addition)
For example you want to extend file system to new size of 3GB and you have online JFS.
#lvextend -L 3000 /dev/dsk/lvolxxx
#fsadm -b 3000M /mountpoint
To check
#bdf /mountpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:04 AM
04-19-2004 02:04 AM
Re: format a new harddisk and expand a existend lvol on this hd
When you add the disk, you should be able to see the new disk with "ioscan -fnC disk" and it will have a device name /dev/dsk/xxxxxx. This is the name you use to refer to that disk in all the other commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2004 02:13 AM
04-19-2004 02:13 AM
Re: format a new harddisk and expand a existend lvol on this hd
mediainit -v /dev/rdsk/c#t#d#
Then issue the other HP/UX commands as others have stated. This does a function similar to a DOS format.