- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: boot from SAN snapshot
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-17-2007 12:55 AM
01-17-2007 12:55 AM
We have two identical HP-UX IA64 boxes. The primary server is booting from an EMC CX300 SAN and doing LVM mirroring to another SAN. On the secondary SAN we have created a snapshot using EMC Snapview. Now we are trying to boot the secondary server off this snapshot for development, testing, etc...
We are unable to boot. When we try to get into LVM maintenance mode it comes back with "no primary swap space configured" among other things.
Anybody have any ideas on how to do this?
Thanks,
Dale
vgdisplay of vg00 (root, swap, dump) from primary server
# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 3
Open LV 3
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4059
VGDA 4
PE Size (Mbytes) 32
Total PE 8098
Alloc PE 8098
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 320
Current LE 10
Allocated PE 20
Used PV 2
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 256
Allocated PE 512
Used PV 2
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 121056
Current LE 3783
Allocated PE 7566
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c4t0d0s2
PV Status available
Total PE 4049
Free PE 0
Autoswitch On
PV Name /dev/dsk/c9t0d0s2
PV Status available
Total PE 4049
Free PE 0
Autoswitch On
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 08:36 PM
01-17-2007 08:36 PM
Re: boot from SAN snapshot
Do you actually get to a prompt in LVM maintenance mode?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2007 09:32 PM
01-17-2007 09:32 PM
Re: boot from SAN snapshot
My 2-pence/musings:
- Booting happens in the 'boot area' of the disk
- booting happens *before* LVM kicks in
so...
mirroring at the LVM level is good for data but not enough for booting.
The 'mirroring' needs to happen below LVM (say, at the HW level)
Hope this helps
Nick 'dubya'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 12:57 AM
01-18-2007 12:57 AM
Re: boot from SAN snapshot
Attached are some screenshots of the boot process.
What about booting the HP-UX install DVD and running some recovery commands?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 02:41 AM
01-18-2007 02:41 AM
Re: boot from SAN snapshot
swapinfo
and
lvlnboot -v vg00
on the source system?
Cheers
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 02:47 AM
01-18-2007 02:47 AM
Re: boot from SAN snapshot
# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8388608 2198092 6190516 26% 0 - 1 /dev/vg00/lvol2
localfs 16777216 0 16777216 0% 16777216 0 2 /paging
reserve - 9633708 -9633708
# lvlnboot -v vg00
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c4t0d0s2 (0/2/1/0.1.0.0.0.0.0) -- Boot Disk
/dev/dsk/c9t0d0s2 (0/5/1/0.4.1.0.0.0.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c4t0d0s2
/dev/dsk/c9t0d0s2
Root: lvol3 on: /dev/dsk/c4t0d0s2
/dev/dsk/c9t0d0s2
Swap: lvol2 on: /dev/dsk/c4t0d0s2
/dev/dsk/c9t0d0s2
Dump: lvol2 on: /dev/dsk/c4t0d0s2, 0
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 03:10 AM
01-18-2007 03:10 AM
Re: boot from SAN snapshot
I can't see the additional swap space causing a problem (after all you have it set at a lower priority), but you *might* want to try temporarily removing it on the source and repeating the split.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 03:18 AM
01-18-2007 03:18 AM
Re: boot from SAN snapshot
entry 0 - auto-configured on root device; NOTICE: USB device attached
the we get some other stuff about USB...
Now like I say, it could be just formatting (everything after the ';' might relate to another subsystem starting), but it does look peculiar... do you have some USB device attache dto this server? Try removing and booting again...
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2007 02:22 AM
01-19-2007 02:22 AM
Re: boot from SAN snapshot
If the kernel parameter 'swapmem_on' is set to 0, the system
will panic during boot and the following message will be
displayed:
panic: swapconf - no primary swap space configured
If swapmem_on is set to 1, which is the default value, the
system will boot in LVM maintenance mode but the following
additional message will be displayed:
WARNING: no swap device configured, so dump cannot be
defaulted to primary swap.
HP recommends that pseudoswap be enabled
by setting the kernel parameter 'swapmem_on' to the default
value of 1 on systems that boot from an LVM disk.
Ours is set to zero right now.
Thanks,
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 01:21 AM
01-23-2007 01:21 AM
Re: boot from SAN snapshot
We've made the following changes in LVM maintenance :
1) vgexport vg00
2) mkdir /dev/vg00
3) mknod /dev/vg00/group c 64 0x000000
4) insf -e
5) vgimport /dev/vg00 /dev/dsk/c10t0d0s2
6) vgchange -a y -q n /dev/vg00
7) fsck /dev/vg00/lvol1
8) fsck /dev/vg00/lvol3
9) lvlnboot -r /dev/vg00/lvol3
10) reboot -n
Now when we boot into single user mode it comes back with this error :
ioinit: Rebooting the system because /etc/ioconfig and /stand/ioconfig files are inconsistent
Any suggestions on what to try next? One thing to note is that the insf -e command adds 6 devices (c10t0d0s6), even though it should only be 3. Also we get errors with the vgchange and lvlnboot commands because we only have one of the two LVM mirrors available.
Thanks,
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 02:05 AM
01-23-2007 02:05 AM
Re: boot from SAN snapshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2007 02:46 AM
01-23-2007 02:46 AM
SolutionThe ioconfig thing doesn't surprise me - /stand/ioconfig will have been re-generated when you booted, but /etc/ioconfig will not - I wouldn't worry about that one too much, if the 2nd reboot fixes it.
With respect to the mirror problems, I expect you will need to use a 'lvreduce -m 0' followed by vgreduce -f to resolve this. e.g. if the disk which is now showing as having stale extents is c9t0d0s2 then:
lvreduce -m 0 /dev/vg00/lvol1 /dev/dsk/c9t0d0s2
*repeat for all other lvols*
then
vgreduce -f vg00
proably best to do a lvlnboot -R after all this as well:
lvlnboot -R vg00
As for the apparent additional slices on the disks - that one has me confused - what does diskinfo tell you about them?
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2007 02:05 AM
01-25-2007 02:05 AM
Re: boot from SAN snapshot
lvdisplay -v /dev/vg00/lvol1
shows PV1 as ??? and PV2 as /dev/dsk/c10t0d0s2
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2007 02:13 AM
01-25-2007 02:13 AM
Re: boot from SAN snapshot
lvdisplay -k -v /dev/vg00/lvol1
lvreduce -m 0 -k /dev/vg00/lvol1 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2007 03:28 AM
01-29-2007 03:28 AM
Re: boot from SAN snapshot
1) boot -lm
2) vgexport vg00
3) mkdir /dev/vg00
4) mknod /dev/vg00/group c 64 0x000000
5) insf -e -H
6) vgimport /dev/vg00 /dev/dsk/c0t3d0s2
7) vgchange -a y -q n /dev/vg00
8) lvreduce -m 0 -k /dev/vg00/lvol1 0
9) lvreduce -m 0 -k /dev/vg00/lvol2 0
10) lvreduce -m 0 -k /dev/vg00/lvol3 0
11) vgreduce -f vg00
12) /sbin/fs/vxfs/fsck /dev/vg00/lvol1
13) /sbin/fs/vxfs/fsck /dev/vg00/lvol3
14) ioinitrc
15) boot -is
16) rmsf -H
17) insf -e -H
18) init 3
Thanks all for your help.