- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How mounting an external disk containing a lvm...
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
12-11-2007 01:23 PM
12-11-2007 01:23 PM
I have 2 workstations in HP-UX 11:
one with an external scsi disk at #5 and I think on this disk there is my data in /dev/vg00/home. The problem is that the boot disk of this workstation is out so I want to mount this external disk on another workstation. My problem is that there is a lvm structure on this external disk and I don't know how to mount it on the other workstation. (vgimport ?)
Thanks for help ...
Regards
JB
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 01:27 PM
12-11-2007 01:27 PM
Re: How mounting an external disk containing a lvm ?
-ioscan
-ioscan -kfnC disk to view hardware
-insf -eH path_to_disk
-mkdir /dev/vgnew
-mknod /dev/vgnew/group c64 0x0a0000 ( pick an unused minor number
-vgimport /dev/vgnew /dev/dsk/cxtxdx ( device of new disk )
-fsck /dev/vgnew/rlvolx
-mkdir /newdir
-mount /dev/vgnew/lvolx /newdir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 01:45 PM
12-11-2007 01:45 PM
Re: How mounting an external disk containing a lvm ?
When I type the vgimport command my systeme tell "vgimport : cannot open the control file /dev/vgnew/group : no such device".
But when I type ls -l of /dev/vgnew I can see :
crwxrwxrwx 1 root sys 64 0x0a0000
Thanks
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 01:52 PM
12-11-2007 01:52 PM
Re: How mounting an external disk containing a lvm ?
You will have to pick a free number
# ll /dev/*/group
You will probably have only one group file for vg00.
# rm /dev/vgnew/group
# mknod /dev/vgnew/group c64 0x010000
# vgimport /dev/vgnew /dev/dsk/cxtxdx
change the x's into your new disk device.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:06 PM
12-11-2007 02:06 PM
Re: How mounting an external disk containing a lvm ?
My disk is at /dev/dsk/c1t5d0 so I don't know witch lvol fsck and mounting ?
Thanks
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:10 PM
12-11-2007 02:10 PM
Re: How mounting an external disk containing a lvm ?
vgimport /dev/vgxyz /dev/dsk/c1t5d0
-You can do a vgdisplay -v /dev/vgxyz to see the lvols ( you may need to do a vgchange -a y /dev/vgxyz if you get "not activated messages).
-pick the lvol that you are interested in
-fsck /dev/vgxyz/rlvolx
-then mount /dev/vgxyz/lvolx /mymount
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:14 PM
12-11-2007 02:14 PM
Re: How mounting an external disk containing a lvm ?
Thanks
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:18 PM
12-11-2007 02:18 PM
Re: How mounting an external disk containing a lvm ?
1) there was not already a /dev/vgnew on serverb
2) there was only one disk in the volume group you are recovering from servera
Your last error indicates that there was more than one disk in the volume group on servera. If you are sure then you can vgchange -a y -q n /dev/vgnew. This will override the quorum requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:22 PM
12-11-2007 02:22 PM
Re: How mounting an external disk containing a lvm ?
Thanks
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:23 PM
12-11-2007 02:23 PM
Re: How mounting an external disk containing a lvm ?
are you there where no other disks in the vg01 conf of the old system ?
Try to override the quorum
# vgchange -a y -q n /dev/vgnew
# vgdisplay -v /dev/vgnew
# fsck /dev/vgnew/rlvol1
# mkdir /oldhome
# mount /dev/vgnew/lvol1 /oldhome
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:29 PM
12-11-2007 02:29 PM
SolutionAll these vgimport / vgchange commands do not change data on the disk. They are only reading/importing the VG info / LVM header on the disk.
So unless you physically smash it on the ground or purposefully overrite the data you will not loose anything.
Another note: Once imported, if you do not remember which lvol has your data ( assuming there is more than 1 lvol ) you can repeat the fsck and mount on each one until you find what you are looking for.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:43 PM
12-11-2007 02:43 PM
Re: How mounting an external disk containing a lvm ?
/dev/vgnew is active but
when I type fsck on /dev/vgnew/rlvolx (x from 1 to 9) I have the message : fsck : /etc/defaults/fs is used for determining the file system type cannot open device /dev/vgnew/rlvolx file system failure
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 02:51 PM
12-11-2007 02:51 PM
Re: How mounting an external disk containing a lvm ?
# fsck -F vxfs /dev/vgnew/rlvol9
# mount /dev/vgnew/lvol9 /oldhome
etc
disregard lvol1 (stand)+ lvol2 (swap)and lvol3 (/)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 03:01 PM
12-11-2007 03:01 PM
Re: How mounting an external disk containing a lvm ?
The message is "File system check failure aborting ..."
Thanks
JB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2007 03:38 PM
12-11-2007 03:38 PM
Re: How mounting an external disk containing a lvm ?
Sorry for me it's 0H30 in France so I go to bed ...
I hope tomorrow you will find a solution for my server ...
Thanks a lot and wait ...
Bye
JB