1752276 Members
5132 Online
108786 Solutions
New Discussion юеВ

how to add disk

 
SOLVED
Go to solution
s.raju
Advisor

how to add disk

some one pls provide me steps to add 2 new disk in LVM create new vg create new lvol and if anyone can help with creating slice it will help me a lot.

pls need steps not pdf docs


Thanks in advance


cheers
5 REPLIES 5
Torsten.
Acclaimed Contributor
Solution

Re: how to add disk

You don't need some single steps only, specially in a larger environment on a system with a large number of disks you need to do some planning first. That's why I would like to post this link:

http://docs.hp.com/en/B2355-90950/ch06.html

Chapter 6 Administering a System: Managing Disks and Files

with many useful information, examples, steps, ...

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Steven E. Protter
Exalted Contributor

Re: how to add disk

Shalom,

The help and commands you can cut and paste are in those docs.

ioscan -fnC disk
# after installation to get you the new disk devices

pvcreate

vgextend

lvcreate or levextend to create a new lvm or extend and existing one onto your shiney new disks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yashwant
Valued Contributor

Re: how to add disk

Search for attached disk : ioscan -fnC disk
Initialize a disk for use with LVM
pvcreate /dev/rdsk/c0t1d0
Create the device structure needed for a new volume group :
cd /dev
mkdir vgdata
cd vgdata
mknod group c 64 0x010000

Create volume group vgdata :
vgcreate vgdata /dev/dsk/c0t1d0
Display volume group vgdata :
vgdisplay -v vg01
Add another disk to volume group :
pvcreate /dev/rdsk/c0t4d0
vgextend vg01 /dev/dsk/c0t4d0
Create a 100 MB logical volume lvdata :
lvcreate -L 100 -n lvdata vgdata
newfs -F vxfs /dev/vgdata/rlvdata
Extend logical volume to 200 MB :
lvextend -L 200 /dev/vgdata/lvdata




s.raju
Advisor

Re: how to add disk

Thanks for quick response the link which is given is very good it is better than pdf which i have when disk gone bad.

and ofcouse the handy steps given is very good and helpful.


once again thanks guys for your quick response.
s.raju
Advisor

Re: how to add disk

Example: Creating a Logical Volume Using HP-UX Commands
To create a logical volume, do the following procedure:

Select one or more disks. ioscan(1M) shows the disks attached to the system and their device file names.

Initialize each disk as an LVM disk by using the pvcreate command. For example, enter:

pvcreate /dev/rdsk/c0t0d0

Note that using pvcreate will result in the loss of any existing data currently on the physical volume.

You use the character device file for the disk.

This example shows the device file name for an HP 9000 (PA-RISC) System; on an HP Integrity Server, make sure that the device file specifies the HP-UX partition number. For example, enter:

pvcreate /dev/rdsk/c3t1d0s2

Once a disk is initialized, it is called a physical volume.

Pool the physical volumes into a volume group. To complete this step:

Create a directory for the volume group. For example:

mkdir /dev/vgnn

Create a device file named group in the above directory with the mknod command.

mknod /dev/vgnn/group c 64 0xNN0000The c following the device file name specifies that group is a character device file.

The 64 is the major number for the group device file; it will always be 64.

The 0xNN0000 is the minor number for the group file in hexadecimal. Note that each particular NN must be a unique number across all volume groups.

For more information on mknod, see mknod(1M); for more information on major numbers and minor numbers, see Configuring HP-UX for Peripherals.

Create the volume group specifying each physical volume to be included using vgcreate. For example:

vgcreate /dev/vgnn /dev/dsk/c0t0d0

Use the block device file to include each disk in your volume group. You can assign all the physical volumes to the volume group with one command. No physical volume can already be part of an existing volume group.

Once you have created a volume group, you can now create a logical volume using lvcreate. For example:

lvcreate /dev/vgnn

Using the above command creates the logical volume /dev/vgnn/lvoln with LVM automatically assigning the n in lvoln.

When LVM creates the logical volume, it creates the block and character device files and places them in the directory /dev/vgnn.