Operating System - HP-UX
1752433 Members
5999 Online
108788 Solutions
New Discussion юеВ

Re: VG creation from Storage

 
SOLVED
Go to solution
GTFSpanneer
Frequent Advisor

VG creation from Storage

Hi ,
30 Gb allocated from san . i need to create a new logical volume. could you please help me.
Please provide command step by step. first time i am going to create LV from SAN.
disk 58 0/7/1/0/4/0.24.44.0.0.2.0 sdisk CLAIMED DEVICE HP MSA VOLUME

Thanaks in advance.
Regards
RPS
21 REPLIES 21
Wim Rombauts
Honored Contributor

Re: VG creation from Storage

Could you please specify your OS-version, and the output of :
"ioscan -fnC disk" for the above disk (we need to know the device file names)
GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Thanks WiM for quick reply. Please find the attached file for output of "ioscan -fnC disk"

Os version is 11.23

Regards
RPS
g3jza
Esteemed Contributor
Solution

Re: VG creation from Storage

Hi,
it seems that your DSF is missing.
To create it, run:
#insf -v

You should then run #ioscan -fn
again and see your DSF for disk 58

In which Volume group do you want to create your new LV?

After the DSF for the disk58 has been created, then initialize it for LVM usage:
#pvcreate

After the disk has been initialized, add it to the VG, in which you want to create the new LV:
#vgextend

Then create new LV:
#lvcreate -L -n

GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi g3jza ,
This LV is temporay purpose for one month. after one month i have reacalim. How to recail it.

regads
RPS
g3jza
Esteemed Contributor

Re: VG creation from Storage

After deciding that you no longer need the LV and thus FS and all data contained in that FS, then :

# umount
# lvremove /dev//

you can also potentially vgreduce the disk which is used for the VG:
#vgreduce
#pvremove (optional)

Then unpresent the disk from the server so it can be used elsewhere, this is being done on the disk array...
GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi g3jza,
Thanks. i don't want to extend the vg . i needd to create PV+VG+LV+FS. please provide me steps.
Thanks in advance.
Regards
RPS




g3jza
Esteemed Contributor

Re: VG creation from Storage

Did you run the #insf -v
to create the DSF for the new disk?

then #ioscan -fn
again and give me the output of disk58.

GTFSpanneer
Frequent Advisor

Re: VG creation from Storage

Hi g3jza,

Please find attached file.

Thanks
RPS

g3jza
Esteemed Contributor

Re: VG creation from Storage

One more thing, give output of your VG group files please:
#ll /dev/vg*/group

Ok so your new DSFs that got created is according to this: /dev/dsk/c9t2d0, /dev/rdsk/c9t2d0

you wanted to create the PV from it so:
#pvcreate /dev/rdsk/c9t2d0

You didn't specify the parameters of VG, so I assume the defaults will be ok, it's temporary anyways, so:
#mkdir /dev/vgname
#mknod /dev/vgname/group c 64 0x0Y0000
where 'Y' is the number following the last minor number from the #ll /dev/vg*/group output
#vgcreate vgname /dev/dsk/c9t2d0

The 'vgname' should be unique to your system, it could be anything like vgora, vgtemp....doesn't really matter....

Then create the 30GB LV:
#lvcreate -L 30720 /dev/vgname

Create a FS within the LV:
#newfs -F vxfs -o largefiles /dev/vgname/rlvol1 (largefiles option is optional, if you are going to have files bigger than 2GB in that FS)

Finally mount the FS:
#mount /dev/vgname/lvol1 /your_mount_point