- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Adding new disk
Operating System - HP-UX
1756562
Members
2308
Online
108848
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО07-07-2004 07:13 AM
тАО07-07-2004 07:13 AM
Re: Adding new disk
Good info. Have identified my drives (all of my drives including those that are missing). Now; how can I match the physical drive to a volume group or device?
For example; I'd like to equate the serial number of each disk to the device (ie. /dev/dsk/c5t0d5 = 3BV186XE) - or something like that.
Is it possible?
TIA
B
For example; I'd like to equate the serial number of each disk to the device (ie. /dev/dsk/c5t0d5 = 3BV186XE) - or something like that.
Is it possible?
TIA
B
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2004 07:18 AM
тАО07-07-2004 07:18 AM
Re: Adding new disk
not sure why you would need the serial number... related to the device name?
Easy way to tell when new devices are added ...
do a:
ls -lrt /dev/dsk/*
This will list in reverse order your disks of most recent creation last.
All you need now is to add them since you have found the correct new disks.
Easy way to tell when new devices are added ...
do a:
ls -lrt /dev/dsk/*
This will list in reverse order your disks of most recent creation last.
All you need now is to add them since you have found the correct new disks.
Unix, the other white meat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2004 07:21 AM
тАО07-07-2004 07:21 AM
Re: Adding new disk
Here is an easy script I have that lists used disks by VG...
you need a control file with all your VG names in it... vgnamesEMC.out
for name in `cat /root/vgnamesEMC.out `
do
echo $name
vgdisplay -v $name |grep "PV Name" |awk '{ print $3 }'
done > /root/disks.by.VG.`date +%m%d%y` 2> /root/vgerr.`date +%m%d%y`
~
you need a control file with all your VG names in it... vgnamesEMC.out
for name in `cat /root/vgnamesEMC.out `
do
echo $name
vgdisplay -v $name |grep "PV Name" |awk '{ print $3 }'
done > /root/disks.by.VG.`date +%m%d%y` 2> /root/vgerr.`date +%m%d%y`
~
Unix, the other white meat.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2004 07:24 AM
тАО07-07-2004 07:24 AM
Re: Adding new disk
Hi,
This simple script should print out a map of VGs and their corresponding disks.
for VG in $(vgdisplay -v |awk '/VG Name/ {print $3}')
do
printf "$VG -"
vgdisplay -v $VG |awk '/PV Name/ {printf "%s ", $3 }'
echo
done
The disks that are not shown in the above output would be unused. But make sure you don't have any VGs that are in deactivated stage as vgdisplay doesn't show information about them. You will have to depend on 'strings /etc/lvmtab' to get that information.
-Sri
This simple script should print out a map of VGs and their corresponding disks.
for VG in $(vgdisplay -v |awk '/VG Name/ {print $3}')
do
printf "$VG -"
vgdisplay -v $VG |awk '/PV Name/ {printf "%s ", $3 }'
echo
done
The disks that are not shown in the above output would be unused. But make sure you don't have any VGs that are in deactivated stage as vgdisplay doesn't show information about them. You will have to depend on 'strings /etc/lvmtab' to get that information.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP