Error when creating new partition on /dev/sda, “No free sectors available”

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












My unix skills are very basic so please bare with me.



I have a VirtualBox Linux Guest (Oracle Enterprise Linux 6) and I recently expanded hard drive from 50Gb to 100Gb and then used GParted to resize to use the newly added 50GB (as this was unallocated). All this was successful but then I came across the error "No free sectors available"



[root@oralab1 Desktop]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oralab1-lv_root
45G 4.2G 39G 10% /
tmpfs 7.9G 100K 7.9G 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Disk /dev/mapper/vg_oralab1-lv_root: 49.0 GB, 48997859328 bytes
255 heads, 63 sectors/track, 5956 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_oralab1-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
No free sectors available

Command (m for help): ^C


Please can someone kindly provide steps which will allow me to expand and use the full 100GB.



Any help / advise would be greatly appreciated.



Attachment (pvs, vgs and lvs output)



Many thanks










share|improve this question























  • You have already a 100gb size sda2. (104344576 8e Linux LVM)
    – Ipor Sircer
    Dec 15 '16 at 1:04










  • Please edit your question to add the output of pvs, vgs and lvs.
    – Stephen Kitt
    Dec 15 '16 at 6:07










  • Stephen, I have provided the pvs vgs and lvs output
    – AJsStack
    Dec 15 '16 at 9:20















up vote
0
down vote

favorite












My unix skills are very basic so please bare with me.



I have a VirtualBox Linux Guest (Oracle Enterprise Linux 6) and I recently expanded hard drive from 50Gb to 100Gb and then used GParted to resize to use the newly added 50GB (as this was unallocated). All this was successful but then I came across the error "No free sectors available"



[root@oralab1 Desktop]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oralab1-lv_root
45G 4.2G 39G 10% /
tmpfs 7.9G 100K 7.9G 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Disk /dev/mapper/vg_oralab1-lv_root: 49.0 GB, 48997859328 bytes
255 heads, 63 sectors/track, 5956 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_oralab1-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
No free sectors available

Command (m for help): ^C


Please can someone kindly provide steps which will allow me to expand and use the full 100GB.



Any help / advise would be greatly appreciated.



Attachment (pvs, vgs and lvs output)



Many thanks










share|improve this question























  • You have already a 100gb size sda2. (104344576 8e Linux LVM)
    – Ipor Sircer
    Dec 15 '16 at 1:04










  • Please edit your question to add the output of pvs, vgs and lvs.
    – Stephen Kitt
    Dec 15 '16 at 6:07










  • Stephen, I have provided the pvs vgs and lvs output
    – AJsStack
    Dec 15 '16 at 9:20













up vote
0
down vote

favorite









up vote
0
down vote

favorite











My unix skills are very basic so please bare with me.



I have a VirtualBox Linux Guest (Oracle Enterprise Linux 6) and I recently expanded hard drive from 50Gb to 100Gb and then used GParted to resize to use the newly added 50GB (as this was unallocated). All this was successful but then I came across the error "No free sectors available"



[root@oralab1 Desktop]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oralab1-lv_root
45G 4.2G 39G 10% /
tmpfs 7.9G 100K 7.9G 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Disk /dev/mapper/vg_oralab1-lv_root: 49.0 GB, 48997859328 bytes
255 heads, 63 sectors/track, 5956 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_oralab1-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
No free sectors available

Command (m for help): ^C


Please can someone kindly provide steps which will allow me to expand and use the full 100GB.



Any help / advise would be greatly appreciated.



Attachment (pvs, vgs and lvs output)



Many thanks










share|improve this question















My unix skills are very basic so please bare with me.



I have a VirtualBox Linux Guest (Oracle Enterprise Linux 6) and I recently expanded hard drive from 50Gb to 100Gb and then used GParted to resize to use the newly added 50GB (as this was unallocated). All this was successful but then I came across the error "No free sectors available"



