- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvdisplay
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
Discussions
Discussions
Forums
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
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
тАО06-29-2001 11:20 AM
тАО06-29-2001 11:20 AM
For example I want to know what is there in /dev/vg00/lvol13. I checked with bdf, lvdisplay and vgdisplay
Any clue..?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:23 AM
тАО06-29-2001 11:23 AM
Re: lvdisplay
Use bdf...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:32 AM
тАО06-29-2001 11:32 AM
Re: lvdisplay
bdf should do, or mount, usuall you add a file system in a logical volume that is mounted at the mountpoint specified
all this information is found with e.g. mount:
# mount
/ on /dev/vg00/lvol3 log on Fri Jan 12 22:16:43 2001
/stand on /dev/vg00/lvol1 defaults on Fri Jan 12 22:16:44 2001
/work on /dev/r5vg02/lvol6 delaylog on Fri Jan 12 22:16:54 2001
/var on /dev/vg00/lvol8 delaylog on Fri Jan 12 22:16:54 2001
/var/opt/oracle on /dev/r5vg02/lvol4 delaylog on Fri Jan 12 22:16:54 2001
/var/opt/app/budget on /dev/r5vg02/lvol5 delaylog on Fri Jan 12 22:16:55 2001
/usr on /dev/vg00/lvol7 delaylog on Fri Jan 12 22:16:55 2001
...
What else are you looking for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:41 AM
тАО06-29-2001 11:41 AM
Re: lvdisplay
I've this logical volume named /dev/vg00/lvol13 I want to know how this lvol is being used as.
bdf doesnot show this entry. vgdiplay -v /dev/vg00 shows the entry of lvol13 . lvdiaply -v /dev/vg00/lvol13 also gives the details with physical disk. I wan to know what is there in this perticular lvol.
Hope I'm clear this time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:43 AM
тАО06-29-2001 11:43 AM
Re: lvdisplay
'bdf' will only show mounted devices. Try mounting your device first.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:46 AM
тАО06-29-2001 11:46 AM
Re: lvdisplay
#!/usr/bin/sh
#
# Report the mountpoint for each argument on the command line
#
# Usage:
# mymountpt / /tmp /var/tmp /opt
#
set -u
if [ $# -lt 1 ]
then
echo
echo "Usage: $(basename $0) file_or_dir [ file_or_dir ....]"
echo " (to report where the file or directory is mounted)"
exit 1
fi
for DIR in $@
do
if [ -f $DIR -o -d $DIR ]
then
MNTPNT=$(/usr/bin/bdf $DIR | /usr/bin/grep -v ^Filesystem | /usr/bin/awk '{print
$NF}')
echo "$DIR is mounted at: $MNTPNT"
else
echo "$DIR is not a file or directory."
fi
done
Hope this helps.
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:47 AM
тАО06-29-2001 11:47 AM
Re: lvdisplay
I think I know what you are asking and I assume you have a logical volume that you don't know if it is a filesystem or not.
1) Run fsck -m and then do an echo $?
e.g. fsck -F vxfs -m /dev/vg00/lvol13
echo $?
If the resullt is 0; it is a vxfs filesystem suitable for mountinh; if the result is 32 more checks need to be done but it is a vxfs filesystem; 33 means it it already mounted; > 33 indicates that it is not a vxfs filesystem or is very corrupt
If you got a >33 error code then try it as an hfs filesystem
fsck -F hfs -m /dev/vg00/lvol13
echo $?
The same result codes apply.
If you get a 32 you then need to run fsck without -m to clean up the filesystem.
You can then mount the filesystem.
mkdir /mydir
mount -F vxfs (or hfs) /dev/vg00/lvol13 /mydir
If you got a > 33 result code on both types of filesystems, then there is nothing filesystem related there. Perhaps it was used as a dump or swap area. You can also use the dd command to look at /dev/vg00/lvol13.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 11:53 AM
тАО06-29-2001 11:53 AM
SolutionCheck your /etc/fstab to see if this is perhaps an LV that is being used for secondary swap. I just happen to have a /dev/vg00/lvol13 myself and it is used for swap. Here is the entry from /etc/fstab:
/dev/vg00/lvol13 ... swap defaults 0 0
Second, go into SAM, then to DISKS AND FILE SYSTEMS, then to LOGICAL VOLUMES. When the logical volume list comes up, look for lvol13 in the vg00 volume group. It will list the LVs use (swap, dump, swap/dump, or HFS or VxFS if it is a filesystem) or its last know mount point. If it lists a mount point you can then try mounting the LV manually by doing:
mkdir /my_mount
mount /dev/vg00/lvol13 /my_mount
cd /my_mount
and then see what you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 12:05 PM
тАО06-29-2001 12:05 PM
Re: lvdisplay
The lvol is unused. /etc/fstab don't have entry for this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-29-2001 12:10 PM
тАО06-29-2001 12:10 PM
Re: lvdisplay
It's nice that someone solved your problem but four other people tried to help you. You should assign them points too. Just a thought.
Regards,
John