LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2014, 05:21 AM   #1
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248
Blog Entries: 3

Rep: Reputation: 17
Lightbulb complex kickstart partiton


Hi All,

I am trying to figure out my problem of partition from kickstart
i have 500Gb local disk which i have to make same partition as given below.

Current Partition

/dev/mapper/VolGroup01-LogVol00 ext3 15G 5.1G 8.8G 37% /
/dev/mapper/VolGroup01-homeLV ext3 2.0G 708M 1.2G 37% /home
/dev/mapper/VolGroup01-tmpLV ext3 1008M 36M 922M 4% /tmp
/dev/mapper/VolGroup01-varLV ext3 1008M 477M 480M 50% /var
/dev/mapper/VolGroup01-LogVol01 ext3 20G 16G 3.3G 83% /app
/dev/mapper/VolGroup_DB-VolGroup_DB ext3 197G 88G 102G 47% /VolMount_DB
/dev/mapper/VolGroup_AL-VolGroup_AL ext3 393G 195G 183G 52% /VolMount_AL
/dev/mapper/VolGroup_LS-VolGroup_LS ext3 20G 537M 19G 3% /VolMount_LS

PVS

PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup01 lvm2 a-- 39.88G 1.00G
/dev/sdb1 VolSwap lvm2 a-- 15.97G 0
/dev/sdc1 VolGroup_LS lvm2 a-- 19.99G 0
/dev/sdd1 VolGroup_AL lvm2 a-- 400.00G 1020.00M
/dev/sde1 VolGroup_DB lvm2 a-- 200.00G 0


the disk are
sdb1
sdc1
sdd1
sde1

But we need to make it from single disk like 500Gb which we have to cover all these. my confusion is how i can make a partition that will start that sector from 64 & then it will make a volume group VG

below are the configuration which i am trying i need all suggestion which can help me to fix the configuration




part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.100000 --size=0 --grow --ondisk=sda
part pv.100002 --size=0 --grow --ondisk=sda
part pv.100003 --size=0 --grow --ondisk=sda
part pv.100004 --size=0 --grow --ondisk=sda
part pv.100005 --size=0 --grow --ondisk=sda


volgroup VolGroup01 --pesize=32768 pv.100000
volgroup SwapVol01 --pesize=32768 pv.100002
Volgroup VolGroup_LS --pesize=32768 pv.100003
Volgroup VolGroup_DB --pesize=32768 pv.100004
VolGroup VolGroup_AL --persize=32768 pv.10005


logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup01 --size=15000
logvol /tmp --fstype ext3 --name=tmpLV --vgname=VolGroup01 --size=1000
logvol /var --fstype ext3 --name=varLV --vgname=VolGroup01 --size=1000
logvol /home --fstype ext3 --name=homeLV --vgname=VolGroup01 --size=2000
logvol swap --fstype swap --name=SwapVol01 --vgname=VolSwap --size=16000
logvol /app --fstype ext3 --name=VolGroup01 --vgname=LogVol01 --size=2000
logvol /VolMount_LS --fstype ext3 --name=VolGroup_LS --vgname=VolGroup_LS --size=20000
logvol /VolGroup_DB --fstype ext3 --name=VolGroup_DB --vgname=VolGroup_DB --size=200000
logvol /VolGroup_AL --fstype ext3 --name=VolGroup_AL --vgname=VolGroup_AL --size=400000


also need to know that how to make extended & logical partition on that configure.as of now i just fix one thing which is --asprimary but didn't figure out the extended & logical partition define here.

part /boot --fstype ext3 --asprimary --size=100 --ondisk=sda
part pv.100000 --asprimary --size=0 --grow --ondisk=sda
part pv.100002 --asprimary --size=0 --grow --ondisk=sda
part pv.100003 --size=0 --grow --ondisk=sda
part pv.100004 --size=0 --grow --ondisk=sda
part pv.100005 --size=0 --grow --ondisk=sda

below is the error

Quote:
could not allocate requested partitios:
adding this partition would not leave enough
disk space for already allocated logical volumes in
VolGroup01......

press 'ok' to reboot your system

Last edited by pantdk; 01-31-2014 at 07:24 PM.
 
Old 01-29-2014, 08:49 AM   #2
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248

Original Poster
Blog Entries: 3

Rep: Reputation: 17
Now i have resolve this issue in my testing environment .i have take 42Gb Disk for the this testing.i have only left the 64 starting sector but without that everything is work fine i have adjusted the partition size according to my disk so now i am able to full fill my requirement with this settings.

