vgdisplay
fdisk -cu /dev/sda
Command (m for help): n
Partition number (1-4): 3
First sector (629145600-943718399, default 629145600):
Using default value 629145600
Last sector, +sectors or +size{K,M,G} (629145600-943718399, default 943718399):
Using default value 943718399
Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sda: 483.2 GB, 483183820800 bytes
255 heads, 63 sectors/track, 58743 cylinders, total 943718400 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f02b1
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux
/dev/sda2 1026048 629145599 314059776 8e Linux LVM
/dev/sda3 629145600 943718399 157286400 8e Linux LVM
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@simkpnas02 ~]# reboot
[root@simkpnas02 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vg_simkpnas02 1 3 0 wz--n- 299.51g 0
vgsimkpnas02 1 0 0 wz--n- 150.00g 150.00g
lvcreate -L50GB -n lv_archievelog vg_simkpnas02
lvcreate -L98GB -n lv_backup vg_simkpnas02
mkfs -t ext3 /dev/vg_simkpnas02/lv_backup
mkfs -t ext3 /dev/vg_simkpnas02/lv_archievelog
mkdir /backup
mkdir /archievelog
mount -t ext3 /dev/mapper/vg_simkpnas02-lv_archievelog /archivelog/
mount -t ext3 /dev/mapper/vg_simkpnas02-lv_backup /backup