1834022 Members
2312 Online
110063 Solutions
New Discussion

step by step vgextend

 
GTFSpanneer
Frequent Advisor

step by step vgextend

Hi All,

i need to extend the vg00 .kindly provide the steps.

:>ioscan -funC disk
Class I H/W Path Driver S/W State H/W Type Description
==============================================================================
disk 0 0/2/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c0t0d0 /dev/dsk/c0t0d0s2 /dev/rdsk/c0t0d0 /dev/rdsk/c0t0d0s2
/dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s3 /dev/rdsk/c0t0d0s1 /dev/rdsk/c0t0d0s3
disk 1 0/2/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG146BB976
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0 ( free disk )
:bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 302520 740248 29% /
/dev/vg00/lvol1 377776 198736 141256 58% /stand
/dev/vg00/lvol8 20447232 5719536 14612776 28% /var
/dev/vg00/lvol7 8388608 2718624 5625728 33% /usr
/dev/vg00/lvol10 52428800 26378608 25846728 51% /u02
/dev/vg00/lvol9 26214400 22015921 3936118 85% /u01
/dev/vg00/lvol6 2097152 107872 1973808 5% /tmp
/dev/vg00/lvol5 8617984 5158016 3433056 60% /opt
/dev/vg00/lvol4 1048576 94048 947080 9% /home

thansk in advance
panneer
3 REPLIES 3
Kranti Mahmud
Honored Contributor

Re: step by step vgextend

Hi Panner,

Check the below link:

http://www.gentoo.org/doc/en/lvm2.xml

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!
Matti_Kurkela
Honored Contributor

Re: step by step vgextend

"ioscan" and "bdf" are HP-UX commands. You should be asking this in the HP-UX section of the forums, not in the Linux section. I'll ask the moderators to move this thread to the proper section.

-------

In general, if /dev/dsk/c0t0d0 and /dev/dsk/c0t1d0 are internal disks, you should be using c0t1d0 to mirror your system disk, not using it as data disk.

When (not if!) your disk fails, if you have a mirrored system disk, you can simply hot-swap it, and re-establish the mirror while the system keeps running.

If you don't have your system disk mirrored, your system may crash hard when it fails, and will stay down until you have replaced the disk and restored the system from backup (typically, first an Ignite restore to get the OS to run, then a regular data restore on top of that to get the latest-backed-up state of your application data).

If you are trying to extend vg00 in order to set up mirroring, please Google for the exact phrase "When Good Disks Go Bad". It's the title of a document written by HP that includes very clear step-by-step procedures for mirroring the system disk, both for Itanium and PA-RISC systems. When you're mirroring a system disk, it's important to use the correct procedure so ensure the new mirror will be bootable.

MK
MK
vishnu.khandare
Respected Contributor

Re: step by step vgextend

Hi Panneer,

from ur ioscan output u hav given free disk.
from bdf its seems ur system running with default vg that it vg00.

1)Where u want to add the disk in vg00?
2)Or u want to mirror it?

Answer 1)
#vgextend /dev/vg00 /dev/dsk/c0t1d0

Answer 2)
U need to follow mirroring steps, depend upto system PA or Itanium.


Hope this solves ur query
Dont forget to assign points


Regards
Vishnu Khandare
You should deserve before U desire!!!!