[root@localhost ~]# df -hTP |column -t
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol00 ext3 6.6G 2.4G 3.9G 39% /
/dev/mapper/VolGroup_DB-VolGroup_DB ext3 961M 18M 895M 2% /VolGroup_DB
/dev/mapper/VolGroup_AL-VolGroup_AL ext3 961M 18M 895M 2% /VolGroup_AL
/dev/mapper/VolGroup01-LogVol01 ext3 1.9G 35M 1.8G 2% /app
/dev/mapper/VolGroup_LS-VolGroup_LS ext3 961M 18M 895M 2% /VolMount_LS
/dev/mapper/VolGroup01-homeLV ext3 1.9G 35M 1.8G 2% /home
/dev/mapper/VolGroup01-tmpLV ext3 961M 18M 895M 2% /tmp
/dev/mapper/VolGroup01-varLV ext3 961M 67M 845M 8% /var
/dev/sda1 ext3 99M 25M 70M 26% /boot
tmpfs tmpfs 243M 0 243M 0% /dev/shm
[root@localhost ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup01 lvm2 a-- 15.59G 2.97G
/dev/sda3 SwapVol01 lvm2 a-- 1.94G 384.00M
/dev/sda5 VolGroup_AL lvm2 a-- 2.53G 1.56G
/dev/sda6 VolGroup_DB lvm2 a-- 2.53G 1.56G
/dev/sda7 VolGroup_LS lvm2 a-- 2.53G 1.56G
[root@localhost ~]# vgs
VG #PV #LV #SN Attr VSize VFree
SwapVol01 1 1 0 wz--n- 1.94G 384.00M
VolGroup01 1 5 0 wz--n- 15.59G 2.97G
VolGroup_AL 1 1 0 wz--n- 2.53G 1.56G
VolGroup_DB 1 1 0 wz--n- 2.53G 1.56G
VolGroup_LS 1 1 0 wz--n- 2.53G 1.56G
[root@localhost ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
Vol01Swap SwapVol01 -wi-ao 1.56G
LogVol00 VolGroup01 -wi-ao 6.81G
LogVol01 VolGroup01 -wi-ao 1.94G
homeLV VolGroup01 -wi-ao 1.94G
tmpLV VolGroup01 -wi-ao 992.00M
varLV VolGroup01 -wi-ao 992.00M
VolGroup_AL VolGroup_AL -wi-ao 992.00M
VolGroup_DB VolGroup_DB -wi-ao 992.00M
VolGroup_LS VolGroup_LS -wi-ao 992.00M


[root@localhost ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2052 16378267+ 8e Linux LVM
/dev/sda3 2053 2306 2040255 8e Linux LVM
/dev/sda4 2307 5221 23414737+ 5 Extended
/dev/sda5 2307 2637 2658726 8e Linux LVM
/dev/sda6 2638 2968 2658726 8e Linux LVM
/dev/sda7 2969 3299 2658726 8e Linux LVM

Disk /dev/dm-0: 7314 MB, 7314866176 bytes
255 heads, 63 sectors/track, 889 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 1040 MB, 1040187392 bytes
255 heads, 63 sectors/track, 126 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 1040 MB, 1040187392 bytes
255 heads, 63 sectors/track, 126 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-4 doesn't contain a valid partition table

Disk /dev/dm-5: 1677 MB, 1677721600 bytes
255 heads, 63 sectors/track, 203 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-5 doesn't contain a valid partition table
[root@localhost ~]#


[root@localhost ~]# cat /etc/enterprise-release
Enterprise Linux Enterprise Linux Server release 5.9 (Carthage)
[root@localhost ~]#

Last edited by pantdk; 01-30-2014 at 12:33 AM.
 
Old 01-31-2014, 07:26 PM   #3
pantdk
Member
 
Registered: Oct 2011
Location: New Delhi
Posts: 248

Original Poster
Blog Entries: 3

Rep: Reputation: 17
I forget to give the config which i have used Below is my testing configuration which help's in making the working partition without any error


###PV###
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.100000 --asprimary --size=0 --grow --maxsize=16000 --ondisk=sda
part pv.100002 --size=0 --grow --maxsize=2000 --ondisk=sda
part pv.100003 --size=1 --grow --maxsize=2600 --ondisk=sda
part pv.100004 --size=1 --grow --maxsize=2600 --ondisk=sda
part pv.100005 --size=1 --grow --maxsize=2600 --ondisk=sda
###VG####
volgroup VolGroup01 pv.100000
volgroup SwapVol01 pv.100002
volgroup VolGroup_LS pv.100003
volgroup VolGroup_DB pv.100004
volgroup VolGroup_AL pv.100005
###LV###
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup01 --size=7000
logvol /tmp --fstype ext3 --name=tmpLV --vgname=VolGroup01 --size=1000
logvol /var --fstype ext3 --name=varLV --vgname=VolGroup01 --size=1000
logvol /home --fstype ext3 --name=homeLV --vgname=VolGroup01 --size=2000
logvol swap --fstype swap --name=Vol01Swap --vgname=SwapVol01 --size=1600
logvol /app --fstype ext3 --name=LogVol01 --vgname=VolGroup01 --size=2000
logvol /VolMount_LS --fstype ext3 --name=VolGroup_LS --vgname=VolGroup_LS --size=1000
logvol /VolGroup_DB --fstype ext3 --name=VolGroup_DB --vgname=VolGroup_DB --size=1000
logvol /VolGroup_AL --fstype ext3 --name=VolGroup_AL --vgname=VolGroup_AL --size=1000


[root@localhost ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 2052 16378267+ 8e Linux LVM
/dev/sda3 2053 2306 2040255 8e Linux LVM
/dev/sda4 2307 5221 23414737+ 5 Extended
/dev/sda5 2307 2637 2658726 8e Linux LVM
/dev/sda6 2638 2968 2658726 8e Linux LVM
/dev/sda7 2969 3299 2658726 8e Linux LVM

Last edited by pantdk; 01-31-2014 at 07:28 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] RHL 6.0 Unable to download the Kickstart file/ Error downloading kickstart file AnApproach2DigestLinux Linux - Newbie 3 11-23-2012 05:50 PM
Kickstart Error Error opening kickstart file (null): bad address Latitude Linux - Networking 0 06-03-2009 11:20 AM
fat32 partiton marjan Linux - Hardware 7 06-15-2006 05:03 PM
Partiton westcor Linux - General 5 12-01-2005 02:01 AM
Partiton names gag Linux - Newbie 3 10-19-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration