1833247 Members
3083 Online
110051 Solutions
New Discussion

adding a new disk

 
Ferdinand_5
Advisor

adding a new disk

I'll have to add a new disk to a machine.

It is set up funny with lots of VG's
Here's my ioscan -fnCdisk:
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 8/0.5.0 sdisk CLAIMED DEVICE SEAGATE ST39175LC
/dev/dsk/c0t5d0 /dev/rdsk/c0t5d0
disk 1 8/0.8.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 4 8/4.3.0 sdisk CLAIMED DEVICE SEAGATE ST15150W
/dev/dsk/c1t3d0 /dev/rdsk/c1t3d0
disk 5 8/4.4.0 sdisk CLAIMED DEVICE SEAGATE ST39173WC
/dev/dsk/c1t4d0 /dev/rdsk/c1t4d0
disk 6 8/4.5.0 sdisk CLAIMED DEVICE SEAGATE ST34573WC
/dev/dsk/c1t5d0 /dev/rdsk/c1t5d0
disk 7 8/4.8.0 sdisk CLAIMED DEVICE SEAGATE ST15150W
/dev/dsk/c1t8d0 /dev/rdsk/c1t8d0
disk 9 8/4.10.0 sdisk CLAIMED DEVICE DEC RZ1CB-CA (C) DE
C
/dev/dsk/c1t10d0 /dev/rdsk/c1t10d0
disk 2 8/16/5.2.0 sdisk CLAIMED DEVICE PIONEER DVD-ROM DVD-303
/dev/cdrom /dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 11 8/16/5.4.0 sdisk CLAIMED DEVICE IBM DNES-309170
/dev/dsk/c2t4d0 /dev/rdsk/c2t4d0
disk 10 8/16/5.6.0 sdisk CLAIMED DEVICE QUANTUM ATLAS10K3_18_WL
S
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0

my vgdisplay:


(dibbly)/ # vgdisplay
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 2169
Alloc PE 2169
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vg04
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1024
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 1022
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vg06
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1024
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 1023
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vg07
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2171
VGDA 2
PE Size (Mbytes) 4
Total PE 2170
Alloc PE 2170
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg08".
VG Name /dev/vg09
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 1023
VGDA 2
PE Size (Mbytes) 4
Total PE 1022
Alloc PE 1021
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

VG Name /dev/vg20
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4385
VGDA 2
PE Size (Mbytes) 4
Total PE 4383
Alloc PE 4375
Free PE 8
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Volume group not activated.
vgdisplay: Cannot display volume group "/dev/vg21".
VG Name /dev/vg23
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 2
Open LV 2
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2187
VGDA 2
PE Size (Mbytes) 4
Total PE 2186
Alloc PE 2172
Free PE 14
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

can I just insf
then pvcreate /dev/rdsk/c0t9d0 ( number ok?)
vgextend vg07 /dev/dsk/c0t9t0
vgdisplay -v vg07

Am I right on this?
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: adding a new disk

That looks exactly right to me. The only thing to watch out for is that the PE size and Max PE for PV values are suitable to the size of the disk you're adding. If they are too small and this disk is larger than the original, you won't be able to use the whole disk. You would have to re-create the VG in that case.


Pete

Pete
Ferdinand_5
Advisor

Re: adding a new disk

Thanks Pete,

Is the /dev/rdsk/c0t9d0 number OK?
It is an old hp 9000 D220 and I was going to stick that new disk in the first available slot in the front ( which is the third slot )
underneath the two 9.1 GB disks already there.
Sยภเl Kย๓คг
Respected Contributor

Re: adding a new disk

Yes u can use /dev/rdsk/c0t9d0
#pvcreate /dev/rdsk/c0t9d0
#vgextend vg07 /dev/dsk/c0t9d0
will do
regards
SK
Your imagination is the preview of your life's coming attractions
lawrenzo_1
Super Advisor

Re: adding a new disk

if you do:

# strings /etc/lvmtab this should show the active disks and which volume group they are assigned to.
hello
Ferdinand_5
Advisor

Re: adding a new disk

