resizing partitions?

unix

    Sponsored Links

    Next

  • 1. Zfs Q
    Folks, Is it booting Sparc Solaris from a zfs root/var filesystem supported by Sun ? I know OpenSolairs are doing it, just cant find any documentation suggesting that it can be done with Sparc Solaris. TIA
  • 2. how to mount Solaris 10 onto a Solaris 7 system?
    Here's my scenario: server = name of system with Solaris 10 client = name of system with Solaris 7 On "server", I shared out the proper directory in the file /etc/dfs/ dfstab I also did a "shareall". I confirmed that the path I want to share out is correctly shared. Both systems have the same user name and password; however, the group this user belongs to, is different on each system. I can telnet to and from both systems. Inside /etc/hosts.equiv on both systems, I even put in "+" just to test a test mount. I went on the client system (on Solaris 7), and ran this command: mount server:/home/user/data /users/mnt I keep getting a "permission denied" error. Anyone knows how to fix this problem? Thanks.
  • 3. command "rm -rf" can't remove whole directory tree on ZFS
    Dear All, I had create a ZFS file system called auth and create a directory under auth called online. I have observed the following issue: when I try to remove with "rm -rf online", only the regular files will be removed on Solaris 10 u4 when doing so on a ZFS file system. If I rm -rf as root it works but as normal user it doesn't, though the directory privilege are okay (750 for the owning user trying to remove) and have no any error messages. Anyone can help me to solve this problem? Thank you. OS: Solaris 10 update 4 Machine: V245

resizing partitions?

Postby Ian » Fri, 25 Mar 2005 23:33:47 GMT

hi,
Is it possible in Solaris 10 X86 to resize partitions?
eg I need to make /opt bigger
Any help appreciated
Ian 



Re: resizing partitions?

Postby Dragan Cvetkovic » Fri, 25 Mar 2005 23:36:37 GMT

"Ian" < XXXX@XXXXX.COM > writes:


You can try to use growfs. But beware of its limitations.

Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!

Re: resizing partitions?

Postby Darren Dunham » Sat, 26 Mar 2005 01:32:05 GMT



Yes, you can resize partitions.  However, that all by itself may not be
sufficient for what you need.

If there's data just beyond the partition you want to enlarge, then the
partitions would overlap.  That would be bad.  You'd need to either
destroy or move the conflicting data.  

That's often much harder than simply enlarging the existing partition,
then resizing the filesystem.  If you happen to have some free space
past the end of your /opt, you're in luck!

-- 
Darren Dunham                                            XXXX@XXXXX.COM 
Senior Technical Consultant         TAOS             http://www.**--****.com/ 
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

Re: resizing partitions?

Postby Paul Floyd » Sat, 26 Mar 2005 07:31:40 GMT



Sure, it is possible. I grew both my / and /usr last night. However, it
may not be easy. I'd say that if /opt is at the end of the fdisk
partition, then you're in with a chance. The basic steps are:

1. Make some space after the Solaris fdisk partition.

2. Increase the size of the fdisk partition.

3. Use format to increase the size of the /opt slice

4. Run growfs on the partition.

For 1 and 2, I used PartitionMagic to move the partitions that it is
capable of dealing with, Ghost to backup and restore partitions
(restoring further way from the Solaris partition so that there ended up
a hole in the partitions). I then used FreeBSD fdisk and ptedit to
change the size of the Solaris partitions.

For 3 and 4, I booted from the install CD and ran format and growfs from
there.

If /opt isn't at the end, then it's trickier. You can still use growfs,
but it's going to trash any slices that follow /opt, so you'll need to
backup and restore them. It might be just as easy to backup your data,
reinstall Solaris and restore.

A bientot
Paul
-- 
Paul Floyd                  http://www.**--****.com/  (for what it's worth)
Surgery: ennobled Gerald.

Similar Threads:

1.Resizing Partitions

My Os's are Suse 9.2 and w2kPro, dual boot from Grub.

My original partitions for a 40G drive were:

ext3: 20G
ext3: 5G
swap: .5G
ntfs: 4G, c:
ntfs: 6G, d:

These sizes were too constraining, especially since the 5G ext3 was my 
main linux partition.



So, I re-installed linux on the 20G partition.

Now, I want to resize my windows partitions.

I want to merge the 4G and the 6G together and then add in the ext3 5G 
to make a single 15G partition for ntfs.

Is this something I can do in Partition Magic?

Are there better tools?

Are there free tools?

