[ug-bosug] Split /space to swap in solaris partition..
Pavan Chandrashekar - Sun Microsystems
Pavan.Chandrashekar at sun.com
Tue Dec 12 23:26:10 PST 2006
G N S wrote:
>
>
> On 12/12/06, *Anil verve* <anil.verve at gmail.com
> <mailto: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.
Yep, but the only concern is latency. As mentioned, format isn't all
that scary to use. Do the following :
1. Unmount /space
2. run format
3. Select the disk
4. choose partition [ type p <enter> ]
5. print the partition table [ type p <enter> ]
6. type the number of the /space slice [ It is the same 's' number when
you do a df -hl ]
7. Delete the slice by entering 0's for the starting, ending and the
size of the slice.
8. Recreate the swap as necessary.
9. Recreate space.
10. name the label.
11. label the disk.
12. save
13. exit.
14. Freak out [ optional ].
~p
> /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
> <mailto:ug-bosug-unsubscribe at opensolaris.org>
> List-Owner: mailto:ug-bosug-owner at opensolaris.org
> <mailto:ug-bosug-owner at opensolaris.org>
> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
_______________________________________________
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
More information about the ug-discuss
mailing list