1834279 Members
1899 Online
110066 Solutions
New Discussion

Re: Adding new HD

 

Adding new HD

I need to add a HD to my N-Class server. This server alrady have 2 17GB HD and a 8 GB HD, and I have only one Volume group " vg00". No I need the all new HD to use for a new application we are planing to install + Oracel on this HD. How can I do this, can I create another volum group with this HD through Sam and use it. I naver did this so I need some help.
no personal quote
8 REPLIES 8
Pete Randall
Outstanding Contributor

Re: Adding new HD

Yes, you can use SAM. Go into Disks and Filesystems, then Volume Groups, then under Actions, select Create, you'll be presented with a list of unused drives. Select your new HD, fill in the blanks, and your VG is created. You will now need to create a logical volume on it. The process is similar using SAM.


Pete

Pete
S.K. Chan
Honored Contributor

Re: Adding new HD

Yes, create a new VG for this purpose. An example of configuring a new VG (/dev/vg01).
# ioscan -fnC disk
==> Take note of the unused disk device path that you want to use in vg01. Assume it's c1t1d0.
# pvcreate /dev/rdsk/c1t1d0
# mkdir /dev/vg01
# mknod /dev/vg01/group c 64 0x010000
==> Minor number 0x010000 must be unique. If the only VG you have is vg00 in /dev, then the above should be unique.
# vgcreate /dev/vg01 /dev/dsk/c1t1d0
# vgdisplay -v vg01
==> Now vg01 has been created. Next step is to create your logical volume and filesystem. Say you want a 4GB vxfs filesystem mounted on /opt/oracle.

# lvcreate -L 4000 -n lvol1 /dev/vg01
==> Create a 4GB LV (lvol1).
# newfs -F vxfs /dev/vg01/rlvol1
==> Create the FS.
# mkdir /opt/oracle
# mount /dev/vg01/lvol1 /opt/oracle

The last step would be to edit your /etc/fstab file so that it gets mounted everytime the system reboots.
All the above can be easily done in SAM but getting use to command line method will help in the long run. For instruction in SAM see ..
http://www.docs.hp.com/hpux/onlinedocs/B2355-90742/B2355-90742.html
The section is "Adminstering A System: Managing DIsks and Files", click on "Managing Disks" -> "Managing Logical Volumes using SAM".
Steven E. Protter
Exalted Contributor

Re: Adding new HD

Once you get a drive certified for your system, you can create a new volume group with vgcreate

Then you can use vgextend to add the disk to that group, then you are good to go.

Sam will ask you all the questions you need to do.

Do this:

Add the disk.

ioscan -fn disk and/or reboot the system

run ioscan and make sure the new disk is there.

sam

disk & filesystmes

volumne groups

actions add volume group.

That will create the volume group.

Same basic path to extend.

You should however be able to do this at the command line.

Its not so hard.

If you post the /dev/dsk/c#t#d# number me or someone else can give hyou the commands.

Bill Hassell was once quoted as saying that real sysadmins don't use gui's. While not a strict adherent to this philosophy for lvm management its important to know the commands in case you ever have to do emergency maintenance without the benefit of sam.


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
Geoff Wild
Honored Contributor

Re: Adding new HD

sure you can....

Start sam

Disks and File Systems

Volume Groups

Actions -> Create

Complete the required steps. Then, press [ OK ] to perform the task.
[ Select New Volume Group Name... ] (required)
[ Select Disk(s)... ] (required)
[ Modify Default Volume-Group Options... ] (optional)
[ Configure Disk(s)... ] (optional)
[ Define New Logical Volume(s)... ] (optional)


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.
Tim Sanko
Trusted Contributor

Re: Adding new HD

I thought Bill said that anybody could be an Admin as long as they could patch the kernel with the debugger, awk and sed!!!

;-)

Tim
Helen French
Honored Contributor

Re: Adding new HD

You can do these tasks from SAM, disk and file system session. Select the disk and create new VGs and LVs, then create file system on it.

But I would suggest you to do some more planning when setup file systems (since you said you have only one VG defined on the system now). It's a good practice to have only root LVs defined on vg00. All other disks can be kept on seperate VGs depends up on your requirement. In future, you can define systems with only root and mirror disks in vg00 and keep all other disks on VGs other than vg00. It will be good to take backups, recovery tapes, file system management and even during a system recovery process. Just thought of adding this ...
Life is a promise, fulfill it!

Re: Adding new HD

Could you please explain what do you means by this please.

***********************************************

Tim Sanko May 13, 2003 19:18 PM GMT [ 0 pts ]
I thought Bill said that anybody could be an Admin as long as they could patch the kernel with the debugger, awk and sed!!! ;-) Tim

Thank you,
no personal quote
Tim Sanko
Trusted Contributor

Re: Adding new HD

The kernel parameters are maintained in the /stand/system file.

You could use grep to find a parameter, and awk to modify a tunable, and sed to add a line to the file to add a new tunable.

It was an old timer joke. only an old admin would even try to blame it on another (really old) admin.

Tim