Avatar of D_wathi
D_wathiFlag for India asked on

linux partitions

Dear Experts:

I have RHEL5 installed long back , installed in two hard disks, posted below the fdisk -l and fstab
----------------------
 fdisk -l

Disk /dev/cciss/c0d0: 73.3 GB, 73372631040 bytes
255 heads, 63 sectors/track, 8920 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1          25      200781   83  Linux
/dev/cciss/c0d0p2              26        5252    41985877+  8e  Linux LVM
/dev/cciss/c0d0p3            5253        6527    10241437+  83  Linux
/dev/cciss/c0d0p4            6528        8920    19221772+   5  Extended
/dev/cciss/c0d0p5            6528        7802    10241406   83  Linux
/dev/cciss/c0d0p6            7803        8312     4096543+  82  Linux swap / Solaris
/dev/cciss/c0d0p7            8313        8822     4096543+  82  Linux swap / Solaris

Disk /dev/cciss/c0d1: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1               1       17953    73248224   83  Linux
/dev/cciss/c0d1p2           17954       35132    70090320    5  Extended
/dev/cciss/c0d1p5           17954       35132    70090304   83  Linux

Disk /dev/cciss/c0d2: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d2p1               1       23936    97658864   8e  Linux LVM
/dev/cciss/c0d2p2           23937       35132    45679680    5  Extended
----------------------end----------------------------------
-----------------------------/etc/fstab---------------
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2

/dev/VolGroup00/LogVol00 /usr                    ext3    defaults        1 2
LABEL=SW-cciss/c0d0p6   swap                    swap    defaults        0 0
LABEL=SW-cciss/c0d0p7   swap                    swap    defaults        0 0
LABEL=/externaldrive    /external               ext3    rw,acl          1 2
LABEL=/extendedlogical  /extendedlogical        ext3    rw,acl          1 2

/dev/VolGroup00/LogVol03                /var            ext3    defaults        1 2
/dev/VolGroup00/LogVol02 /home                   ext3    defaults        1 2
------------------------------
my doubt is how to find wheather the created partition is in use i mean is already used , i have a doubt on /dev/cciss/c0d2p2 this is and extended partition but fstab does not show any pointing to this
can i delete this and and create a partition , please suggest me is there any method to find created partition is safe to delete or not. please help

~                                                                                                        





LinuxLinux Networking

Avatar of undefined
Last Comment
Monis Monther

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Monis Monther

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
chrios

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER
D_wathi

Thank you very much for the help. request you to please tell me how to add this extended partition to the volume group , please help with the steps. Thanks in advance
Monis Monther

You dont add the extended partition to the VG you

1- create a Logical drive using fdisk that occupies the entire extended partition.
2- Change the type of the new partition to 8e (Linux LVM )
3- You change the partition to PV
4- Now you add it to the VG
ASKER
D_wathi

Sir thanks for the reply , i can manage to do 1 and 2 but can you please tell me 3 that is how to change the partition to PV , is it by using the pvcreate , please help
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Monis Monther

Yes it is

pvcreate /dev/sdax    where x is your partition number 5,6,7...etc