[ug-bosug] Split /space to swap in solaris partition..

G N S shivakumar.gn at gmail.com
Tue Dec 12 08:03:06 PST 2006


On 12/12/06, Anil verve <anil.verve at gmail.com> wrote:
>
> Hi list,
>
> I forgot to add a swap partition to the solaris partition.
> So now i have the following slices
>
> /    -  5gb
> /export/home - 2.5 gb
> /space  - 11 gb.
>
> The /space is currently empty.. How can I split it to 2 partitions (1gb
> swap + 10 space) without touching the other 2 and screwing up the install.


Try format itself. It is quite simple to use.

If you do not find it comfortable, an easy solution is to create a empty
file and add it to be used as swap.
/usr/sbin/mkfile 1024m /space/mynewswap
/usr/sbin/swap -a /space/mynewswap

Now verify the available swap using
/usr/sbin/swap -l

This way you can increase/decrease swap size as you please.

This will not be persistent across reboots. For that you may make the above
2 commands part of a bootup script.

~Shiv


regards
> Anil
>
> PS : I figuerd i'd have to go and play with 'format -e' > partition, but
> wondering if theres a friendlier solution.
>
> partition> print
> Current partition table (original):
> Total disk cylinders available: 2359 + 2 (reserved cylinders)
>
> Part      Tag    Flag     Cylinders        Size            Blocks
>   0       root    wm       3 -  655        5.00GB    (653/0/0)  10490445
>   1 unassigned    wm       0               0         (0/0/0)           0
>   2     backup    wm       0 - 2358       18.07GB    (2359/0/0) 37897335
>   3 unassigned    wm       0               0         (0/0/0)           0
>   4 unassigned    wm       0               0         (0/0/0)           0
>   5 unassigned    wm     656 - 2096       11.04GB    (1441/0/0) 23149665
>   6       home    wm    2097 - 2358        2.01GB    (262/0/0)   4209030
>   7 unassigned    wm       0               0         (0/0/0)           0
>   8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
>   9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130
>
>
> _______________________________________________
> ug-bosug mailing list
> List-Unsubscribe: mailto:ug-bosug-unsubscribe at opensolaris.org
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.opensolaris.org/pipermail/ug-bosug/attachments/20061212/fc4a2f30/attachment-0002.html 


More information about the ug-bosug mailing list