- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to make a boot disk using whole disk partition
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
03-29-2006 06:31 PM
03-29-2006 06:31 PM
How to make a boot disk using whole disk partition
Is there a way I can configure a whole disk partition without through SAM on a PA-RISC sercver? Especiallly a boot disk? I want to make a boot disk as the secondary boot disk by using whole disk partition. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2006 07:12 PM
03-29-2006 07:12 PM
Re: How to make a boot disk using whole disk partition
SAM can do it via normal menuing.
You look at the disk section, select the disk and assuming there is nothing on the disk now, you should see an option to use the disk and the next question will be whether or not to use LVM.
In this case you would not use LVM.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 05:44 AM
03-30-2006 05:44 AM
Re: How to make a boot disk using whole disk partition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 06:07 AM
03-30-2006 06:07 AM
Re: How to make a boot disk using whole disk partition
It looks like this in LVM mode.
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0
# real disk. repeat for other lvols
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
Changes for whole disk(subject to experimentation).
pvcreate -B /dev/rdsk/c1t0d0 #use real disk
mkboot -l /dev/rdsk/c1t0d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
If you are running 64-bit OS:
# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?
# real disk. repeat for other lvols
# These steps require modification. With no LVM I'll admit i don't know how to handle swap and dump. Perhaps leave them in the lvm structure. maybe you don't need these steps.
lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot
setboot -a 52.1.0 # second disk
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 01:21 PM
03-30-2006 01:21 PM
Re: How to make a boot disk using whole disk partition
My HP 9000 server originally has two disks: c1t15d0 and c3t15d0, and c1t15d0 is the boot disk. Both disk are configured through LVM. I just plug in a JBOD which has 4 disks to this server.
# ls /dev/dsk
c0t0d0 c0t4d0 c0t2d0 c0t1d0 c1t15d0 c3t15d0
Now I follow what you suggested in your previous email to make c0t1d0 as my second boot disk.
#
# pvcreate -B /dev/rdsk/c0t1d0
Creating "/etc/lvmtab".
Physical volume "/dev/rdsk/c0t1d0" has been successfully created.
#
# mkboot -l /dev/rdsk/c0t1d0
#
#
# glif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c0t1d0 <
#
======================================
Now I tried to create a hfs filesystem on it, so I can mount it. I failed with the following errors.
#
#
# newfs -F hfs /dev/rdsk/c0t1d0
mkfs (hfs): /dev/rdsk/c0t1d0 is a logical volume device.
#
# mount /dev/dsk/c0t1d0 /tmp/boot1
/dev/dsk/c0t1d0: unrecognized file system
#
Any idea? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2006 09:37 PM
03-30-2006 09:37 PM
Re: How to make a boot disk using whole disk partition
Don't use pvcreate if u want to use whole disk
approach. pvcreate will prepare a disk to be used in LVM conf.
Just try this (not tested)
1] make essential file systems on disk c0t1d0
(i.e. /stand, /) configure swap/dump.
2] make the disk bootable (copy boot programs on disk)
mkboot -W /dev/dsk/c0t1d0
Regards
-Santosh