Can I do this using the Free version of Partition Magic?

Is $40 the right price for it?

Is there an OSS tool that can do this from the Linux side?



2.Resizing Partitions w/ GNU Parted.

Hi,

Thanks in advance for any assistance!
i need to resize my /usr partition. I have the following
configuration:

sda2 - boot
sda3 - /
sda4 - extended
sda5 - /var
sda6 - /usr
sda7 - /home
sda8 - /tmp

I have about 17 gig free at the end of the disk. I have not done this
before and so i dont want to cock it up. How do i proceed, do i move
sda7-8 further down the disk and then resize sda6. Or can i create a
new partition in the free space and then mount /usr on that?

cheers, Andrew.

3.ext3 resizing partition and yast woes

Hi all

I'm not a highly skilled linux admin, so forgive me.  I'll try and give

as much info as possible.


I have a Suse Enterprise Server 8 box.  It's attached via fibre HBA to
a SAN.  Kernel is 2.4.21-215-smp.


I need to resize one of the partitions to give it some more free space.



My issue is, the partition in question,  /dev/sdc1,  does not appear in

Yast2 Partitioner's list. All the others are there, and the /dev/sdc
device is there, just not the partition on it (there's only one).   So,

with it not appearing in Yast, I can't resize it.


Weird.


So, I go into "fdisk /dev/sdc" to see what that says - it shows the
following output:
------------
The number of cylinders for this disk is set to 32635.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)


Command (m for help): p


Disk /dev/sdc: 255 heads, 63 sectors, 32635 cylinders
Units = cylinders of 16065 * 512 bytes


   Device Boot    Start       End    Blocks   Id  System
/dev/sdc1             1     32635 262140606   83  Linux
-------------


So far so good?  That looks ok to me.


If I go into "parted /dev/sdc" this has a different result, and I don't

know if it's an issue or not.
Output below...


-----------------
Using /dev/sdc
No Implementation: Partition 1 isn't aligned to cylinder boundaries.
Need to add support for this.
Information: The operating system thinks the geometry on /dev/sdc is
32635/255/63.  Therefore, cylinder 1024 ends at 8032.499M.
(parted) print
No Implementation: Partition 1 isn't aligned to cylinder boundaries.
Need to add support for this.
---------------


Is this an issue? Or is it a problem with the 'parted' utility..


The partition in question is mounted and working fine, and is 247 GB in

size. It contains all our live Oracle data files and is quite happily
ticking along.


Output of "df -h" :
----------
Filesystem            Size  Used Avail Use% Mounted on
/dev/cciss/c0d0p3      32G   13G   18G  43% /
/dev/cciss/c0d0p1      16M  5.6M  9.1M  38% /boot
/dev/sda1              33G  564M   31G   2% /u03
/dev/sdb1              33G  664M   31G   3% /u04
/dev/sdc1             247G  148G   87G  64% /u02
----------


So.. has anyone got any hints for me?  I'm confused and not quite sure
where to go from here. 


Thanks in advance, 
Dave.

4.resize partitions with 'parted'

Hi, starting from "parted" program and the "print" command I get the 
current situation of my partitions table:

Minor   Start      End       Type      Sistema de ficheros  Banderas
1          0,031   1645,875  primary   ext3        arranque
2       1645,875   3090,937  extended
5       1645,906   1976,625  logical   linux-swap
6       1976,656   3090,937  logical   ext3

My intentions are to set the 6 partition with 100 Mb and move the rest 1000 
Mb to the 1 partition.
Someone knows what sequence of commands is? The trouble I see is that the 1 
and 6 aren't adjacent

Thanks

5.Resize partitions for LVM2 setup?

So I am new to Ubuntu (and Linux in general), and I want to set up the
free space of my HDs to a LVM2 volume group where my /home will
reside.

What I got:

/dev/mapper/ubuntu-root     /           26G1 Bytes (edit: this is on /
sda)
/dev/sda1                             /boot    235M Bytes
/dev/sdb1                             /media/disk   146G7 Bytes

I would like to resize 'ubuntu-root' to let's say 10GBytes and add the
free space to /dev/sdb1 - together they will form a LV group.

Will I have to reinstall my system, because resizing 'ubuntu-root'
will kill all data? Can anybody help?

Thank you,
Christian.

6. Resize partition for Linux without Mac OS cd

7. newbie question: how to resize partition after installation?

8. Resizing partition with its content



Return to unix

 

Who is online

Users browsing this forum: No registered users and 53 guest