memo - テクノロジ・オタクなのかも・・・瀧(紅呪)'s Blog

カレンダー
<< 2009.1 >>
[日記]
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31


お品書き

コンテンツ

ツリー表示:開く | 閉じる


保存庫

ホットリンク

HOME / コンピュータTips / Solaris / zfs / zfsboot / memo

solaris opensolaris zfsboot

http://opensolaris.org/jive/thread.jspa?messageID=147658

format (-e)

p p

partition> p Current partition table (original): Total disk cylinders available: 7292 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

 0       root    wm      67 -  930        6.62GB    (864/0/0)   13880160
 1       swap    wu       1 -   66      517.72MB    (66/0/0)     1060290
 2     backup    wm       0 - 7291       55.86GB    (7292/0/0) 117145980
 3 unassigned    wm       0               0         (0/0/0)            0
 4 unassigned    wm       0               0         (0/0/0)            0
 5 unassigned    wm       0               0         (0/0/0)            0
 6 unassigned    wm       0               0         (0/0/0)            0
 7       home    wm     931 - 7291       48.73GB    (6361/0/0) 102189465
 8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
 9 unassigned    wm       0               0         (0/0/0)            0

q

disk

select new disk

      1. c3d0 <Hitachi-113DP0410DTG6U7A-0001-186.31GB>
         /pci@0,0/pci-ide@1f,1/ide@0/cmdk@0,0

partition> modify Select partitioning base:

	0. Current partition table (original)
	1. All Free Hog

Choose base (enter number) [0]? 0

Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0
 1 unassigned    wm       0                0         (0/0/0)             0
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

partition> modify Select partitioning base:

	0. Current partition table (aaa)
	1. All Free Hog

Choose base (enter number) [0]? 0

Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0
 1 unassigned    wm       0                0         (0/0/0)             0
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

Do you wish to continue creating a new partition table based on above table[yes]? Free Hog partition[6]? Warning: No space available from Free Hog partition. Continue[no]? yes Warning: no space available for '0' from Free Hog partition Warning: no space available for '1' from Free Hog partition Warning: no space available for '3' from Free Hog partition Warning: no space available for '4' from Free Hog partition Warning: no space available for '5' from Free Hog partition Warning: no space available for '7' from Free Hog partition

Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0
 1 unassigned    wm       0                0         (0/0/0)             0
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

Okay to make this the current partition table[yes]? Enter table name (remember quotes): system

Ready to label disk, continue? yes

partition> p Current partition table (system): Total disk cylinders available: 24318 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0
 1 unassigned    wm       0                0         (0/0/0)             0
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

partition> 1 Part Tag Flag Cylinders Size Blocks

 1 unassigned    wm       0                0         (0/0/0)             0

Enter partition id tag[unassigned]: swap Enter partition permission flags[wm]: wu Enter new starting cyl[3]: 3 Enter partition size[0b, 0c, 3e, 0.00mb, 0.00gb]: 4g partition> p Current partition table (unnamed): Total disk cylinders available: 24318 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0
 1       swap    wu       3 -   525        4.01GB    (523/0/0)     8401995
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

partition> ! expr 24317 - 525

partition> 0 Part Tag Flag Cylinders Size Blocks

 0 unassigned    wm       0                0         (0/0/0)             0

Enter partition id tag[unassigned]: root Enter partition permission flags[wm]: Enter new starting cyl[3]: 526 Enter partition size[0b, 0c, 526e, 0.00mb, 0.00gb]: 23792c partition> p Current partition table (unnamed): Total disk cylinders available: 24318 + 2 (reserved cylinders)

Part Tag Flag Cylinders Size Blocks

 0       root    wm     526 - 24317      182.26GB    (23792/0/0) 382218480
 1       swap    wu       3 -   525        4.01GB    (523/0/0)     8401995
 2     backup    wu       0 - 24317      186.29GB    (24318/0/0) 390668670
 3 unassigned    wm       0                0         (0/0/0)             0
 4 unassigned    wm       0                0         (0/0/0)             0
 5 unassigned    wm       0                0         (0/0/0)             0
 6 unassigned    wm       0                0         (0/0/0)             0
 7 unassigned    wm       0                0         (0/0/0)             0
 8       boot    wu       0 -     0        7.84MB    (1/0/0)         16065
 9 alternates    wm       1 -     2       15.69MB    (2/0/0)         32130

partition> label Ready to label disk, continue? yes

# zpool create -f rootpool c3d0s0

# zpool create rootpool c3d0s0 invalid vdev specification use '-f' to override the following errors: /dev/dsk/c3d0s0 overlaps with /dev/dsk/c3d0s2

# zpool create -f rootpool c3d0s0

# zpool create -f rootpool c3d0s0

# zfs create rootpool/rootfs

# zfs set mountpoint=legacy rootpool/rootfs

# mkdir /zfsroot mkdir: Failed to make directory "/zfsroot"; File exists

# mount -F zfs rootpool/rootfs /zfsroot

# cd /

# find . -xdev -depth -print | cpio -pvdm /zfsroot

sh thisscript.sh /zfsroot

# mount -F lofs -o nosub / /mnt

# (cd /mnt; tar cvf - devices dev ) | (cd /zfsroot; tar xvf -)

# umount /mnt

  137	22:12	vi /zfsroot/etc/vfstab
  138	22:14	zpool set bootfs=rootpool/rootfs rootpool
  139	22:14	cat /zfsroot/boot/solaris/filelist.ramdisk
  140	22:14	echo etc/zfs/zpool.cache >> /zfsroot/boot/solaris/filelist.ramdisk
  141	22:14	/usr/sbin/bootadm update-archive -R /zfsroot
  142	22:15	mkdir -p /rootpool/boot/grub
  143	22:15	cp /zfsroot/boot/grub/menu.lst /rootpool/boot/grub
  144	22:16	vi /rootpool/boot/grub/menu.lst
  145	22:23	vi /rootpool/boot/grub/menu.lst
  146	22:23	zpool status
  147	22:23	installgrub /zfsroot/boot/grub/stage1 /zfsroot/boot/grub/stage2 /dev/rdsk/c3d0s0
添付ファイル: filethisscript.sh 46件 [詳細]

Get RSS

リンク集
ジャストプレイヤー株式会社
WikiPlus
Torrentan.net
人気blogランキング

Twitter
Fox Meter
Firefox3 Meter

Nakanohito

検索バー(内部検索)

※WikiPlusの内部検索ツールを利用しています。


最新情報
Copyright Kohju / TAKI, Yasushi http://kohju.justplayer.com/ - Design by Casafree.com