[root@oralab1 Desktop]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_oralab1-lv_root
45G 4.2G 39G 10% /
tmpfs 7.9G 100K 7.9G 1% /dev/shm
/dev/sda1 485M 55M 405M 12% /boot
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Disk /dev/mapper/vg_oralab1-lv_root: 49.0 GB, 48997859328 bytes
255 heads, 63 sectors/track, 5956 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mapper/vg_oralab1-lv_swap: 4160 MB, 4160749568 bytes
255 heads, 63 sectors/track, 505 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]#
[root@oralab1 Desktop]# fdisk /dev/sda

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ef7c4

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 13055 104344576 8e Linux LVM

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
No free sectors available

Command (m for help): ^C


Please can someone kindly provide steps which will allow me to expand and use the full 100GB.



Any help / advise would be greatly appreciated.



Attachment (pvs, vgs and lvs output)



Many thanks







partition fdisk oracle-linux






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '16 at 9:19

























asked Dec 14 '16 at 22:20









AJsStack

112




112











  • You have already a 100gb size sda2. (104344576 8e Linux LVM)
    – Ipor Sircer
    Dec 15 '16 at 1:04










  • Please edit your question to add the output of pvs, vgs and lvs.
    – Stephen Kitt
    Dec 15 '16 at 6:07










  • Stephen, I have provided the pvs vgs and lvs output
    – AJsStack
    Dec 15 '16 at 9:20

















  • You have already a 100gb size sda2. (104344576 8e Linux LVM)
    – Ipor Sircer
    Dec 15 '16 at 1:04










  • Please edit your question to add the output of pvs, vgs and lvs.
    – Stephen Kitt
    Dec 15 '16 at 6:07










  • Stephen, I have provided the pvs vgs and lvs output
    – AJsStack
    Dec 15 '16 at 9:20
















You have already a 100gb size sda2. (104344576 8e Linux LVM)
– Ipor Sircer
Dec 15 '16 at 1:04




You have already a 100gb size sda2. (104344576 8e Linux LVM)
– Ipor Sircer
Dec 15 '16 at 1:04












Please edit your question to add the output of pvs, vgs and lvs.
– Stephen Kitt
Dec 15 '16 at 6:07




Please edit your question to add the output of pvs, vgs and lvs.
– Stephen Kitt
Dec 15 '16 at 6:07












Stephen, I have provided the pvs vgs and lvs output
– AJsStack
Dec 15 '16 at 9:20





Stephen, I have provided the pvs vgs and lvs output
– AJsStack
Dec 15 '16 at 9:20











2 Answers
2






active

oldest

votes

















up vote
0
down vote













If you want to create new partition you may use lvcreate instead of fdisk /dev/sda. Follow the bellow step in command line



Step 1:



 # lvcreate --name lvname --size lvsize vgname
# ex lvcreate --name lv_home --size 30G vg_oralab1


Step 2: Format the Logical volume(lv) by any linux filesystem



 # mkfs.xfs /dev/vg_oralab1/lv_home


Step 3: Create mount point and mount the lv



# mkdir /lv_part
# mount /dev/vg_oralab1/lv_home /lv_part


Step 4: Check the partition by



# df -h


NOTE: For permanent mount give entry in /etc/fstab






