- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to determine what disks are not assigned t...
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
05-22-2005 05:54 PM
05-22-2005 05:54 PM
would anyone be able to tell me what is the command to find out what disks are not assigned to any of the volume groups in the system and are available.
And what is the command to add a disk and extend the root volume group. I'm learning hp at the moment and my expertise is in AIX.
Please advise,
Cheers,
Raf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 06:10 PM
05-22-2005 06:10 PM
SolutionTwo commands and eyballs.
strings /etc/lvmtab
# lists the contents of a volume group.
ioscan -fnC disk
Any disk listed on the ioscan and not the strins command is not assigned.
There are other ways of figuring it out as well. sam can be helpful.
Lts say we identified a disk /dev/dsk/c2t2d0 that is not in a volume group and you want to extend vg02 ti include it.
vgextend /dev/vg02 /dev/dsk/c2t2d0
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 06:13 PM
05-22-2005 06:13 PM
Re: How to determine what disks are not assigned to any volume group
ioscan -fnC disk -> will give you all the disks configured in the system.
strings /etc/lvmtab -> will give all the disks added to vg.
Match these out puts and you can identify the disks that are not configured into any of the vg.
You can add a disk to root vg (vg00) with the normal vgextend command.
vgextend /dev/vg00 /dev/dsk/cxtydz
But if you are planning to extend /,swap or /stand logical volumes inside root vg... it is not possible even with Online JFS because these lvols have contigious allocation policy.
Hope this helps
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 06:15 PM
05-22-2005 06:15 PM
Re: How to determine what disks are not assigned to any volume group
Before adding any disk to a volume group, you have to make the disk usable by LVM.
pvcreate -f /dev/rdsk/c2t2d0 # -f for forceful creation and don't forget to use the raw device file to initialize the disk for LVM
Regards,
--Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2005 06:35 PM
05-22-2005 06:35 PM
Re: How to determine what disks are not assigned to any volume group
Just to summarize the steps...
1. # strings /etc/lvmtab
Note the Output
2. # ioscan -fnC disk
Note the Output and select all those disks which were not in the output of #1
3. # pvcreate -f
This will create a PV
4. # vgextend vg00
Thereafter you can use lvcreate or lvextend to create new LV's or extend existing LV.
If you are creating new LV then use:
# newfs -F vxfs
and if you have extended LV and want to increase filesystem size then:
# extendfs -F vxfs
That's all.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 12:10 AM
05-23-2005 12:10 AM
Re: How to determine what disks are not assigned to any volume group
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 12:18 AM
05-23-2005 12:18 AM
Re: How to determine what disks are not assigned to any volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 12:42 AM
05-23-2005 12:42 AM
Re: How to determine what disks are not assigned to any volume group
You can use the following simple script to find out which are disks not assigned to any VG,
#ioscan -kfnC disk|grep dsk|awk '{print $1}' > /tmp/dsk1
#strings /etc/lvmtab|grep dsk > /tmp/dsk2
#diff /tmp/dsk1 /tmp/dsk2|grep dsk|awk '{print $2}'
good luck...
Regards,
Saravanan M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2005 12:50 AM
05-23-2005 12:50 AM
Re: How to determine what disks are not assigned to any volume group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 11:00 AM
05-24-2005 11:00 AM
Re: How to determine what disks are not assigned to any volume group
Thanks for everyone's response and help, i was away off sick and will try soon, this info would be enough to find out the disks.
Cheers,
Raf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2005 03:01 PM
05-24-2005 03:01 PM
Re: How to determine what disks are not assigned to any volume group
Rgds...Geoff