Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Aug 26, 2011 11:34 am 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:40 am
Posts: 7
Hi all! I have some free space storage available and now I want to use it creating a secondary partition in order to be able to mount it.

my current stats (from linode manager):

Storage Stats
32768 MB
Allocated
8192 MB
Free
40960 MB
Total

How should I perform this operation? I know how to mount it, etc, but I'm not so sure if I have to use fdisk in this case or what because I'm getting 'doesn't contain a valid partition table':

Disk /dev/xvdb: 272 MB, 272629760 bytes
255 heads, 63 sectors/track, 33 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/xvdb doesn't contain a valid partition table

TIA!


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 12:04 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
There are no partitions, only disk images mounted as partitionless devices. What you want to do is create a new disk image through the linode manager, and then edit your configuration profile to assign the disk image to a device (probably xvdc, unless you have no swap). Then modify your fstab to mount the new image.


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 12:26 pm 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:40 am
Posts: 7
perfect! thanks!


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 12:47 pm 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:40 am
Posts: 7
One more doubt, if I go to my linode > Edit Disk Image, there's an option to define a 'New Size'.

Can I safely resize my active disk image (running CentOS) to a smaller number?, of course not lower than the free space I have inside the VM/partition; If yes, do I have to previously shutdown the VM?

What I'm trying to achieve is to append the current free space available (8192MB) to this other one (after the resizing) in order to create a new bigger disk image/secondary partion of around 15GB.

TIA


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 1:05 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
You can shrink your disks but the node has to be shutdown first.

So you want two disk images with some free space taken from the primary image? If so shutdown your node, resize the existing disk, then create a new disk, update your configuration profile and boot.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 1:13 pm 
Offline
Senior Newbie

Joined: Mon Jan 17, 2011 10:40 am
Posts: 7
Yes, that's what I want to do, so I can assume that it's a safe operation (if properly done of course).

Thanks!


Top
   
 Post subject:
PostPosted: Fri Aug 26, 2011 2:48 pm 
Offline
Senior Member

Joined: Wed Jun 16, 2010 8:22 pm
Posts: 61
Website: http://www.kevinmccaughey.org
Think of it a bit like VMWare workstation, if you've ever used that ;)


Top
   
 Post subject:
PostPosted: Tue Nov 15, 2011 10:36 am 
Offline
Senior Member

Joined: Sun Mar 28, 2010 2:43 pm
Posts: 76
Website: http://tomakefast.com
Location: Texas
Guspaz wrote:
What you want to do is create a new disk image through the linode manager, and then edit your configuration profile to assign the disk image to a device (probably xvdc, unless you have no swap). Then modify your fstab to mount the new image.


Wish I found this nugget 2-3 hours ago ;-)

If you're wondering how to "modify fstab" check this link -
http://www.linode.com/wiki/index.php/Fstab

So edit fstab, reboot, run "fdisk -l" and hooray,

Disk /dev/xvdc: 16.7 GB, 16743661568 bytes
255 heads, 63 sectors/track, 2035 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

_________________
PHP Development @ Tomakefast


Top
   
 Post subject:
PostPosted: Tue Nov 15, 2011 12:07 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
And then, hopefully:

Code:
Disk /dev/xvdc doesn't contain a valid partition table


This was covered above, but it's worth mentioning for the future scroll-to-the-bottom crowd: /dev/xvd* do not have partition tables, for the same reason that /dev/sda1 wouldn't have a partition table. Keep fdisk very far away.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group