share|improve this answer



























    up vote
    0
    down vote













    you already have all the disk at sda2, as I can see at pvs command (size 99Gb, 50GB free)



    So you only have to increased the lvs partition that already have.



    lvextend -l +100%FREE /dev/mapper/vg_oralab1-lv_root


    and resize at os level:



    resize2fs /dev/mapper/vg_oralab1-lv_root


    now you are using all the size in your lvm filesystem.






    share|improve this answer






















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f330451%2ferror-when-creating-new-partition-on-dev-sda-no-free-sectors-available%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      If you want to create new partition you may use lvcreate instead of fdisk /dev/sda. Follow the bellow step in command line



      Step 1:



       # lvcreate --name lvname --size lvsize vgname
      # ex lvcreate --name lv_home --size 30G vg_oralab1


      Step 2: Format the Logical volume(lv) by any linux filesystem



       # mkfs.xfs /dev/vg_oralab1/lv_home


      Step 3: Create mount point and mount the lv



      # mkdir /lv_part
      # mount /dev/vg_oralab1/lv_home /lv_part


      Step 4: Check the partition by



      # df -h


      NOTE: For permanent mount give entry in /etc/fstab






      share|improve this answer
























        up vote
        0
        down vote













        If you want to create new partition you may use lvcreate instead of fdisk /dev/sda. Follow the bellow step in command line



        Step 1:



         # lvcreate --name lvname --size lvsize vgname
        # ex lvcreate --name lv_home --size 30G vg_oralab1


        Step 2: Format the Logical volume(lv) by any linux filesystem



         # mkfs.xfs /dev/vg_oralab1/lv_home


        Step 3: Create mount point and mount the lv



        # mkdir /lv_part
        # mount /dev/vg_oralab1/lv_home /lv_part


        Step 4: Check the partition by



        # df -h


        NOTE: For permanent mount give entry in /etc/fstab






        share|improve this answer






















          up vote
          0
          down vote










          up vote
          0
          down vote









          If you want to create new partition you may use lvcreate instead of fdisk /dev/sda. Follow the bellow step in command line



          Step 1:



           # lvcreate --name lvname --size lvsize vgname
          # ex lvcreate --name lv_home --size 30G vg_oralab1


          Step 2: Format the Logical volume(lv) by any linux filesystem



           # mkfs.xfs /dev/vg_oralab1/lv_home


          Step 3: Create mount point and mount the lv



          # mkdir /lv_part
          # mount /dev/vg_oralab1/lv_home /lv_part


          Step 4: Check the partition by



          # df -h


          NOTE: For permanent mount give entry in /etc/fstab






          share|improve this answer












          If you want to create new partition you may use lvcreate instead of fdisk /dev/sda. Follow the bellow step in command line



          Step 1:



           # lvcreate --name lvname --size lvsize vgname
          # ex lvcreate --name lv_home --size 30G vg_oralab1


          Step 2: Format the Logical volume(lv) by any linux filesystem



           # mkfs.xfs /dev/vg_oralab1/lv_home


          Step 3: Create mount point and mount the lv



          # mkdir /lv_part
          # mount /dev/vg_oralab1/lv_home /lv_part


          Step 4: Check the partition by



          # df -h


          NOTE: For permanent mount give entry in /etc/fstab







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 5 '17 at 19:36









          Rakib

          906611




          906611






















              up vote
              0
              down vote













              you already have all the disk at sda2, as I can see at pvs command (size 99Gb, 50GB free)



              So you only have to increased the lvs partition that already have.



              lvextend -l +100%FREE /dev/mapper/vg_oralab1-lv_root


              and resize at os level:



              resize2fs /dev/mapper/vg_oralab1-lv_root


              now you are using all the size in your lvm filesystem.






              share|improve this answer


























                up vote
                0
                down vote













                you already have all the disk at sda2, as I can see at pvs command (size 99Gb, 50GB free)



                So you only have to increased the lvs partition that already have.



                lvextend -l +100%FREE /dev/mapper/vg_oralab1-lv_root


                and resize at os level:



                resize2fs /dev/mapper/vg_oralab1-lv_root


                now you are using all the size in your lvm filesystem.






                share|improve this answer
























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  you already have all the disk at sda2, as I can see at pvs command (size 99Gb, 50GB free)



                  So you only have to increased the lvs partition that already have.



                  lvextend -l +100%FREE /dev/mapper/vg_oralab1-lv_root


                  and resize at os level:



                  resize2fs /dev/mapper/vg_oralab1-lv_root


                  now you are using all the size in your lvm filesystem.






                  share|improve this answer














                  you already have all the disk at sda2, as I can see at pvs command (size 99Gb, 50GB free)



                  So you only have to increased the lvs partition that already have.



                  lvextend -l +100%FREE /dev/mapper/vg_oralab1-lv_root


                  and resize at os level:



                  resize2fs /dev/mapper/vg_oralab1-lv_root


                  now you are using all the size in your lvm filesystem.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Feb 28 at 7:27

























                  answered Feb 28 at 7:20









                  fvidalmolina

                  415




                  415



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f330451%2ferror-when-creating-new-partition-on-dev-sda-no-free-sectors-available%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay