ISCSI Taget LUN expand Disk Size

Iscsi_target LUN expand disk size: must remapping LUN disk device on iscsi-target server.

And iscsi-initialtor client must resize device from target, use commadn like: pvresize or ef2resize.

廣告

Howto: Display All Hard Disk of Size on Machine

Just use fdisk to list all disk state and grep prefix Disk string line to show.

# fdisk -l 2> /dev/null | grep ^Disk | grep -v identifier

Disk /dev/sda: 80.0 GB, 80026361856 bytes
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
Disk /dev/md0: 500.1 GB, 500107771904 bytes
Disk /dev/mapper/vg01-windows2003os: 85.9 GB, 85899345920 bytes
Disk /dev/mapper/vg01-DiskNTFS001: 107.4 GB, 107374182400 bytes
Disk /dev/mapper/vg01-FreeBSD-real: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-FreeBSD: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-nagios–20121224-cow: 10.7 GB, 10737418240 bytes
Disk /dev/mapper/vg01-nagios–20121224: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-drbl–server: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-nis–server: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-windows7: 42.9 GB, 42949672960 bytes
Disk /dev/mapper/vg01-bt5: 21.5 GB, 21474836480 bytes
Disk /dev/mapper/vg01-Nagios: 33.6 GB, 33554432000 bytes

如何設定 IIS 檔案上傳的大小限制

因為公司公告的夾帶檔案超過IIS預設上傳檔案的最大限制,所以需要自行設定上傳檔案的最大限制。

剛開始是用IIS管理介面修改IIS回應緩衝處理限制及要求實體的上限 這兩個在預設站台>>IIS>>ASP>>設定內容裏的設定值。但是上述的設定修改並沒有達到任何效果。

最後是修改 web.config 設定檔,在system.web 節點下的加入 httpRuntime 節點並設定其內的屬性值 maxRequestLength=munber (KB)。才能讓檔案容量過大的夾帶附件順利上傳成功。

相關設定說明參考:http://msdn.microsoft.com/zh-tw/library/e1f13641(v=vs.80).aspx