日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

solaris11 format zpool

發(fā)布時(shí)間:2024/1/17 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 solaris11 format zpool 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

# format

?

AVAILABLE DISK SELECTIONS:
0. c1t0d0 <LSI-MR9261-8i-2.12-557.86GB>
/pci@0,0/pci8086,3c0a@3,2/pci1000,9263@0/sd@0,0
1. c1t1d0 <LSI-MR9261-8i-2.12-2.72TB>
/pci@0,0/pci8086,3c0a@3,2/pci1000,9263@0/sd@1,0

Specify disk (enter its number): 1    ————? ? ?這里默認(rèn)系統(tǒng)已發(fā)現(xiàn)硬盤

format> fdisk

No fdisk table exists. The default partition for the disk is:

a 100% "SOLARIS System" partition

Type "y" to accept the default partition,? otherwise type "n" to edit the partition table.

WARNING: Disk is larger than 2TB. Solaris partition will be limited to 2 TB.

n? —————— 輸入n表示不使用默認(rèn)的分區(qū)方案

SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 1  ————? 輸入1表示創(chuàng)建分區(qū)
Select the partition type to create:
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12
6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot
B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective)
G=EFI_SYS 0=Exit??
F    ——————————輸入F表示創(chuàng)建EFI類型的分區(qū)
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 6    ——————輸入6表示保存并退出

?

?

在root用戶下輸入format命令:

root@lnltedmr-tds:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c1t0d0 <LSI-MR9261-8i-2.12-557.86GB>
/pci@0,0/pci8086,3c0a@3,2/pci1000,9263@0/sd@0,0
1. c1t1d0 <LSI-MR9261-8i-2.12-2.72TB>
/pci@0,0/pci8086,3c0a@3,2/pci1000,9263@0/sd@1,0
Specify disk (enter its number): 0? ————選擇0號磁盤
selecting c1t0d0 <LSI-MR9261-8i-2.12-557.86GB>
[disk formatted]
/dev/dsk/c1t0d0s1 is part of active ZFS pool rpool. Please see zpool(8).? ——————format程序告訴你這塊邏輯盤屬于ZFS文件系統(tǒng)


FORMAT MENU:? ————————列出format>下的子命令
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
inquiry - show disk ID
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> fdisk? ————————執(zhí)行fdisk創(chuàng)建分區(qū)(partition是選擇分區(qū))

Total disk size is 36412 cylinders
Cylinder size is 32130 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 EFI 0 36412 36413 100

?


SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 7

?

format> partition    ——————選擇分區(qū)


PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> print    ——————打印分區(qū)
Current partition table (original):
Total disk sectors available: 5849583549 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector
0 usr wm 34 2.72TB 5849583582?
1 unassigned wm 0 0 0?
2 unassigned wm 0 0 0?
3 unassigned wm 0 0 0?
4 unassigned wm 0 0 0?
5 unassigned wm 0 0 0?
6 unassigned wm 0 0 0?
8 reserved wm 5849583583 8.00MB 5849599966

partition>

?

# format
Specify disk (enter its number): 1
format> fdisk    
Type "y" to accept the default partition, otherwise type "n" to edit the partition table. n
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 1    ————?jiǎng)?chuàng)建分區(qū)
Select the partition type to create:
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12
6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot
B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective)
G=EFI_SYS 0=Exit??
F    —————— EFI類型
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Edit/View extended partitions
6. Exit (update disk configuration and exit)
7. Cancel (exit without updating disk configuration)
Enter Selection: 6    ————保持分區(qū)配置并退出

?

?

?

查找硬盤devfsadm(sol9 up),drvconfig,disks;(sol8 down)

format
0
1
......
(choose disk)1
save
p
partition>m(非掛接區(qū))
修改吧。
partition>label
partition>quit
format>quit

newfs /dev/dsk/cXtXdXsX
保險(xiǎn)起見把輸出的這些數(shù)字保存到文件中,以備以后查看。

憑記憶寫的,應(yīng)該可以吧。

?


partition> m
Cannot modify disk partitions while it has mounted partitions.

必須一塊盤上的所有分區(qū)都 umount 么?

?


right

不然拿光盤引導(dǎo)系統(tǒng),然后更改分區(qū)吧。

?

創(chuàng)建基本 ZFS 文件系統(tǒng)

ZFS 管理在設(shè)計(jì)過程中考慮了簡單性。其設(shè)計(jì)目標(biāo)之一是減少創(chuàng)建可用文件系統(tǒng)所需的命令數(shù)。例如,創(chuàng)建新池的同時(shí)會(huì)創(chuàng)建一個(gè)新 ZFS 文件系統(tǒng),并自動(dòng)將其掛載。

https://docs.oracle.com/cd/E37934_01/html/E36658/gaypm.html#scrolltoc

?

管理 ZFS 掛載點(diǎn)

缺省情況下,ZFS 文件系統(tǒng)在創(chuàng)建時(shí)自動(dòng)掛載。可以確定文件系統(tǒng)的特定掛載點(diǎn)行為,如本節(jié)所述。

另外,也可以在創(chuàng)建時(shí)使用?zpool create?的?-m?選項(xiàng)為池文件系統(tǒng)設(shè)置缺省掛載點(diǎn)。有關(guān)創(chuàng)建池的更多信息,請參見創(chuàng)建 ZFS 存儲(chǔ)池。

