Error when creating new partition on /dev/sda, âNo free sectors availableâ
Clash 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 ()
Many thanks
partition fdisk oracle-linux
add a comment |Â
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 ()
Many thanks
partition fdisk oracle-linux
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 ofpvs
,vgs
andlvs
.
â 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
add a comment |Â
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 ()
Many thanks
partition fdisk oracle-linux
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 ()
Many thanks
partition fdisk oracle-linux
partition fdisk oracle-linux
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 ofpvs
,vgs
andlvs
.
â 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
add a comment |Â
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 ofpvs
,vgs
andlvs
.
â 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
add a comment |Â
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
add a comment |Â
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.
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered Jan 5 '17 at 19:36
Rakib
906611
906611
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Feb 28 at 7:27
answered Feb 28 at 7:20
fvidalmolina
415
415
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
andlvs
.â 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