Operating System - HP-UX
1834071 Members
2761 Online
110063 Solutions
New Discussion

Installing new harddisk on hpux 10.20B

 
Misbakhul Munir
Occasional Advisor

Installing new harddisk on hpux 10.20B

Hallo there,
how can i install & configure until it can be used properly, new harddisk which have no data ( new harddisk) in my hp-ux 10.20 ( g.30 series). also how i can install new harddisk which have fat16 filesystem in my machine.
( in step by step guide please )

thanks
Beginner
7 REPLIES 7
eran maor
Honored Contributor

Re: Installing new harddisk on hpux 10.20B

Hi

if you install a new harddisk on your system the hp-ux 10.20 will discover it .

after you putting the disk you will see it with ioscan -fnCdisk .

there isnt any special guide but be sure that you know how to add it .

you ask about a fat16 filesystem , i think that you are talking about a windows file system .

if you will put in on an hp-ux system the system will be lost because hp doesnt know this type of filesystem .

if you add a new disk you can config it with
pvcreate -f device file

if you want a new vg
mkdir /dev/vg01
mknod /dev/vg01/group c 64 0x010000
vgcreate vg01 device file of the disk (dsk device file )

lvcreate -L size ( to create a new logical volume )

mkdir /filesystem mount point
newfs -F vxfs /dev/vg01/rfilesystem mount point

and add it to the fstab .

if you want to add it to a volume group that exist just use the command vgextend

if you have more que. please ask
love computers
John Bolene
Honored Contributor

Re: Installing new harddisk on hpux 10.20B

Easiest way (sorry, I gotta do it), is to use SAM.

SAM is your best buddy.

Assuming you already have logical volumes setup.

SAM -> disk and file systems -> disk devices
click on disk to use -> actions-> add -> using Logical volume manager (add to whatever volume group, then extend volumes or add more.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Misbakhul Munir
Occasional Advisor

Re: Installing new harddisk on hpux 10.20B

ok it seem i can install my disk...:) ( my seagate 9 gb).
if i want to add another disk but, have filesystem ( imagine, i take it disk to another machine), how can i install it ( with existing filesystem and data)?

Beginner
Darrell Allen
Honored Contributor

Re: Installing new harddisk on hpux 10.20B

Hi,

You can move a filesystem from one system to another but moving the disk(s) it's on but you can move a Volume Group (and it's logical volumes and filesystems) from one system to another like this:

On system A:
umount all filesystems in the VG (let's assume vg01)
vgchange -a n vg01
vgexport vg01

remove the disks for vg01 from system A and connect them to system B

on system B:
(assume we want the disks to be in vg05)
use ioscan -fnC disk to identify the new disks
mkdir /dev/vg05
mknod /dev/vg05/group c 64 0x050000 (minor number must be unique for all VG group files - use ll /dev/vg*/group to verify you are using a unique minor number)
vgimport vg05 /dev/dsk/c... (list all the disks in the VG)

If you want the same logical volume names on system B that you had on system A, use the mapfile option of vgexport and vgimport (see the man pages). Copy the mapfile you create with vgexport on system A to system B and use it with vgimport.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
T. M. Louah
Esteemed Contributor

Re: Installing new harddisk on hpux 10.20B

Hi Munir,

Just to add to the above msg, in later HP-UX versions, Disks are members of volume groups (VG). Disks of same VG have same VGID.
..# vgexport -m /dev/vgXX
your map_name will be located in /etc/map_name.map.

..# echo 0x2010?2X | adb /dev/dsk/cXtXdX | expand | tr -d " " | sed "s/2010:/VGID /"
PLEASE NOTE! The line must be typed exactly as it appears; substitute the proper device file for /dev/dsk/cXtXdX.
The output will be similar to:
VGID 1123345656DC7788
to add a disk to an existing VG you have to do:
..# vi /etc/map_name.map
Note: Insert the output, exactly as it appears, as the first line of the file.

.. remember to run vgcfgbackup /dev/vgXX to update LVM volume group configuration backup file.
G'd luck
t++
Little learning is dangerous!
Bill Hassell
Honored Contributor

Re: Installing new harddisk on hpux 10.20B

I think Misbakhul meant that he wanted to move a PC disk (ie, fat16) onto HP-UX. There are several problems: HP-UX does not have an interface for IDE disks. If the interface is SCSI, HP-UX cannot mount or use a PC filesystem.

Now there is a possibility that the dosls and doscp commands might work (if you have a SCSI disk) but they will be very cumbersome to use. The dosls/doscp commands were designed for floppies. Note also that the PC files will be in PC format, that is, all ASCII files will be texttext format while PC ASCII files will be texttext and need to be translated with dos2ux.

You might be better off ftp or setting up SAMBA on your HP-UX system, then using the PC disk in a PC, share a disk from the HP-UX system and copy needed files to HP-UX.


Bill Hassell, sysadmin
Darrell Allen
Honored Contributor

Re: Installing new harddisk on hpux 10.20B

I made a typo in my opening paragraph above which should read:

"You CAN NOT move a filesystem from one system to another BY moving the disk(s) it's on but you can move a Volume Group (and it's logical volumes and filesystems) from one system to another like this:"
.
.
.

I assumed from your followup post that you were referring to moving a disk from one HPUX system to another HPUX system. If indeed you are trying to take a DOS/Windows disk to an HPUX system then I believe you are out of luck. SAMBA or an NFS solution would be appropriate.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)