System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Extend vg00 and mirror disk (11.23)

 
Jesus Fdez.
Valued Contributor

Extend vg00 and mirror disk (11.23)

hello

I have a rx3600 server with hpux 11.23.

I have a vg00 with two mirrored disks that I want to expand.

discs are 72GB and I have two 72GB disks for enlargement.

How I can join the new disks in the mirror and extend the vg00?

Thanks,
Jesus
5 REPLIES
Torsten.
Acclaimed Contributor

Re: Extend vg00 and mirror disk (11.23)

Why you need so much space in vg00?

For data and applicatins you should create a new VG.

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!   
Raj Briden
Frequent Advisor

Re: Extend vg00 and mirror disk (11.23)

Also please note that the mount points you are going to to create on VG00 will reduce the system performance as root disk will utilized more by applicatio
Anoop Sivan
Frequent Advisor

Re: Extend vg00 and mirror disk (11.23)

Hi Jesus,

Data should be kept in other than root vg is the best practice. But you can add new discs in to vg00.

# pvcreate /dev/rdsk/c2t1d0
Physical volume "/dev/rdsk/c2t1d0" has been successfully created.
[rx26-185]/
# vgextend /dev/vg00 /dev/dsk/c2t1d0
Volume group "/dev/vg00" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf

# lvcreate -n test /dev/vg00
Logical volume "/dev/vg00/test" has been successfully created with
character device "/dev/vg00/rtest".
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf


# lvextend -L 1000M /dev/vg00/test /dev/dsk/c2t1d0
Warning: rounding up logical volume size to extent boundary at size "1024" MB.
Logical volume "/dev/vg00/test" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
[rx26-185]/
# newfs -F vxfs /dev/vg00/rtest
version 6 layout
1048576 sectors, 1048576 blocks of size 1024, log size 16384 blocks
largefiles supported
[rx26-185]/
# mkdir /test
[rx26-185]/
# mount /dev/vg00/test /test
[rx26-185]/
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 314584 728264 30% /
/dev/vg00/lvol1 2064384 316456 1734368 15% /stand
/dev/vg00/lvol8 8388608 717968 7610864 9% /var
/dev/vg00/lvol7 8388608 3037448 5309400 36% /usr
/dev/vg00/lvol4 524288 21688 498808 4% /tmp
/dev/vg00/lvol6 8388608 4459608 3898336 53% /opt
/dev/vg00/lvol5 131072 5792 124312 4% /home
DevFS 3 3 0 100% /dev/deviceFileSystem
/dev/vg00/test 1048576 17338 966793 2% /test
SoorajCleris
Honored Contributor

Re: Extend vg00 and mirror disk (11.23)

Hi Jesus,

Please analyse why you need a vg00 which spanned in multiple disks.

1. This increase the failure of vg00/ hence boot failure, as the number of disks increases , probability of failure increses.

2. This makes the administration more complicated.

3. Analyse which filesystem is using more space, assign mount points to the large directories which doent need for booting.

=================================
To extend the VG

1. pvcreate raw disk file
2. vgextend vg00 blockfile1 blockfile2
3. lvcreate/lvextend as required.
4. create/extend the filesystem (fsadm,newfs,extendfs)
6. mirror the LV

==> if the disks are in different controller, consider LVM PVG while creating the mirror.

Regards,
Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Jayakrishnan G Naik
Trusted Contributor

Re: Extend vg00 and mirror disk (11.23)

Hi Jesus

I hope you trying for spanned volumes. In similar scenario I may try another trick

I will go for 2 146 G disks and will mirror
it from existing mirror to a 2 disk mirror
and and reduce one of the 72 G pv and then the add the next 146 disk and mirror and at last remove the 72GB disk left.

I may plan down time for doing this and complete this task.

I don't recommend to use spanned volumes for root vg as the chances of failures are more. Still I have seen them in few servers.

Thanks & Regards
Jayakrishnan G Naik