feedburner

Lorem ipsum dolor sit amet,
consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore
et dolore magna aliqua.

How to add hard disk in HP UX

1. login in as root. 2. #ioscan -fnC disk ( find the disk device file which u requires to configure it). 3. if u want to add it in the exsting VG follow the steps. 3.a. pvcreate -f /dev/rdsk/cxtxdx ( please replace the proper numbers in place of x which u got from ioscan). 3.b. vgextend /dev/vgname /dev/dsk/cxtxdx ( this extends the exsiting VG on the hard disk). ( but before doing it check the MAX PE per PV value and PE Size of the exsiting VG u want to increase using vgdisplay. (#vgdisplay /dev/vgxx) Multiply both the values Max PE per PV * PE size eg:- 2500 * 4 (default is 4) = 10 GB , so the maximum size of the hard disk i.e PV will be of 10 GB calculate and find it out whether ur VG supports 36 GB if it supports u can extend the VG otherwise u have to create the new VG) 3.c. vgdisplay -v /dev/vgname ( displays number of lvs , pvs in that vg). 3.d lvcreate -L 1000 /dev/vgname (creates filesystem of 1 GB ) 4. to create new VG. 4.a. mkdir /dev/vg01 4.b. mknod /dev/vg01/group c 64 0x010000 ( please note :- 0x010000 is the minor number please check the previous vg minor number and make change in place of 1 ). 4.c. vgcreate /dev/vg01 /dev/dsk/cxtxdx ( new vg is created). 4.d. vgdisplay -v /dev/vg01 4.e. lvcreate -L 1000 /dev/vg01 ( creates the new file system). 5. newfs -F vxfs -o largefiles /dev/vg01/rlvol1 ( options is according to the requirements). 6. make the apporpriate entry in /etc/fstab. 7. create the mount point. 8. mount -a ( mounts the file system). rgds radhakrishnan ========================== Jeff Cleverley wrote: ========================= Quy, My assumption is that the second disk will be a new file system and not a mirror of the root disk. SAM is an easy way to do this if you're not familiar with the manual method. Below are manual steps if you want them. 1. Shut down the system (shutdown -hy 0) and power it off. 2. Add the disk to the internal carrier. Make sure the disk is jumpered to an id other than 6. Ignore this if you are adding it to a pci card externally. 3. Power the system on. Interupt the boot and do a "sea" to search for disks. Make sure it sees the disk and that it is the address you think it is. The system will find the disk during boot and create device files for it in /dev/rdsk and /dev/dsk. Run the following commands from the command line. The assumption of a c0t5d0 disk is made. Change it if it is a different address. 4. pvcreate /dev/rdsk/c0t5d0 (or new device address). 5. mkdir /dev/vg01 6. mknod /dev/vg01/group c 64 0x010000 7. vgcreate /dev/vg01 /dev/dsk/c0t5d0 You are now ready to create a logical volume(s). 8. Do a "vgdisplay /dev/vg01" and look for "Total PE". This is how many xtents you can allocate. 9. lvcreate -l

0 comments:

Post a Comment