- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Logical Volume
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
07-05-2005 11:49 AM
07-05-2005 11:49 AM
Logical Volume
Thanks for the help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 12:01 PM
07-05-2005 12:01 PM
Re: Logical Volume
First find out the current state of the VG by vgdisplay command. Do "vgdisplay -v /dev/vg00"
It will give you a detailed information about the VG , LVOLs in that VG & the Physical Volumes on which that VG exists.
A more detailed information about the LVOL's can be found by "lvdisplay -v /dev/vg01/lvol*" command. A LVOL always do not contain a file system & can be used as raw or swap device as well. If it has file system & that is mounted it will be listed in "bdf" output. Swaps will be listed in "swapinfo -atm" otherwise if the VG is in use with raw file systems you need to know from your applications.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 12:26 PM
07-05-2005 12:26 PM
Re: Logical Volume
LV Name /dev/vg01/fy99
LV Status available/syncd
LV Size (Mbytes) 100
Current LE 25
Allocated PE 25
Used PV 1
When I did an lvdisplay this is the information it gave me:
root: / ==> lvdisplay -v /dev/vg01/fy99
--- Logical volumes ---
LV Name /dev/vg01/fy99
VG Name /dev/vg01
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 100
Current LE 25
Allocated PE 25
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c4t0d0 25 25
How do I mount this so I can see if it has the information I need?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 02:08 PM
07-05-2005 02:08 PM
Re: Logical Volume
think u really need someone with basic (or enough) knowledge of LVM to help u. in fact, i think u need someone who knows HP-UX, but never mind.
for logical volume, use lvdisplay command to view the status of each volume group:
# lvdisplay /dev/vgXX/lvol##
e.g. lvdisplay /dev/vg01/fy99
for volume group, use vgdisplay (-v option for more detail) command to view the logical volumes in that group:
# vgdisplay -v /dev/vgXX
e.g. vgdisplay -v /dev/vg00
to mount the logical volume (or file system):
# mount /dev/vgXX/lvol##
e.g. # mount /dev/vg00/lvol4 /home
if there is any residing mount point (which is commented off) and created in /etc/fstab , u may mount onto that, provided the directory is still there, else create one.
e.g. # mount /dev/vg01/fy99 /staging
just in case, u happen to be taking over from someone, a very good guide from docs.hp.com:
http://www.docs.hp.com/en/5990-8172/index.html
also, visit each man page for the commands.
regards.
(p.s. please remember to assign points.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2005 02:09 PM
07-05-2005 02:09 PM
Re: Logical Volume
If the file system is there on the LVOL it can be mounted. Use fstyp to determine which file system is contained there in.
#fstype /dev/vg01/fy99
Output should be vxfs or hfs.
Then create a directory to mount it
#mkdir /fy99
Now mount it mentioning file system type & mount point.
#mount -F vxfs or HFS (output from fstyp) /dev/vg01/fy99 /fy99
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:13 AM
07-06-2005 04:13 AM
Re: Logical Volume
root: / ==> mount -F vxfs /dev/vg01/fy99 /apps/ifas/admin/fy99
mount - not a valid vxfs file system
root: / ==> mount -F HFS /dev/vg01/fy99 /apps/ifas/admin/fy99
mount: HFS : Invalid argument
usage: mount [-l][-v|-p]
mount [-F FStype][-eQ] -a
mount [-F FStype][-eQrV][-o specific_options]
{ special | directory }
mount [-F FStype][-eQrV][-o specific_options]
special directory
Can you tell me what I did wrong?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:21 AM
07-06-2005 04:21 AM
Re: Logical Volume
Your information, insulting as it was, didnâ t help me at all. As you can see in my first response I do know how to check the LVâ s. And yes, I did try to do a mount as you suggested and here is the results.
root: / ==> mount /dev/vg01/fy99 /fy99
/dev/vg01/fy99: unrecognized file system
root: / ==>
The reason I am here asking for help is because everything else I tried didn't w
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:21 AM
07-06-2005 04:21 AM
Re: Logical Volume
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:22 AM
07-06-2005 04:22 AM
Re: Logical Volume
I apologize for the mistake.
It is fstyp & not fstype.
& is there in both /usr/sbin & sbin.
Regards,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:35 AM
07-06-2005 04:35 AM
Re: Logical Volume
I am not sure who created this LV but there is something wrong with it. Here is the information from the fstyp command:
root: / ==> fstyp /dev/vg01/fy99
unknown_fstyp (no matches)
root: / ==>
After talking with my manager I found that this LV was an LV on an older D380 server which had HP-UX 10.2 and was moved over with several other LV when that server was being turned off.
Any iedas as to what I can do to get this LV mounted or get it to a state where I can check to see what kind of files it has?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 04:40 AM
07-06-2005 04:40 AM
Re: Logical Volume
The fact that fstyp returns unknown indicates to me that there never was a file system created on it. In other words, it was a raw logical volume, typically used for a database. Without knowing a lot about what the database may have been, you won't be able to check this LV. You'll just have to assume that whatever was there is no longer valid and go ahead and re-use the space as your needs now require.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 05:14 AM
07-06-2005 05:14 AM
Re: Logical Volume
When I go to /dev/vg01 and do an "ll fy*" all 6 of the LV are listed:
root: /dev/vg01 ==> ll fy*
brw-r----- 1 root sys 64 0x01000c May 9 2000 fy94
brw-r----- 1 root sys 64 0x01000d May 9 2000 fy95
brw-r----- 1 root sys 64 0x01000e May 9 2000 fy96
brw-r----- 1 root sys 64 0x01000f May 9 2000 fy97
brw-r----- 1 root sys 64 0x010010 May 9 2000 fy98
brw-r----- 1 root sys 64 0x010011 May 9 2000 fy99
root: /dev/vg01 ==>
When I do an "ll" I see the rfy94 - rfy99 files too:
crw-r----- 1 root sys 64 0x01000c May 9 2000 rfy94
crw-r----- 1 root sys 64 0x01000d May 9 2000 rfy95
crw-r----- 1 root sys 64 0x01000e May 9 2000 rfy96
crw-r----- 1 root sys 64 0x01000f May 9 2000 rfy97
crw-r----- 1 root sys 64 0x010010 May 9 2000 rfy98
crw-r----- 1 root sys 64 0x010011 May 9 2000 rfy99
It is my understanding that the LV's had been created in May 2000 but now they do not work. These LV's contain end of year information that my company wants to keep. This is the only reason I am trying to save them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 05:19 AM
07-06-2005 05:19 AM
Re: Logical Volume
I aggree with Pete that your lvol seems to be used by a database as raw devices. In this event the contents will be of no use if you have not all of your database running which can actually access contents in some meaningful form.
You can start using this as new file system after creating one on this. The above mentioned procedure is enough for that. Just add two more things
#newfs -F vxfs -o largefiles /dev/vg01/fy99
Put an entry in /etc/fstab for auto mount of the file system at system reboots.
HTH,
Devender