profile file for having a ZFS Root Mirrored File System with Jumpstart


If you have a JumpStart server and you want your clients to have a ZFS Root Filesystem (with a mirror), you can use the following profile file :

# more profile
install_type initial_install
system_type standalone
cluster SUNWCXall
pool newpool auto auto auto mirror c1t0d0s0 c1t1d0s0
#

The 3 auto keywords respectively mean that the size of the pool will be automatically calculated (it will be the size of the whole disk), the size of the swap and the dump device will alse be automatically sized.

More info : Installing a ZFS Root File System (JumpStart Installation)

I have test this profile file with the Jumpstart configuration I described on my previous post, and here is the client configuration after the 15 minutes of unattended installation :

# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
newpool 74G 4.42G 69.6G 5% ONLINE -
# zpool status
pool: newpool
state: ONLINE
scrub: none requested
config:

NAME STATE READ WRITE CKSUM
newpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c1t0d0s0 ONLINE 0 0 0
c1t1d0s0 ONLINE 0 0 0

errors: No known data errors
#
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
newpool 6.42G 66.4G 35.5K /newpool
newpool/ROOT 3.42G 66.4G 18K legacy
newpool/ROOT/s10x_u6wos_07b 3.42G 66.4G 3.42G /
newpool/dump 1.00G 66.4G 1.00G -
newpool/export 37K 66.4G 19K /export
newpool/export/home 18K 66.4G 18K /export/home
newpool/swap 2.00G 68.4G 16K -
#
# swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/newpool/swap 181,2 8 4192248 4192248
#
# dumpadm
Dump content: kernel pages
Dump device: /dev/zvol/dsk/newpool/dump (dedicated)
Savecore directory: /var/crash/client2
Savecore enabled: yes
#

I hope you find it usefull :)

Arnaud

VN:F [1.9.12_1141]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.12_1141]
Rating: 0 (from 0 votes)
Sphere: Related Content

FacebookTwitterGoogle BookmarksLinkedInShare

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

, ,

  1. No comments yet.
(will not be published)