Operating System - HP-UX
1753770 Members
4967 Online
108799 Solutions
New Discussion

Re: 36GB *10 disk (Lv 60GB mirror needed)

 
Akif_1
Super Advisor

Re: 36GB *10 disk (Lv 60GB mirror needed)

Hi,

check below link , I hope it is more clear in single command creating PVG as well........


http://www.knowledgeroot.com/hp-ux/lvm/creating-volume-group-and-logical-volume-with-distributed-and-pvg-strict-hpux-1123-and-below/
T(ogether) E(very one) A(chive) M(ore)
Akif_1
Super Advisor

Re: 36GB *10 disk (Lv 60GB mirror needed)

Problem solve with below successful action plan:

Step1:pvcreate (total no of disk i.e 36 *10)
plan for pvg=name (ex pvg4 pvg4M )for mirroring)

Each pvg4 and pvg4M consist of 5/5 disk in this scenario.

Step2:umask 137
# mkdir /dev/vg03
# ls -ld /dev/vg*/group | sort -k6,6
# mknod /dev/vg03/group c 64 0x0?0000 (ex:0x0xa000)

Step3:vgcreate -p 128 -e 30000 -s 32 -g pvg4 /dev/vg03 /dev/dsk/c4t2d0

Then use (vgextend) to add additional 4 disk into pvg4.........

Step4:#vgextend /dev/vg03 /dev/dsk/c2t0d0 disk3 disk4 disk5

Now remaining 5disk will be added to new (pvg4M) which will be used for mirroring.

Step5: vgextend -g pvg4M /dev/vg03 /dev/dsk/c5t10d0 disk2 disk3 disk4 disk5

Now check the disk status:

#strings /etc/lvmpvg
#strings /etc/lvmtab

Now create your required LV's:

Step6: For standard applications and data (low IO) use the defailt 1024. If the filesystem is to be used for Oracle databases, Archives and database logs (high IO), set the block size to 8192.

# lvcreate -D y -s g -n lvol1 -r N /dev/vg03

# lvextend -L 32 /dev/vg03/lvol1 pvg4 pvg4M

# lvextend -m 1 /dev/vg03/lvol1 pvg4 pvg4M
# lvextend -L 76800 /dev/vg03/lvol1
# newfs -F vxfs -b 8192 -o largefiles /dev/vg03/rlvol1

# vi /etc/fstab
/dev/vg04/lvol1 /data/apps vxfs rw,suid,largefiles,mincache=direct,convosync=direct,delaylog,nodatainlog 0 2


# mount -a


All the best to every1



T(ogether) E(very one) A(chive) M(ore)