所有 ZFS 文件系統(tǒng)都由 ZFS 通過使用服務(wù)管理工具 (Service Management Facility, SMF) 的?svc://system/filesystem/local?服務(wù)在引導(dǎo)時(shí)掛載。文件系統(tǒng)掛載在?/path?下,其中?path?是文件系統(tǒng)的名稱。

可以使用?zfs set?命令將?mountpoint?屬性設(shè)置為特定路徑,以覆蓋缺省掛載點(diǎn)。ZFS 自動(dòng)創(chuàng)建指定的掛載點(diǎn)(如果需要),并自動(dòng)掛載關(guān)聯(lián)的文件系統(tǒng)。

ZFS 文件系統(tǒng)無需您編輯?/etc/vfstab?文件即可在引導(dǎo)時(shí)自動(dòng)掛載。

mountpoint?屬性是繼承的。例如,如果?pool/home?的?mountpoint?屬性設(shè)置為?/export/stuff,則?pool/home/user?將繼承?/export/stuff/user?的?mountpoint?屬性值。

要阻止文件系統(tǒng)被掛載,須將?mountpoint?屬性設(shè)置為?none。此外,canmount?屬性可以用來控制是否能掛載文件系統(tǒng)。有關(guān)?canmount?屬性的更多信息,請參見canmount?屬性。

也可以使用?zfs set?將?mountpoint?屬性設(shè)置為?legacy,從而通過傳統(tǒng)掛載接口顯式管理文件系統(tǒng)。這樣做可以防止 ZFS 自動(dòng)掛載和管理文件系統(tǒng)。不過必須改用包括?mount?和?umount命令在內(nèi)的傳統(tǒng)工具以及?/etc/vfstab?文件。有關(guān)傳統(tǒng)掛載的更多信息,請參見傳統(tǒng)掛載點(diǎn)。

https://docs.oracle.com/cd/E37934_01/html/E36658/gaynd.html#gaztn

?

自動(dòng)掛載點(diǎn)

  • 將?mountpoint?屬性從?legacy?或?none?更改為特定路徑時(shí),ZFS 會(huì)自動(dòng)掛載文件系統(tǒng)。

  • 如果 ZFS 正在管理文件系統(tǒng),但該文件系統(tǒng)當(dāng)前已取消掛載,并且?mountpoint?屬性已更改,則文件系統(tǒng)將保持取消掛載狀態(tài)。

mountpoint?屬性不是?legacy?的所有文件系統(tǒng)都由 ZFS 來管理。在以下示例中,創(chuàng)建了一個(gè)掛載點(diǎn)由 ZFS 自動(dòng)管理的文件系統(tǒng):

# zfs create pool/filesystem # zfs get mountpoint pool/filesystem NAME PROPERTY VALUE SOURCE pool/filesystem mountpoint /pool/filesystem default # zfs get mounted pool/filesystem NAME PROPERTY VALUE SOURCE pool/filesystem mounted yes -

另外,也可按以下示例所示,顯式設(shè)置?mountpoint?屬性:

# zfs set mountpoint=/mnt pool/filesystem # zfs get mountpoint pool/filesystem NAME PROPERTY VALUE SOURCE pool/filesystem mountpoint /mnt local # zfs get mounted pool/filesystem NAME PROPERTY VALUE SOURCE pool/filesystem mounted yes -

mountpoint?屬性更改時(shí),文件系統(tǒng)將自動(dòng)從舊掛載點(diǎn)取消掛載,并重新掛載到新掛載點(diǎn)。掛載點(diǎn)目錄根據(jù)需要進(jìn)行創(chuàng)建。如果 ZFS 由于文件系統(tǒng)正處于活動(dòng)狀態(tài)而無法將其取消掛載,則會(huì)報(bào)告錯(cuò)誤,并需要強(qiáng)制進(jìn)行手動(dòng)取消掛載。

?

https://docs.oracle.com/cd/E37934_01/html/E36658/gaynd.html#gbala



?

存儲(chǔ)池的缺省掛載點(diǎn)

創(chuàng)建池時(shí),頂層文件系統(tǒng)的缺省掛載點(diǎn)是?/pool-name。此目錄必須不存在或者為空。如果目錄不存在,則會(huì)自動(dòng)創(chuàng)建該目錄。如果該目錄為空,則根文件系統(tǒng)會(huì)掛載在現(xiàn)有目錄的頂層。要使用不同的缺省掛載點(diǎn)創(chuàng)建池,請?jiān)?-zpool create?命令中使用?m?選項(xiàng)。例如,

# zpool create home c1t0d0 default mountpoint '/home' exists and is not empty use '-m' option to provide a different default # zpool create -m /export/zfs home c1t0d0

此命令會(huì)創(chuàng)建新池?home?和掛載點(diǎn)為?/export/zfs?的?home?文件系統(tǒng)。

有關(guān)掛載點(diǎn)的更多信息,請參見管理 ZFS 掛載點(diǎn)。

?

https://docs.oracle.com/cd/E37934_01/html/E36658/gaypw.html#gbeef

轉(zhuǎn)載于:https://www.cnblogs.com/wangziyi0513/p/10842060.html

總結(jié)

以上是生活随笔為你收集整理的solaris11 format zpool的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。