strings /etc/lvmtab

/dev/vg00
/dev/dsk/c0t5d0
/dev/vg04
/dev/dsk/c1t3d0
/dev/vg06
/dev/dsk/c1t8d0
/dev/vg07
/dev/dsk/c0t8d0
/dev/vg08
/dev/dsk/c1t11d0
/dev/vg09
/dev/dsk/c1t10d0
/dev/vg20
/dev/dsk/c2t6d0
/dev/vg21
/dev/dsk/c2t2d0
/dev/vg23
/dev/dsk/c2t4d0

BUT:


(dibbly)/ # vgscan -p -v
vgscan: Warning: couldn't query physical volume "/dev/dsk/c2t2d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: Warning: couldn't query physical volume "/dev/dsk/c1t11d0":
The specified path does not correspond to physical volume attached to
this volume group
vgscan: Warning: couldn't query all of the physical volumes.
vgscan: The physical volume "/dev/dsk/c0t5d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c0t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t3d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t8d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c1t10d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t4d0" is already recorded in the "/etc/lvmtab" file.
vgscan: The physical volume "/dev/dsk/c2t6d0" is already recorded in the "/etc/lvmtab" file.
Physical Volume "/dev/dsk/c1t4d0" contains no LVM information
Physical Volume "/dev/dsk/c1t5d0" contains no LVM information
Couldn't stat physical volume "/dev/dsk/c2t2d0":
Invalid argument


/dev/vg00
/dev/dsk/c0t5d0



/dev/vg07
/dev/dsk/c0t8d0



/dev/vg04
/dev/dsk/c1t3d0



/dev/vg06
/dev/dsk/c1t8d0



/dev/vg09
/dev/dsk/c1t10d0



/dev/vg23
/dev/dsk/c2t4d0



/dev/vg20
/dev/dsk/c2t6d0


The Volume Group /dev/vg21/group was not matched with any Physical Volumes.
The Volume Group /dev/vg08/group was not matched with any Physical Volumes.

Like I said this thing is a mess :-(

Ferdinand_5
Advisor

Re: adding a new disk


(dibbly)/ # pvcreate /dev/rdsk/c0t10t0
Couldn't stat physical volume "/dev/rdsk/c0t10t0":
pvcreate: Couldn't open physical volume "/dev/rdsk/c0t10t0":
No such file or directory
(dibbly)/ # pvcreate /dev/rdsk/c0t9t0
Couldn't stat physical volume "/dev/rdsk/c0t9t0":
pvcreate: Couldn't open physical volume "/dev/rdsk/c0t9t0":
No such file or directory
(dibbly)/ #
Pete Randall
Outstanding Contributor

Re: adding a new disk

Have you inserted the new drive yet? Do /dev/rdsk/c0t10t0 and /dev/rdsk/c0t9t0 show up in ioscan?

Your vgdisplay seems to show 5 active volume groups which occupy 5 physical drives. Unless you have some external storage attached, I would think you wouldn't have anywhere left to place new drives.


Pete

Pete
Ferdinand_5
Advisor

Re: adding a new disk

The new disks are inserted into the machine.
it has 5 slots in the front two of which were used.
The other disks are external.

I have issued a insf -e command

but my /dev/rdsk/

dir does not show any new files.

Also my ioscan -fnCdisk does not show my new disk "Q£$^£%^&
Pete Randall
Outstanding Contributor

Re: adding a new disk

I have to wonder if the drive is even compatible with the machine. Perhaps you should try loading the latest HWE patch bundle.


Pete

Pete
Ferdinand_5
Advisor

Re: adding a new disk

The new disks are the same.

I even rebooted the machine.

Can't see a thing on ioscan -fnCdisk.

Starting to panic....
Pete Randall
Outstanding Contributor

Re: adding a new disk

Double check all connections and terminations. That's about all I can think of at this point.


Pete

Pete
Ferdinand_5
Advisor

Re: adding a new disk

The D220 is not capable of having more then 2 hdd's in it's front slot.

So good thing i had one free slot in an external box.

Problem solved Thanks you all

F