1835243 Members
2530 Online
110078 Solutions
New Discussion

Re: creating a new lv

 
SOLVED
Go to solution
ani007
Super Advisor

creating a new lv

uname -r
B.11.11

vgdisplay /dev/vemcC30
--- Volume groups ---
VG Name /dev/vemcC30
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 4
Cur PV 1
Act PV 1
Max PE per PV 38400
VGDA 2
PE Size (Mbytes) 4
Total PE 38394
Alloc PE 37500
Free PE 894
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


/dev/vemcC30/lvol1 153600000 105361864 47861344 69% /warp/warp/database16


storage team assign me 150 GB lun,I want to add a new LV with 100GB size[/dev/vemcC30/lvol2 & mount it with a new mount point which i need to create ex./warp/warp/database17]

what will be the stapes:-

pvcreate /dev/rdsk/c16t4d7
vgextend /dev/vgeb_rdo40_d /dev/dsk/c16t4d7 /dev/dsk/c18t4d7 /dev/dsk/c20t4d7 /dev/dsk/c22t4d7
after this what i need to do
5 REPLIES 5
ani007
Super Advisor

Re: creating a new lv

after this shall i do these.

lvcreate -r N -L 102400M -n lvol2 /dev/vemcC30
lvdisplay /dev/vemcC30/lvol2
newfs -F vxfs -o largefiles /dev/vemcC30/lvol2
mkdir /warp/warp/database17
mount /dev/vemcC30/lvol2 /warp/warp/database17

its production server so please correct me if i am wrong.
Hakki Aydin Ucar
Honored Contributor

Re: creating a new lv

Jayakrishnan G Naik
Trusted Contributor
Solution

Re: creating a new lv

Hi Ani

The commands looks fine with few small correction needed,
the newfs command should be run on raw device

newfs -F vxfs -o largefiles /dev/vemcC30/rlvol2

And do remember to add the corresponding entry in fstab.(Hope there is no clustering).

Regards
Jayakrishnan G naik
R.K. #
Honored Contributor

Re: creating a new lv

Hi,

For new LV creation on a new disk on a existing VG [vemcC30] (on a stand alone server):
--------------------------------------
pvcreate /dev/rdsk/new_disk
vgextend /dev/vemcC30 /dev/dsk/new_disk <<<< you have mentioned a different VG_name and only new disk needs to be extended into the VG
lvcreate -L 102400M -n lvol2 /dev/vemcC30 <<<< -r N is default behaviour
newfs -F vxfs -o largefiles /dev/vemcC30/rlvol2
mkdir /warp/warp/database17
mount /dev/vemcC30/lvol2 /warp/warp/database17 <<<< take care for full LV name
bdf
Edit /etc/fstab file

Don't fix what ain't broke
ani007
Super Advisor

Re: creating a new lv

Thanks all
Regards,
Ani