- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: newfs
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
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
02-10-2005 08:26 AM
02-10-2005 08:26 AM
/dev/vg02/data
/dev/vg02/data2
/dev/vg02/data3
/dev/ora/lvol1
and extract it so I could replace the logical volume with the r before the logical volume so I could use this for an input to a newfs command no matter what the volume group name is.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 08:32 AM
02-10-2005 08:32 AM
SolutionINFILE=/xxx/yyy/myfile # your above file
cat ${INFILE} | while read X
do
DIR=$(dirname ${X})
LVOL=$(basename ${X})
RLVOL="${DIR}/r${LVOL}"
echo "Full raw volume = ${RLVOL}"
done
man dirname, basename for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2005 08:38 AM
02-10-2005 08:38 AM
Re: newfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2005 03:45 PM
02-11-2005 03:45 PM
Re: newfs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2005 01:03 AM
02-12-2005 01:03 AM
Re: newfs
Is there a hidden next level for Olympians...? :)
Regards,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2005 05:17 AM
02-12-2005 05:17 AM
Re: newfs
Something like the following will be more simpler. I have tested the output of the following and its working.
#!/usr/bin/sh
vgdisplay -v /dev/vg00|grep -i "lv name" | awk '{print $3}'|cut -f 4 -d "/">test
sed 's/^/r/g' test>rlvols
#here comes your code for newfs
<
code
>
rm test
rm rlvols
#End
Regards,
Syam