Operating System - HP-UX
1752795 Members
6388 Online
108789 Solutions
New Discussion юеВ

How to change the boot-volume in lvlnboot

 
SOLVED
Go to solution
michael Fischer_1
Occasional Contributor

How to change the boot-volume in lvlnboot

Hi all,

I wrongly ran the command "lvlnboot -r /dev/vg00/lvol1". Now my root-volume is on lvol1.
The "lvlnboot -v" output is like this:
/dev/dsk/c4t6d0 (1/12/0/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (0/5/0/0.6.0) -- Boot Disk
Root: lvol1 on: /dev/dsk/c4t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c4t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c4t6d0
/dev/dsk/c3t6d0

As you can see, I didn't set up the boot-volume yet...
How can I change this configuration, that the lvol1 becomes the boot-volume, and the lvol3 becomes the root-volume?

Regards,
Mischa
3 REPLIES 3
Thierry Poels_1
Honored Contributor

Re: How to change the boot-volume in lvlnboot

hi,

see "man lvlnboot"

lvlnboot -r /dev/vg00/lvol3

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Jordan Bean
Honored Contributor
Solution

Re: How to change the boot-volume in lvlnboot

Start over.

lvrmboot -r /dev/vg00

lvlnboot -r /dev/vg00/lvol3
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2

Rajeev  Shukla
Honored Contributor

Re: How to change the boot-volume in lvlnboot

Hi,
You can re-run the sequence
lvlnboot -b /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
lvlnboot -d /dev/vg00/lvol2
lvlnboot -r /dev/vg00/lvol3
lvlnboot -v

Cheers
Rajeev