Operating System - HP-UX
1819803 Members
2929 Online
109607 Solutions
New Discussion юеВ

Re: Dual Boot && Multiple File Systems

 
yazgoo
Frequent Advisor

Dual Boot && Multiple File Systems

Hello everyone,

Here is my problem :

I want to install a new version (11.23) of HPUX on a different disc. The current v is 11.11.

It seems simple ...

> BUT curently, my directory tree is separated in file systems.
For example
/ is on one file system
/usr/ is on another one
> Another problem is that some of those file systems may be on the second disk (but they could be deleted if nessesary) where I want to install HP UX 11.23.

+ Can I make this dual boot?
+ How HPUX could see that one /usr/ is under / of one disk and not on the other ?
+ Then, if it is (hopefully) possible, How could I do that ?
Yazgoo
14 REPLIES 14
Nagashankarp
Frequent Advisor

Re: Dual Boot && Multiple File Systems

usually / ( root) /usr / opt and any other standard mount points would always be on the same disk provided the installation was done on only one disk, can you give the output of strings /etc/lvmtab that would explain if the OS spans more than one disk
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Thanks,

Every system directory seems to be on /dev/vg00/ only.
Those not on it are called
/users4/
...
/users9/

Don't think they're system dirs,
looks like them being removed could be possible...

/etc/lvmtab is not humanly readable
Yazgoo
Nagashankarp
Frequent Advisor

Re: Dual Boot && Multiple File Systems

you have to use "strings /etc/lvmtab" to read the contents of lvmtab.
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Okay, here's what I got

# strings /etc/lvmtab

/dev/vg00
/dev/dsk/c1t15d0
/dev/dsk/c3t15d0
/dev/vg01
/dev/dsk/c5t8d0
/dev/dsk/c5t10d0
/dev/vg02
/dev/dsk/c5t12d0
/dev/dsk/c5t14d0
Yazgoo
Nagashankarp
Frequent Advisor

Re: Dual Boot && Multiple File Systems

this shows you have two disks configured for your volume group vg00, check if it mirrored ( lvdisplay -v /dev/vg00/lvol1 or 2 or 3 )

which disk are you trying to install 11.23 on ?
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Thanks
_____________________________________________
# lvdisplay -v /dev/vg00/lvol1
_____________________________________________
Mirror copies 1

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t15d0 19 19
/dev/dsk/c3t15d0 19 19
_____________________________________________
That means lvol1 is mirored on c1t15d0 and c3t15d0.
So I can't use c3t15d0 ?

The one I wanted to use was :
/0/4/0/1.10.0 or /0/4/0/1.12.0
IE
/dev/dsk/c5t10d0 || /dev/dsk/c5t12d0
_____________________________________________
So it seems possibles since it's not a mirror of an important disc, that's what you meant?
Yazgoo
Nagashankarp
Frequent Advisor

Re: Dual Boot && Multiple File Systems

/dev/dsk/c5t10d0 || /dev/dsk/c5t12d0
already belong to vg01 and vg02 respectively

check whether they are mirrored as well and if they are mirrored, try and reducevg to free the disks and then you can perform the installation provided you dont want mirroring on vg01 or vg02
Nagashankarp
Frequent Advisor

Re: Dual Boot && Multiple File Systems

also use "bdf " to see which are the filesystem monted from vg01 and vg02 so that you can decided whether or not they need mirroring in case they have.
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

I might do what you said.
Piece of info : reducevg is for AIX, HPUX that's ... vgreduce

Thanks
Yazgoo
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Let me explain what I understood :
I have

0/4/0/1.10.0 [mirrored on vg01] 0/4/0/1.8.0


If I want to keep the data on those disk but think I don't need mirroring, what I have to do is is unmirror vg01.
Lets say the one I'll keep is the 1.10.0 :

I would do :
# vgreduce vg01 0/4/0/1.8.0

Is that right?

Once I've done that, to install my new version, what must I do?
Booting on my install DVD, I'll be prompted for the root DVD?
Once I'm done, how will I choose on which disk to boot?

Thanks
Yazgoo
David Dilly
Regular Advisor

Re: Dual Boot && Multiple File Systems

yazgoo


Before you must break the mirror for all the logical volume on vg01:
lvreduce -m 0 /dev/vg01/lvolxx /dev/dsk/c5t10d0, one by one.....

After, when you disk is free : you can do a pvdisplay /dev/dsk/c5t10d0 and check the Total PE = Free PE
When is good, you do : vgreduce vg01 /dev/dsk/c5t10d0.
The /dev/dsk/c5t10d0 is now free
And after you can install hp-ux on the /dev/dsk/c5t10d0 (0/4/0/1.10.0).

Youc can check before begin your install: strings /etc/lvmtab , the disk /dev/dsk/c5t10d0 does not exist in the file.

Bye
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Thanks David.
Hopefully, I have readen man vgreduce, so I saw I had to reduce lvs first.
I must say that SAM makes thinkgs quite easier, (althougth you can't choose which disk you want to end mirroring).
But it did remove every copy on the same disk so everything is allright.
Now I'm ready to install.
Yazgoo
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

Trying to install, my OE, I a messgae saying something like :

"there is a filesystem on this disk. Are you sure you want to ..."

Hell, I don't know why I got that message.
Sam keeps telling me this Device is unused, and that there is only 1 Physical volume for vg01 (the one that used to be mirrored)
I don't see the dsk in /etc/lvmtab.

So why would there still be a logical volume?
Is it safe to install althougth I am prompted that?

Thanks
Yazgoo
yazgoo
Frequent Advisor

Re: Dual Boot && Multiple File Systems

No problem with that, I think last file system wasn't physically removed of the disk.
I was able to make this dual boot.
If that can help someone, here's the script I've made based on one I've seen in the forums for dualbooting (Atached).
Yazgoo