1833337 Members
2671 Online
110051 Solutions
New Discussion

Creating Partitions

 
Roger Lavender
Frequent Advisor

Creating Partitions

I have received a new rp7420 which contains a single partition (0) (genesis probably) with the following:

parstatus -AC results - none unassigned

parstatus -p0 results:

Num=0
Status=Active
#cells=2
#I/O chassis=2
Core cell=cab0,cell1, partition 0

cab0,cell0 active base 2cpu 6GB mem
cab0,cell1 active core 2cpu 6GB mem = Par 0

"IF" I understand the guidance correctly, to create two (2) partitions I should:

# parmodify -p0 -d0 -B
# shutdown -R

then:

# parstatus -AC for info
# parcreate -c1:base:y:ri
# parmodify -p1 -P "Partition 1"
# parmodify -p1 -r0/0
# parmodify -p1 -b 1/0/1/1/0/1/1.6.0
# parstatus -V -p1
# shutdown -r

At this point I should have:

cab0,cell0 active base 2cpu 6GB mem = Par 1
cab0,cell1 active core 2cpu 6GB mem = Par 0

I should see both partitions from MP>CO. Am I anywhere close??? Need confirmation.

Roger

5 REPLIES 5
melvyn burnard
Honored Contributor

Re: Creating Partitions

# parmodify -p0 -d0 -B
This will delete cell 0 from the partition
leaving cell 1 in the partition

# parcreate -c1:base:y:ri
This will try to use cell 1 for the new parttion, change it to use cell 0.

# parmodify -p1 -P "Partition 1"
# parmodify -p1 -r0/0
# parmodify -p1 -b 1/0/1/1/0/1/1.6.0

why not have all of this on your parcreate command line?
parcreate -P "partition 1" -c :base:y:ri \
-r 0/0 -b 1/0/1/1/0/1/1.6.0

making sure that you are using the correct hardware paths. I think you may find that the boot device will actually be 0/0/1/1/0/1/1.6.0


# shutdown -r
You should not need to shutdown the running partion that you are issuing these commands on, just go in via the MP and bo the relevant partition, or add the -B option to the parcreate command.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: Creating Partitions

Seems close - are you following steps from:

"HP System Partitions Guide"

http://docs.hp.com/hpux/onlinedocs/5990-8170/5990-8170.html


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Roger Lavender
Frequent Advisor

Re: Creating Partitions

Geoff - Yes

burnard -

Bear with me. So, from the active partition:

# parmodify -p0 -d0 -B (remove cell 0)
# parcreate -p1 "Partition 1" -c0:base:y:ri -r0/0 -b 0/0/1/1/0/1/1.6.0
# shutdown -r

The reason I felt I need the "parstatus -AC" was to confirm the boot path - as you noted - prior to actually using it.

Will the existing OS in Partition 0 survive - i.e. be bootable after this?

Roger
Roger Lavender
Frequent Advisor

Re: Creating Partitions

Correction:

# parcreate -P "Partition 1" -c0:base:y:ri -r0/0 -b 0/0/1/1/0/1/1.6.0

Roger
melvyn burnard
Honored Contributor

Re: Creating Partitions

# parmodify -p0 -d0 -B (remove cell 0)
fine
but you will need to do a shutdown -R to initiate a reconfiguration of the partioin to see that cell 0 has been removed

# shutdown -R 0

The partition should reboot, but watch it via the vfp, to check whether it comes up into BIB mode, in which case issue the BO command from the MP Command Menu

# parcreate -p1 "Partition 1" -c0:base:y:ri -r0/0 -b 0/0/1/1/0/1/1.6.0
# shutdown -r <<<<< Not necessary as this will reboot the current partition, and yoyu do not have to do this


You then need to go back to the MP, check the new partion is there, and possibly boot this if you have not added the -B option to the parcreate command


The other way is to use the parmgr GUI, in /opt/parmgr/bin

This provides a nice graphical environment to allow you to do this

My house is the bank's, my money the wife's, But my opinions belong to me, not HP!