- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- minor script question
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
01-05-2004 02:34 AM
01-05-2004 02:34 AM
for DISK in `ls /dev/rdsk`
do
[ "${DISK}" != c3t6d0 ] && pvcreate -f /dev/rdsk/${DISK}
done
i am confused by the "c3t6d0" statement. Can someone help me disect this so i understand it better? It's not going to label all disks c3t6d0?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 02:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 02:41 AM
01-05-2004 02:41 AM
Re: minor script question
could i do this;
[ "${DISK}" != c3t6d0 c3t7d0 c3t8d0 ] && pvcreate -f /dev/rdsk/${DISK}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 02:42 AM
01-05-2004 02:42 AM
Re: minor script question
type lssf /dev/dsk/c3t6d0
it will probably come back with sdisk card instance 3 SCSI target 6 LUN 0
this helps you identify which disk it is and what controller and target address it operated by.
:-) John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 02:43 AM
01-05-2004 02:43 AM
Re: minor script question
Do a man ksh
this will do a pvcreate on all disks other than c3t6d0 which essentially should be root volume or something like that , there are more ways to get the list of the newly accquired disks for which pvcreate is to be run.
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2004 03:33 AM
01-05-2004 03:33 AM
Re: minor script question
You could use-
["${DISK} = c3t6d0 ] && continue
["${DISK} = c3t7d0 ] && continue
["${DISK} = c3t8d0 ] && continue
pvcreate -f /dev/rdsk/${DISK}
Or you could use-
case ${DISK} in
c3t6d0|c3t7d0|c3t8d0) continue;;
*) pvcreate -f /dev/rdsk/${DISK};;
esac
HTH
-- Rod Hills